20,279 Topics

Member Avatar for
Member Avatar for tqmd1

Dear Sir, My datagridview has four column while press tab, i want to column2 not to get focus. Please help

0
54
Member Avatar for iamai

Hi i am trying to write-read data from serial port but it don't work my code look like this [CODE] Private comPort As New SerialPort comPort.PortName = cboCom.Text comPort.Parity = Parity.None comPort.DataBits = 8 comPort.StopBits = StopBits.One comPort.BaudRate = CInt(cboSpeed.Text) comPort.Handshake = Handshake.None comPort.Open() 'Write GPS command comPort.WriteLine("$PSRF103,00,00,01,01*25") [/CODE] and …

Member Avatar for iamai
0
404
Member Avatar for yonghan

Hi all,i'm trying to show menu items based on user rights.. I'm using database to store the menu names and the user position like this [CODE] position menu admin mnuUser admin mnuEmployee [/CODE] I named the submenu items name to mnuxxxx.Suppose it was the admin who logged in,then the menu …

0
67
Member Avatar for satyan

[code] Private Sub btnlogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnlogin.Click Dim cmd As New OleDb.OleDbCommand("select * from tblPassword where name='" + txtUsername.Text + "'", conn) conn.Open() Try Dim rdr As OleDb.OleDbDataReader = cmd.ExecuteReader If rdr.Read Then Dim p As String = rdr(1) If txtpassword.Text = p Then …

-1
35
Member Avatar for sbanks_charles

I am writting an application in VB using VS2008 and SQL2005. I would like to save an array to my database and later retreive it. I understand that I need to serialize the array to do this but don't understand the process. I have looked at various resources on the …

Member Avatar for sbanks_charles
0
1K
Member Avatar for dor.marchan

Hello All, I am in a roadblock right now and I really need some help on the code below. What I wanted to do is close all opened workbooks. This code does the work IF there is at least one or more opened workbooks. My problem is IF there is …

Member Avatar for dor.marchan
0
194
Member Avatar for scias23

i've written this code, it works. whenever I click the OK button of the NewModel.vb, it will insert a new record, then the datasource of the datagridview will be reinstantiated and rebinded with all the records in the database. the datagridview will be rebinded with the records from the database. …

0
224
Member Avatar for fairy1992224

[code] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' declare constants and variables Dim cm As Integer Dim m As Double Dim g As Integer Dim kg As Double mtextbox.Text = "" kgtextbox.Text = "" ' converting from cm to m Integer.TryParse(cmTextBox.Text, cm) m = …

Member Avatar for fairy1992224
0
103
Member Avatar for techker

Hey guys im a fitness freak and i want to make a litle app for making workout routines.. i need guidance for a couple of things.. drag and drop images i wouder if in vb i can have a pic of lets say a man and we can click on …

Member Avatar for techker
0
54
Member Avatar for barristerpee

Please this is my code to display records from my ms-access database whenever i click the [B]button next[/B]. But the code is only displaying the[B] last record[/B] in the database. Please HELP is needed. I have tried using for loop but it is giving me error. [code] Imports System.Data.OleDb Public …

Member Avatar for kvprajapati
0
546
Member Avatar for tqmd1

Dear Sir, SQL SERVER 2005, Table1 has data as follows Date----------sno----------name 14/01/10------1-------------A 14/01/10------2-------------B 14/01/10------3-------------C The Primary key is on SNO I want to apply primary key on sno+date columns I want to enter sno on daily basis as 14/01/10------1-------------A 14/01/10------2-------------S 15/01/10------1-------------D 15/01/10------2-------------U I want to use these codes before inserting …

Member Avatar for kvprajapati
0
100
Member Avatar for scias23

i want to display the inserted row to my datagridview. how can i accomplish this? [CODE=vb] Imports System.Data.SqlClient Public Class Model Dim sqldata As SqlDataAdapter Dim modeldata As New DataSet Dim sqlquery As String Dim conn As New SqlConnection Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles …

Member Avatar for kvprajapati
0
109
Member Avatar for mm_89

Hi all I just joined the forum, its really helpful. But I have a problem in mobile applications development. I need to know how can I develop a mobile application using VB.NET in visual studio.net and deploy it on nokia and sony ericsson mobile phones ( symbian based) . Please …

Member Avatar for kvprajapati
0
98
Member Avatar for tqmd1

Dear Experts [CODE]str = "Select * from gpass where vou_no= " & Val(Me.txtGat.Text) And Date = Me.txtDat.Text[/CODE] what is wrong in codes, please modify [CODE]Dim cmd As New SqlClient.SqlCommand("update gpass set c=@c, bno=@bno, code=@code, vehicle_no=@vehicle_no,trasportr=@transportr,time=@time where vou_no = & Val(Me.txtGat.Text) and Date = me.txtdat.text)", con)[/CODE] what is wrong in codes, …

Member Avatar for kvprajapati
0
84
Member Avatar for JohnDove

My vb app uses an icon which is 128x128, which looks fine on the desktop. But when viewed in a folder with View set to Extra Large Icons its size doesn't change - it is too small (smaller than 128x128). Any ideas how I can rectify this?

Member Avatar for kvprajapati
0
111
Member Avatar for Satya Priya

Dear Sir My question is in wed application how can we mention connection string without writing the drive in which database is present.I don't know how i I use web config file to write connection string.Please help.[code]Partial Class supports Inherits System.Web.UI.Page Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\progr2\App_Data\Database\health.mdb;Persist Security Info=False") Public …

Member Avatar for kvprajapati
0
56
Member Avatar for ThomasII

Hello- I am trying to create a program that will allow a user to enter in checking or savings data; date, type of transaction (deposit or withdrawl), display the previous balance and the new balance based on the new transaction entered. I cannot figure out how to locate the element …

0
93
Member Avatar for wiss.dev

hi everyone im trying to update access from vb.net application. when excuting im getting this error: the microsoft.jet.oledb.4.0 source="c:\...."provider was not registered on the local machine. when i go and run cmd to register ddl files. i was able to register msjet40.dll and msjetoledb40.dll with the other dll a box …

Member Avatar for wiss.dev
0
73
Member Avatar for SaintDK

Ok so this is what i want to do, i made a textbox where people are supposed to type in their STEAM username, i want to download a file that will download itself into: C:\Program Files\Steam\Steamapps\USERNAME FROM TEXTBOX\Cstrike\CFG\ so let's say my username is dZ_Saint, and i type that into …

Member Avatar for Ken VB
0
73
Member Avatar for OldQBasicer

I'm really a novice and I'm trying to draw a thermometer that moves up or down with temp change. I created a second form on my project for the thermometer and access it using Thermometer.Showdialog((). Then on the thermometer form, I'm using this code: [CODE] Private Sub ThermometerForm_Paint(ByVal sender As …

Member Avatar for OldQBasicer
0
184
Member Avatar for buzzykerbox

Hey,just have a problem with some code,just starting out Its basically a guessing game in vb [CODE] Public Class frmMain Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGuess.Click Dim randNum As Integer Dim guess As Integer = Convert.ToInt32(txtGuess.Text) Randomize() randNum = Int(20 * Rnd()) + 1 …

Member Avatar for buzzykerbox
0
229
Member Avatar for gu0gu0

hi guys, can i ask how do i check for validation for my username field if last letter must be an alphabet? the username is in the format of 7digit + alphabet i had successfully check for the first 7 digit using isnumeric substring 0,7 but i have no idea …

Member Avatar for Ken VB
0
98
Member Avatar for rp_prakash

hi this is my coding when i run this coding for display "Procedure or Function 'sp_developer_display' expects parameter '@developerid', which was not supplied." this error will display my sp in sql express is ALTER PROCEDURE dbo.sp_developer_display ( @developerid int ) AS /* SET NOCOUNT ON */ select developercode,developername,qualification,dateofjoin,designation,experience,knownsoft from tst_m_developermaste …

Member Avatar for ChrisPadgham
0
112
Member Avatar for tqmd1

Dear Experts I have applied following custom Format to DateTimePicker dd-MM-yyyy So now DateTimePicker is displaying data as 15-01-2010 Sql server 2005, table1 has column named Date with datetime type How to store DateTimePicker text into date column of Table1 I want to save only date not time as 15-01-2010 …

Member Avatar for jlego
0
118
Member Avatar for tqmd1

Dear Sir. I use following codes to to convert string to date. In messagebox it displays correct date with format but in textbox it displays only #12:00:00 AM # How to send date to textbox1 from variable mydate Please help [CODE] Dim mydate As Date Dim dateString = "31/12/2009" Dim …

Member Avatar for jlego
0
198
Member Avatar for HarvinderSingh

Hey guys... i am trying to view contents of a text file to a textbox via aid of a button (ViewBtn). i have a treeview(TreeView1) which shows the root folder and displays content in the listview. my query is how do i select a file from listview (ListView1) and display …

Member Avatar for Nokser
0
228
Member Avatar for wasyazwan

How can i extract the information as below from the input file and then show it in the messagebox? and can i show it as center alignment? Adjustment Statistical Summary ============================== Convergence Iterations = 2 Number of Stations = 36 Number of Observations = 128 Number of Unknowns = 70 …

Member Avatar for debasisdas
0
123
Member Avatar for abdalla_92
Member Avatar for debasisdas
0
68
Member Avatar for MondeVB

Hi everyone . can you help me in making a log in form for administrator using the accounts from the MySql database .. i want to know the code in connecting database, because i am new in SQl database Programming.. example there are 2 fields in SQL database the Username …

Member Avatar for debasisdas
0
109
Member Avatar for prakash_rp

hi this is my coding i run no error message but the data is not inserted in the table. i need help what is error in this program Dim MyConnection As New SqlClient.SqlConnection Dim MyCommand As New SqlCommand Dim connstring As String = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Documentcreation.mdf;Integrated Security=True;User Instance=True" Dim insstr As …

Member Avatar for MeSampath
0
80

The End.