combobox
Please support our VB.NET advertiser: DiscountASP.NET – 3 Months Free on VB.NET Web Hosting
![]() |
After assign ComboBox your datasource (your department table) navigate in ComboBox properties you'll find which help you doing your task.
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
•
•
Posts: 33
Reputation:
Solved Threads: 0
Hi You Must try this
vbnet Syntax (Toggle Plain Text)
Protected Sub DropDownList1_SelectedIndexChanged() con=new sqlcnnection(constr) adpt=new sqldataadapter("select dept_code from T.N. where dept_name='"+dropdownlist1.selecteditem+"'",con) ds=new dataset adpt.fill(ds,"T.N.") dim i as string=ds.tables(0).rows(0).item(0) dropdownlist2.item.clear() dropdownlist2.item.add(i) End Sub
Last edited by Narue : Jan 5th, 2009 at 8:30 am. Reason: added code tags
![]() |
Similar Threads
Other Threads in the VB.NET Forum
- ComboBox Events (VB.NET)
- Issue related to combobox.... (VB.NET)
- need help with ComboBox (C++, Dialog) (C++)
- Hiding dataitems in a combobox (VB.NET)
- How to use combobox function (C++)
- Filling a ComboBox.... (Java)
Other Threads in the VB.NET Forum
- Previous Thread: about outlook express
- Next Thread: merging two txt files into one txt file
•
•
•
•
Views: 246 | Replies: 2 | Currently Viewing: 1 (0 members and 1 guests)






Linear Mode