Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo
How to hande events to control arrays (Saturday, August 28, 2004)
 

Found the following interesting discussion in the Newsgroups:

How to hande events to control arrays?
by:SuperRider

I have ~ 50 comboboxes (in an array) on a form, and I want to run the same subroutine every time any combobox changes. Now, I can get this done by manually editing the "OnChanged" for every one, but surely there is an easier (shorter) way to do it.

TIA!


 Reply:
by:Marina

 Have their onchanged event all go to the same handler. Loop through your array, adding the handler for each combobox.



Posted by Xander Zelders



 
Previous Posts
    - ArrayList subtract?
    - ComboBox class, CB_INSERTSTRING , VB.NET and marsh...
    - How to determine the size of a file in VB.NET
    - HttpWebRequest & Credentials
    - Synclock clarification
    - How to reference an embedded icon file
    - Returning Integer from String
    - Expiring the Page To discourage Browser BACK butto...
    - How to use a treeview control
    - Clipboard in console application

Archives
    - 08/01/2004 - 08/08/2004
    - 08/08/2004 - 08/15/2004
    - 08/15/2004 - 08/22/2004
    - 08/22/2004 - 08/29/2004
    - 08/29/2004 - 09/05/2004
    - 09/05/2004 - 09/12/2004
    - 09/12/2004 - 09/19/2004
    - 09/19/2004 - 09/26/2004
    - 09/26/2004 - 10/03/2004
    - 10/03/2004 - 10/10/2004
    - 01/02/2005 - 01/09/2005
    - 01/09/2005 - 01/16/2005
    - 01/30/2005 - 02/06/2005
    - 01/01/2006 - 01/08/2006


Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland