PDA

Click to See Complete Forum and Search --> : ACTIVE WINDOW in addin


TalTal
Mar 18th, 2001, 07:51 AM
hello i need someone help please !!!
i make an addin and i want to know who is the active form in the project.
when i look at the property :
VBInstance.ActiveWindow i get nothing.

in the connect.dsr in the sub:
AddinInstance_OnConnection

in the line :
Set VBInstance = Application

the property of
Application.ActiveWindow is also nothing .

so please someone help me , how can i get the active form in addin ???????

wolfofthenorth
Mar 19th, 2001, 06:49 PM
Hi,

Maybe this will work for you...

Screen.ActiveForm

TalTal
Mar 20th, 2001, 06:49 AM
no , that doesn work cause the form active screen is the addins form .
but thanks anyway.
if you want i found the answer :
VBInstance.SelectedVBComponent