I have listbox in c#form in one corner and right corner is blank till i select from listbox. So the problem is If i click outside the listbox it gives null exception error. How can i check if user is not clicking outside the listbox.

Recommended Answers

All 2 Replies

It is impossible to say/guess something about your code. Please include SSCCE.

commented: amen. +3

Your function for populating the listbox must be written in action event of that left list box...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.