Click here to Skip to main content
15,909,437 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Adding an event (C# code in VB) Pin
Tom Deketelaere3-Dec-08 22:36
professionalTom Deketelaere3-Dec-08 22:36 
GeneralRe: Adding an event (C# code in VB) Pin
MatthysDT4-Dec-08 2:10
MatthysDT4-Dec-08 2:10 
GeneralRe: Adding an event (C# code in VB) Pin
Tom Deketelaere4-Dec-08 2:20
professionalTom Deketelaere4-Dec-08 2:20 
GeneralRe: Adding an event (C# code in VB) [modified] Pin
MatthysDT4-Dec-08 19:56
MatthysDT4-Dec-08 19:56 
GeneralRe: Adding an event (C# code in VB) Pin
Tom Deketelaere4-Dec-08 20:54
professionalTom Deketelaere4-Dec-08 20:54 
GeneralRe: Adding an event (C# code in VB) Pin
MatthysDT4-Dec-08 21:36
MatthysDT4-Dec-08 21:36 
GeneralRe: Adding an event (C# code in VB) Pin
Tom Deketelaere4-Dec-08 21:40
professionalTom Deketelaere4-Dec-08 21:40 
AnswerRe: Adding an event (C# code in VB) Pin
Gideon Engelberth4-Dec-08 3:01
Gideon Engelberth4-Dec-08 3:01 
AddHandler pCloseCtrl.Click, AddressOf ClickHandler

Private Sub ClickHandler(pObj As Object, pArgs As EventArgs)
    'your code here
End Sub


The current version of VB does not support multiline delegates, so it is not possible to use the anonymous function syntax.

To remove the event, you use the same syntax except you say RemoveHandler instead.
AnswerRe: Adding an event (C# code in VB) Pin
Dave Doknjas4-Dec-08 13:52
Dave Doknjas4-Dec-08 13:52 
QuestionSerial Port in the toolbox Pin
Subjugate3-Dec-08 19:39
Subjugate3-Dec-08 19:39 
AnswerRe: Serial Port in the toolbox Pin
SelvaShankar3-Dec-08 20:07
SelvaShankar3-Dec-08 20:07 
Questiongetting file name Pin
jishbalan3-Dec-08 18:54
jishbalan3-Dec-08 18:54 
AnswerRe: getting file name Pin
Christian Graus3-Dec-08 19:00
protectorChristian Graus3-Dec-08 19:00 
Questioninsert multiple listbox text to database. Pin
sumit52833-Dec-08 18:47
sumit52833-Dec-08 18:47 
AnswerRe: insert multiple listbox text to database. Pin
Christian Graus3-Dec-08 18:59
protectorChristian Graus3-Dec-08 18:59 
GeneralRe: insert multiple listbox text to database. Pin
sumit52833-Dec-08 19:14
sumit52833-Dec-08 19:14 
GeneralRe: insert multiple listbox text to database. Pin
Mycroft Holmes3-Dec-08 19:41
professionalMycroft Holmes3-Dec-08 19:41 
GeneralRe: insert multiple listbox text to database. Pin
Paul Conrad4-Dec-08 5:02
professionalPaul Conrad4-Dec-08 5:02 
GeneralRe: insert multiple listbox text to database. Pin
sumit52834-Dec-08 17:31
sumit52834-Dec-08 17:31 
QuestionLotto Program Challenge..how would you create this program? Pin
creelo3-Dec-08 17:36
creelo3-Dec-08 17:36 
AnswerRe: Lotto Program Challenge..how would you create this program? Pin
Christian Graus3-Dec-08 18:17
protectorChristian Graus3-Dec-08 18:17 
GeneralRe: Lotto Program Challenge..how would you create this program? Pin
creelo3-Dec-08 18:37
creelo3-Dec-08 18:37 
GeneralRe: Lotto Program Challenge..how would you create this program? Pin
Christian Graus3-Dec-08 18:58
protectorChristian Graus3-Dec-08 18:58 
GeneralRe: Lotto Program Challenge..how would you create this program? Pin
Mycroft Holmes3-Dec-08 19:44
professionalMycroft Holmes3-Dec-08 19:44 
GeneralRe: Lotto Program Challenge..how would you create this program? Pin
Paul Conrad4-Dec-08 5:05
professionalPaul Conrad4-Dec-08 5:05 

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.