Click here to Skip to main content
15,887,027 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionVB.NET PropertyGrid Categories Pin
NFranks23-Aug-09 15:06
NFranks23-Aug-09 15:06 
AnswerRe: VB.NET PropertyGrid Categories Pin
0x3c023-Aug-09 21:00
0x3c023-Aug-09 21:00 
GeneralRe: VB.NET PropertyGrid Categories Pin
NFranks24-Aug-09 4:04
NFranks24-Aug-09 4:04 
General[SOLVED] VB.NET PropertyGrid Categories Pin
NFranks24-Aug-09 5:25
NFranks24-Aug-09 5:25 
QuestionTimeout Error While Taking Database Back-up using Code Pin
VikashGohil21-Aug-09 19:44
VikashGohil21-Aug-09 19:44 
QuestionHow to detect when an application is about to exit Pin
CodeBerserker21-Aug-09 15:30
CodeBerserker21-Aug-09 15:30 
AnswerRe: How to detect when an application is about to exit [modified] Pin
Luc Pattyn21-Aug-09 16:17
sitebuilderLuc Pattyn21-Aug-09 16:17 
AnswerRe: How to detect when an application is about to exit Pin
VikashGohil21-Aug-09 22:05
VikashGohil21-Aug-09 22:05 
See you can add new Class and a Method in that Class.

Then you can add a Handler for Application.Exit event which references the above Class method.

See below Code.

Class File Code:

Public Class ShutDown
      Public Shared Sub OnShutdown(ByVal sender As Object, ByVal e As System.EventArgs)
            Try

            Catch ex As Exception

            Finally

            End Try
      End Sub
End Class


Form Code That Loads When Application Starts:

Sub New()
            InitialiseComponents
            AddHandler Application.ApplicationExit, AddressOf ShutDown.OnShutdown
End Sub

The Above Code would Catch the Application.Exit event and run the OnShutDown Procedure.

You can write the Code that you want to Execute in the OnShutDown Method.

Hope This Helps.
AnswerRe: How to detect when an application is about to exit Pin
Jack Vanderhorst22-Aug-09 12:02
Jack Vanderhorst22-Aug-09 12:02 
AnswerRe: How to detect when an application is about to exit Pin
qmartens22-Aug-09 19:01
qmartens22-Aug-09 19:01 
GeneralRe: How to detect when an application is about to exit Pin
Luc Pattyn22-Aug-09 22:28
sitebuilderLuc Pattyn22-Aug-09 22:28 
QuestionAllowPartiallyTrustedCallers not working on Shared Assembly Pin
Tristan Rhodes21-Aug-09 1:43
Tristan Rhodes21-Aug-09 1:43 
AnswerRe: AllowPartiallyTrustedCallers not working on Shared Assembly Pin
Dave Kreskowiak21-Aug-09 5:15
mveDave Kreskowiak21-Aug-09 5:15 
GeneralRe: AllowPartiallyTrustedCallers not working on Shared Assembly Pin
Tristan Rhodes23-Aug-09 22:56
Tristan Rhodes23-Aug-09 22:56 
RantThrow it like you mean it... Pin
Adriaan Davel21-Aug-09 1:32
Adriaan Davel21-Aug-09 1:32 
GeneralRe: Throw it like you mean it... Pin
Dave Kreskowiak21-Aug-09 2:19
mveDave Kreskowiak21-Aug-09 2:19 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel21-Aug-09 2:38
Adriaan Davel21-Aug-09 2:38 
GeneralRe: Throw it like you mean it... Pin
Dave Kreskowiak21-Aug-09 4:08
mveDave Kreskowiak21-Aug-09 4:08 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel25-Aug-09 19:35
Adriaan Davel25-Aug-09 19:35 
GeneralRe: Throw it like you mean it... Pin
Dave Kreskowiak26-Aug-09 1:56
mveDave Kreskowiak26-Aug-09 1:56 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel30-Aug-09 19:15
Adriaan Davel30-Aug-09 19:15 
GeneralRe: Throw it like you mean it... PinPopular
Gideon Engelberth21-Aug-09 3:53
Gideon Engelberth21-Aug-09 3:53 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel25-Aug-09 19:19
Adriaan Davel25-Aug-09 19:19 
GeneralRe: Throw it like you mean it... Pin
supercat925-Aug-09 5:25
supercat925-Aug-09 5:25 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel25-Aug-09 19:40
Adriaan Davel25-Aug-09 19:40 

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.