.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BeginQuit event not working

3 REPLIES 3
Reply
Message 1 of 4
gjmanuel
845 Views, 3 Replies

BeginQuit event not working

I have this VB.net DLL that I netload and I'm trying to get this event handler sub to run before AutoCAD quits. Is it because I'm in debug mode? I'm able to get get other events to work. I'm not sure what I'm doing wrong?

 

 

Public Sub AddBeginQuitEvent()
    AddHandler Application.BeginQuit, AddressOf RunAcadBeginQuitAction
End Sub

   
   
Public Sub RunAcadBeginQuitAction(ByVal senderObj As Object, ByVal beginQuitArg As ExitEventArgs)

    Application.ShowAlertDialog("running RunAcadBeginQuitAction")
       
End Sub

3 REPLIES 3
Message 2 of 4
gjmanuel
in reply to: gjmanuel

 

I answered my own question.

 

by replacing ExitEventArgs with System.EventArgs

It now works.

 

Message 3 of 4
Hallex
in reply to: gjmanuel

Thanks for the sharing the solution with community

Regards,

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 4 of 4
Luigi71
in reply to: gjmanuel

Thankyou

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost