I'm working on an application in VB.Net.
I want to write a combobox item and I want to know which item is selected but I have no idea how to and MSDN isn't helping me at all.
Im fustrated any help? Tips? Suggestions? Thanks
From the
ComboBox page:
ComboBox.SelectedItem Property (see also: SelectedIndex and SelectedText).
But what type of event do I have to declare in order. or is that not relevant?
Private Sub
<crap that goes here>
End sub
If you wish to do something when the value of ComboBox changes, handle the
SelectedValueChanged event. If you just want to retrieve the value, use the SelectedItem property. Each MSDN page has examples in VB.NET.
What have you tried so far?
I've tried the SelectedValueChanged event and it worked. Thanks Benryves!
Nice job on a quick and accurate answer as always, Benryves.
You're well-deserving of that badge below your avatar.
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
»
Go to Registration page
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum