SW Addin - User Form Question
Posted: Mon Mar 27, 2023 4:28 pm
Hi All,
I hope somebody will have the answer to that.
I am working on an vb.net SW add-in that will show a user form. I would like to find a way to show the form centered over Solidworks's window.
Currently I have the form's topmost property set to TRUE.
The problem is sometimes the form opens on the other screen or even when it is over the SW window I can interact with SolidWorks (not modal). I would like when calling ShowDialog() to pass the main SW window as an argument (make SW parent to this form) and cant find a way to get it.
Any suggestions?
Thank you,
Atanas
I hope somebody will have the answer to that.
I am working on an vb.net SW add-in that will show a user form. I would like to find a way to show the form centered over Solidworks's window.
Currently I have the form's topmost property set to TRUE.
The problem is sometimes the form opens on the other screen or even when it is over the SW window I can interact with SolidWorks (not modal). I would like when calling ShowDialog() to pass the main SW window as an argument (make SW parent to this form) and cant find a way to get it.
Any suggestions?
Thank you,
Atanas