For the ListBox control the Click event is not supported on the device ( .NET Compact Framework).
Nor are the Mouse events supported. ListBox Events (System.Windows.Forms)
I have two listbox one is country and another one is state. defaultly the state appear as blank when user click on the state listbox i want to popup a message please select country.
a good solution for your problem is to disable the state combobox until a valid country is selected.
This is a common way to prevent the user form doing things that are currently not possible...
Another possibility is to preselect a default country and a default state.
In that case the user has already possible results without the risk of mistakes.
Just another idea - thinking outside the box abit.. - You could have a timer that checks the value of the listbox repeatedly and if the value is something other than null, then enable or poll results to populate the other list box.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.