Click here to Skip to main content
15,886,835 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Detecting object with vbscript Pin
Dave Kreskowiak15-Jun-09 16:27
mveDave Kreskowiak15-Jun-09 16:27 
GeneralRe: Detecting object with vbscript Pin
chatko16-Jun-09 7:27
chatko16-Jun-09 7:27 
GeneralRe: Detecting object with vbscript Pin
Dave Kreskowiak16-Jun-09 8:07
mveDave Kreskowiak16-Jun-09 8:07 
Questiondealing with control arrays Pin
No-e15-Jun-09 6:08
No-e15-Jun-09 6:08 
AnswerRe: dealing with control arrays Pin
dan!sh 15-Jun-09 6:42
professional dan!sh 15-Jun-09 6:42 
GeneralRe: dealing with control arrays Pin
No-e15-Jun-09 7:19
No-e15-Jun-09 7:19 
GeneralRe: dealing with control arrays Pin
dan!sh 15-Jun-09 7:26
professional dan!sh 15-Jun-09 7:26 
AnswerRe: dealing with control arrays Pin
Dave Kreskowiak15-Jun-09 7:51
mveDave Kreskowiak15-Jun-09 7:51 
There are no control arrays in .NET and no need for them. You handle the Click event of the label, not the form. The ending part of the function header of the event handler just needs to be modified so it can handle the Click event of all of your label controls. You can do that by adding the name of each label and it's event name to the Handles clause:
Private Sub Labels_Click(blah, blah) Handles Label1.Click, Label2.Click, Label3.Click

Then, if the handler code, the label that was clicked will be in the sender argument passed to your event handler.

Alternatively, you can even skip the Handles clause and wire up the event handlers yourself using AddHandler.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: dealing with control arrays Pin
Jon_Boy16-Jun-09 10:13
Jon_Boy16-Jun-09 10:13 
GeneralRe: dealing with control arrays Pin
Dave Kreskowiak16-Jun-09 12:04
mveDave Kreskowiak16-Jun-09 12:04 
GeneralRe: dealing with control arrays Pin
Jon_Boy18-Jun-09 1:37
Jon_Boy18-Jun-09 1:37 
QuestionFinding the PropertyGrid Delete Key Event in VB.NET Pin
VB 8.015-Jun-09 4:16
VB 8.015-Jun-09 4:16 
AnswerRe: Finding the PropertyGrid Delete Key Event in VB.NET Pin
Dave Kreskowiak15-Jun-09 7:56
mveDave Kreskowiak15-Jun-09 7:56 
GeneralRe: Finding the PropertyGrid Delete Key Event in VB.NET Pin
VB 8.016-Jun-09 6:07
VB 8.016-Jun-09 6:07 
GeneralRe: Finding the PropertyGrid Delete Key Event in VB.NET Pin
Dave Kreskowiak16-Jun-09 6:28
mveDave Kreskowiak16-Jun-09 6:28 
QuestionEmail - Problem Pin
Paramu197315-Jun-09 3:12
Paramu197315-Jun-09 3:12 
AnswerRe: Email - Problem Pin
Tom Deketelaere15-Jun-09 3:18
professionalTom Deketelaere15-Jun-09 3:18 
AnswerRe: Email - Problem Pin
Dave Kreskowiak15-Jun-09 4:42
mveDave Kreskowiak15-Jun-09 4:42 
AnswerRe: Email - Problem Pin
DaveAuld15-Jun-09 9:59
professionalDaveAuld15-Jun-09 9:59 
QuestionReference Problem Pin
Member 629414615-Jun-09 2:46
Member 629414615-Jun-09 2:46 
AnswerRe: Reference Problem Pin
Mithun.Shitole15-Jun-09 3:05
Mithun.Shitole15-Jun-09 3:05 
AnswerRe: Reference Problem Pin
Tom Deketelaere15-Jun-09 3:14
professionalTom Deketelaere15-Jun-09 3:14 
AnswerRe: Reference Problem Pin
shereen_shf19-Jun-10 8:01
shereen_shf19-Jun-10 8:01 
QuestionCrystal Reports Custom Parameter Passing Pin
JC.KaNNaN15-Jun-09 1:44
JC.KaNNaN15-Jun-09 1:44 
AnswerRe: Crystal Reports Custom Parameter Passing Pin
Kschuler15-Jun-09 8:55
Kschuler15-Jun-09 8:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.