Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi.
I am using a combo box. I want to check that if the user has select the any text form the combo box or not. What method can tell me that?

Thanks
Posted
Comments
Clifford Nelson 14-May-12 12:25pm    
Need to tell the environment.
Waleed_Hassan 14-May-12 12:25pm    
I am using Visual Studio 2010.
Sergey Alexandrovich Kryukov 14-May-12 13:17pm    
Tell us the application type of UI library you use.
--SA
Waleed_Hassan 14-May-12 13:21pm    
I was basically using the Winform. But thanks i got the solution.

SelectedIndex Gets or sets the index specifying the currently selected item. (Overrides ListControl.SelectedIndex.)

1 solution

More than likely, depending on environment, all you need to do is to check the comboBox.Tet property. See http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.aspx[^].
 
Share this answer
 
Comments
Clifford Nelson 14-May-12 16:08pm    
Love it, I get downvoted for an answer that is apparently correct.
Vipin_Arora 15-May-12 1:35am    
+5 for nice link

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900