handling multiple controls in a form ?

W

waqas.younas

Hi,
I am working on a windows form in C#. In my form i have three
comboboxes , one text box and one listbox. Values of combox and textbox
will be added into listbox. Now before adding my values into listbox i
want to insure that user has entered data in textbox and selected
something from combobox as in
If ( Some data has been selected from combobox and textbox's text is
equal to some string )
then
add values in list box
How would i go about it? Please enlighten me....Any help will be highly
appreciated..
Thanks.
-Erland
 
T

Truong Hong Thi

That is straight forward. Just check the Text property of the controls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top