|
-
May 1st, 2009, 03:24 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] combobox selected item text
hey guys
i set the datasource property of my combobox to datatable
and ofcourse the displaymember and value member
and now i want to take the text in the selected item aand save it into variable?
i tried this
Code:
dim x as string=nothing
x=combobox1.selecteditem.tostring
but it is returned datarowview
so what i must do??
-
May 1st, 2009, 03:30 PM
#2
Re: combobox selected item text
Dim x As String = ComboBox1.Text
-
May 1st, 2009, 03:46 PM
#3
Thread Starter
Hyperactive Member
Re: combobox selected item text
lol
thank you
i didn't notice that
i feel like newbie
lol
thanks again
-
May 1st, 2009, 03:50 PM
#4
Re: [RESOLVED] combobox selected item text
No prob, glad we could help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|