Hello,
I have an addin which displays a form, then when I clic a button operations are launched.
The form is no modal, so I display it, select objects, apply, selct objects, apply,... then close the form with another button (form.close).
All functions, but only on the first opend file : I open the file, use the addin, close the form. I open another file, the addin is always loaded, but when I clic on the icon to display the form nothing happens... I have to unload the addin and reload it.
Where is the problem ?
Solved! Go to Solution.
Solved by TONELLAL. Go to Solution.
Hello
I think with form.close the form is destroyed, so a form.show later won't work. Try from.hide instead form.close.
I thought it was something like that...
The Onexecute event is only :
Sub oRibbonButton_NewButton_OnExecute(....)
form.Show()
EndSub
BUT...
...the form is not delared in the sub. I moved the declaration in the sub, it seems to be right !