home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,383 of 10,840   
   J French to The Mess   
   Re: Raising events for UserControl array   
   04 Apr 05 06:26:43   
   
   From: erewhon@nowhere.uk   
      
   On Sun, 3 Apr 2005 11:38:52 -0400, "The Mess"  wrote:   
      
   >I am working in VB5.   
   >How do you mimmick Visual Basic's putting an Index argument at the front of   
   >the variables passed to an event when making your own control? This sounds   
   >kind of confusing so I'll simplify it.   
   >Say I have made my own UserControl and I have an event for it. Someone uses   
   >my control. In fact he makes a control array of it. When an event is fired,   
   >how do you tell for which instance of the control.   
   >Could someone give me an example of how this is done?   
      
   Best you run up a very small test App   
      
   - you will find that the UserControl knows nothing about its Index   
   - and does not need to when Raising Events   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca