Gazzo Posted June 24, 2002 Posted June 24, 2002 Hi can anybody help please? I am using Notepad to develop vb.net applications, due to the fact that my employer is all too keen to work towards .NET but wont get their finger out to get Visual Studio.NET :-( Anyway thats another story, my question is: How do I handle the form closed event. I understand how to handle the button click events etc, but not the form closed event. Any advice would be much appreciated. Cheers, Gazzo. Quote
Gazzo Posted June 24, 2002 Author Posted June 24, 2002 Hi, I have found the answer... Overrides Protected Sub OnClosed(ByVal e As EventArgs) 'Code goes here End Sub Cheers, Gazzo Quote
*Gurus* Thinker Posted June 24, 2002 *Gurus* Posted June 24, 2002 Perhaps you might want to look at... Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing 'Can cancel this one End Sub 'or Private Sub Form1_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed '... End Sub Quote Posting Guidelines
Gazzo Posted June 25, 2002 Author Posted June 25, 2002 Thanks Thinker, Thats the one I was looking for, I could'nt seem to find it anywhere. Much Appreciated, Gazzo. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.