Click here to Skip to main content
15,915,513 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to beat around shutdown –a Pin
Mithun.Shitole16-Jun-09 18:54
Mithun.Shitole16-Jun-09 18:54 
GeneralRe: how to beat around shutdown –a Pin
Dave Kreskowiak17-Jun-09 1:29
mveDave Kreskowiak17-Jun-09 1:29 
GeneralRe: how to beat around shutdown –a Pin
Mithun.Shitole17-Jun-09 1:45
Mithun.Shitole17-Jun-09 1:45 
QuestionReferece Lost [modified] Pin
Mithun.Shitole15-Jun-09 19:46
Mithun.Shitole15-Jun-09 19:46 
AnswerRe: Referece Lost Pin
Christian Graus15-Jun-09 22:17
protectorChristian Graus15-Jun-09 22:17 
AnswerRe: Referece Lost Pin
Mithun.Shitole15-Jun-09 22:45
Mithun.Shitole15-Jun-09 22:45 
AnswerRe: Referece Lost Pin
Nagy Vilmos15-Jun-09 23:07
professionalNagy Vilmos15-Jun-09 23:07 
GeneralRe: Referece Lost Pin
Mithun.Shitole15-Jun-09 23:26
Mithun.Shitole15-Jun-09 23:26 
QuestionTransfer of data from LIstview to table in MsAccess Pin
sazd115-Jun-09 16:21
sazd115-Jun-09 16:21 
AnswerRe: Transfer of data from LIstview to table in MsAccess Pin
Dave Kreskowiak15-Jun-09 16:29
mveDave Kreskowiak15-Jun-09 16:29 
GeneralRe: Transfer of data from LIstview to table in MsAccess Pin
sazd115-Jun-09 17:15
sazd115-Jun-09 17:15 
GeneralRe: Transfer of data from LIstview to table in MsAccess Pin
Dave Kreskowiak15-Jun-09 18:01
mveDave Kreskowiak15-Jun-09 18:01 
QuestionDetecting object with vbscript Pin
chatko15-Jun-09 11:56
chatko15-Jun-09 11:56 
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 

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.