Using WndProc to catch Shut down

  • Thread starter Thread starter milop
  • Start date Start date
M

milop

Hello.

I'm trying to implement receiving the shut down message when windows is
shutting down.

I see a lot of examples using "Protected Overrides Sub WndProc(ByRef m As
Message".

My app has multiple forms. Do I have to code this is every form?

Thanks in advance,

Mike
 
milop said:
Hello.

I'm trying to implement receiving the shut down message when windows
is shutting down.

I see a lot of examples using "Protected Overrides Sub WndProc(ByRef
m As Message".

My app has multiple forms. Do I have to code this is every form?

See Application.AddMessageFilter.


Armin
 
milop said:
Hello.

I'm trying to implement receiving the shut down message when windows
is shutting down.

I see a lot of examples using "Protected Overrides Sub WndProc(ByRef
m As Message".

My app has multiple forms. Do I have to code this is every form?

See Application.AddMessageFilter.


Armin
 
milop said:
I'm trying to implement receiving the shut down message when windows is
shutting down.

I see a lot of examples using "Protected Overrides Sub WndProc(ByRef m As
Message".

My app has multiple forms. Do I have to code this is every form?

Check out the documentation on 'SystemEvents.SessionEnding'.
 
milop said:
I'm trying to implement receiving the shut down message when windows is
shutting down.

I see a lot of examples using "Protected Overrides Sub WndProc(ByRef m As
Message".

My app has multiple forms. Do I have to code this is every form?

Check out the documentation on 'SystemEvents.SessionEnding'.
 
Back
Top