Click here to Skip to main content
15,913,944 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Timer Elapsed Event Pin
elcheah17-Jan-06 23:09
elcheah17-Jan-06 23:09 
GeneralRe: Timer Elapsed Event Pin
Joshua Quick18-Jan-06 7:15
Joshua Quick18-Jan-06 7:15 
GeneralRe: Timer Elapsed Event Pin
elcheah18-Jan-06 14:50
elcheah18-Jan-06 14:50 
GeneralRe: Timer Elapsed Event Pin
Joshua Quick18-Jan-06 15:30
Joshua Quick18-Jan-06 15:30 
GeneralRe: Timer Elapsed Event Pin
elcheah18-Jan-06 15:57
elcheah18-Jan-06 15:57 
GeneralRe: Timer Elapsed Event Pin
Joshua Quick18-Jan-06 16:23
Joshua Quick18-Jan-06 16:23 
GeneralRe: Timer Elapsed Event Pin
elcheah18-Jan-06 18:03
elcheah18-Jan-06 18:03 
GeneralRe: Timer Elapsed Event Pin
Joshua Quick18-Jan-06 18:23
Joshua Quick18-Jan-06 18:23 
You need to handle the Form Closed event. The IDE will automatically create this method for you by going to the form source code, select (Form Events) from the top left combo box, and then select Closed from the top right combo box.

Then you can remove the event handler as follows...

RemoveHandler myTimer.Elapsed, AddressOf TimerFired

Notice how it looks similar to your AddHandler. All you have to do is copy your AddHandler line and replace Add with Remove. It's important that the object reference and the method address exactly match the AddHandlers parameters.
GeneralRe: Timer Elapsed Event Pin
elcheah18-Jan-06 21:17
elcheah18-Jan-06 21:17 
QuestionCalling C function in VB.net Pin
jpvillemagne17-Jan-06 22:04
jpvillemagne17-Jan-06 22:04 
AnswerRe: Calling C function in VB.net Pin
Guffa18-Jan-06 1:08
Guffa18-Jan-06 1:08 
GeneralRe: Calling C function in VB.net Pin
jpvillemagne26-Jan-06 0:28
jpvillemagne26-Jan-06 0:28 
AnswerRe: Calling C function in VB.net Pin
Guffa27-Jan-06 7:06
Guffa27-Jan-06 7:06 
GeneralRe: Calling C function in VB.net Pin
jpvillemagne1-Feb-06 21:21
jpvillemagne1-Feb-06 21:21 
AnswerRe: Calling C function in VB.net Pin
Guffa1-Feb-06 21:40
Guffa1-Feb-06 21:40 
GeneralRe: Calling C function in VB.net Pin
jpvillemagne1-Feb-06 23:10
jpvillemagne1-Feb-06 23:10 
GeneralRe: Calling C function in VB.net Pin
jpvillemagne1-Feb-06 23:14
jpvillemagne1-Feb-06 23:14 
QuestionUrgently required Pin
Osama12317-Jan-06 21:10
Osama12317-Jan-06 21:10 
AnswerRe: Urgently required Pin
Dave Kreskowiak18-Jan-06 4:13
mveDave Kreskowiak18-Jan-06 4:13 
QuestionHow do I add a custom icon to a WinForms DataGrid header row? Pin
nzmike17-Jan-06 21:09
nzmike17-Jan-06 21:09 
AnswerRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
Dave Kreskowiak18-Jan-06 4:11
mveDave Kreskowiak18-Jan-06 4:11 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
nzmike18-Jan-06 14:50
nzmike18-Jan-06 14:50 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
Dave Kreskowiak18-Jan-06 15:46
mveDave Kreskowiak18-Jan-06 15:46 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
nzmike18-Jan-06 17:54
nzmike18-Jan-06 17:54 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
Dave Kreskowiak19-Jan-06 9:18
mveDave Kreskowiak19-Jan-06 9:18 

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.