Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListBox, OnSelectedIndexChanged Event WinForms

Status
Not open for further replies.

Tokhra

Programmer
Oct 1, 2003
134
ES
Hi all,

I have a listbox, and im performing a operation when the selected index is changed, this is fine except when the form loads it calls the event for every item it adds.

So I was wondering if theres a way to limit my code in the event to only work when the listbox has loaded..

Any ideas?

Thanks,
Matt.
 
Got it, I just set a boolean after id populated the list, and checked this in the event. So simple ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top