-
Windows Forms with listbox (Click Event)
Whenever I put a Listbox on a windows form where the Listbox has an on Click
event the event fires about 5 times before the form is even visible.
I have a messagebox displaying the selectedvalue property and it flashes
up with system.data.datarowview 5 times.
The Listbox is populated during the load event. If i change this to the constructor
of the class i get 3 system.data.datarowviews and 2 actual selected values.
How do I stop the event firing until the form is fully loaded?
TIA
Steve
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|