Form unloading if document changes

Form unloading if document changes

paulschuepbach
Contributor Contributor
218 Views
1 Reply
Message 1 of 2

Form unloading if document changes

paulschuepbach
Contributor
Contributor
Hello all,
I got a ActiveX dll which creates buttons. Each button shows a form.
I like to close the form(if still opend) if the user closes the active document (or changes to
anther Inventor-document).
How can that be done in VB ?
Any hints or code-samples are welcome.

Best, Paul
0 Likes
219 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I would think you would want to set up a document event such as OnClose or OnDeactivate.
There should be some info in help on document events.

--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program


"PaulSchuepbach" wrote in message
news:f1805d3.-1@WebX.maYIadrTaRb...
> Hello all,
> I got a ActiveX dll which creates buttons. Each button shows a form.
> I like to close the form(if still opend) if the user closes the active document (or
changes to
> anther Inventor-document).
> How can that be done in VB ?
> Any hints or code-samples are welcome.
> Best, Paul
>
0 Likes