Thnx .. but as i said , i am using ComboBox not list box .. .. sorry , i didn't understand it .. have a look at my code :
' this sub to get the database from the SQL and fill it into the combo box.
Private Sub KG_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
Dim cn As New SqlConnection
cn.ConnectionSt ring = "Data Source=PC100-042295F4E;"...
User Profile
Collapse
-
.. am using VB.NET .... 2003 .... Coonection mode. not wizard. .. SQL Server2000...Leave a comment:
-
Need some Help
hi,
I am building a form that gets its data base from SQL data base . i have about 3 combo Boxes in this form that shows some data memebers . ok now the question ... if the user selects a value from any of these combo boxes i want to get the ID of that Value .. i mean : i have a course table contains course_id and the Course_name when the user selects the Course_Name from the combo box i want to retreive the ID of that course in to a new... -
problem please check .!!
have a look at this code , its for logging the user in after checking his UserName and Password.
dim check as boolean = false
...
...
If txtUserName.Tex t.Length = 0 And txtPass.Text.Le ngth = 0 Then
MessageBox.Show ("please Enter Your Name and Password")
txtUserName.Tex t = ""
txtPass.Text = ""
Exit Sub
End If
Dim conn As New SqlConnection... -
hi rick,
hope u r doing fine ... try to do as follows : it is simple connection to sql
Imports System.Data.Sql Client
.
.
.
.
.
'
dim conn as new sqlconnection
dim cmd as new sqlcommand
conn.connection String ="server=(local );database=DB;t rusted_connecti on=yes"
cmd.commandText ="Insert into Emp_info (FirstName,Seco ndName) Values ( ' "&txtFirstname. text...Leave a comment:
-
icetalks started a topic Cast from string "Insert into Emp_Info (Emp_FrName" to type 'Double' is not valid.in .NETCast from string "Insert into Emp_Info (Emp_FrName" to type 'Double' is not valid.
hi guys ,
can u please help in this ....
Dim conn As New SqlConnection
Dim cmd As New SqlCommand
conn.Connection String = "Data Source=PC100-042295F4E;" & "Trusted_connec tion=yes;" & "initial Catalog=Client; "
cmd.CommandText = "Insert into Emp_Info (Emp_FrName,Emp _Sname,Emp_Fnam e,Emp_Address,E mp_Tel,Emp_Posi tion) Values (... -
Dear ,
Can u please explain this statment to me .... am new .. excuse me .
Me.BillTableAda pter.Fill(Me.Se nTestDataSet.Bi ll)
Thanx very muchLeave a comment:
No activity results to display
Show More
Leave a comment: