im a beginner in vb.net.im developing for myproject in windows application.my ques:how can i display data in textbox from choosen dropdown menu?user choose a item in combobox,then after click a button the meaning of data appear in textbox..i need some help..tq in advance
lacaroix
0
Newbie Poster
Recommended Answers
Jump to PostPrivate Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged textbox1.Text = ComboBox1.SelectedItem End Sub
Jump to Postwhat database that u using on?sqlserver or access?
Jump to Postthis following code to read data and display on combo box, u just put on event like "form load":
Public Function GetConnect() Dim conn As SqlConnection conn = New SqlConnection("server = jery;database = VBtoC#;Trusted_Connection = yes") Return conn End Function Private Sub ReadData() Dim i As Integer …
Jump to Postyes, data will display on combo box. in my code id student will display on combo box.
Jump to Postso combo box item is not retrived from database??
let user choose the item frm combo box then retrived the data from databse and view it.
what was retrived from database?and what to viewed?
how about your database table?
All 20 Replies
leokuz
0
Light Poster
lacaroix
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
lacaroix
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
lacaroix
0
Newbie Poster
lacaroix
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
lacaroix
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
lacaroix
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
lacaroix
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
lacaroix
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
shilp
0
Newbie Poster
shilp
0
Newbie Poster
dustinsierra
0
Newbie Poster
dustinsierra
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.