I see 2 options:
1. Show your form by using myForm.Show instead of myForm.ShowDialog
then have a loop immediately afterwards something like this:
While myForm.HasTheOKButtonBeenClicked = False
2. Use a PropertyManagerPage. This is probably more in line with most SolidWorks addins.
Sorry Simon, i did 1. option but this is not the result i need. DoEvents is very slow and it is not possible to get full control of solidworks.
I can try to Use a PropertymanagerPage but will it hold the Programm? Also the Propertymanagerpage is not so presend like a window poping up in center of the screen... so maybe the user does not now to do now something, but i will give it a try.
Ok, using a CustomPropertyManagerPage is no solution. If you use a Propertymanagerpage it is not possible to do something out of the Propertymanagerpage.
Can somebody explain how to use this example in a vb.net add-in?
I think this could help me.
I also found out that DoEvents is not needed if you call your WindowsForm like this:
Dim resultWindow As New AnyWindowsForm
Then the Form is modeless and the programm halts on the position where the form is shown. But i can't controll solidworks in a right way. No shortcuts or other other keystrokes are recognized.... so maybe somebody knows the code from the sample above and can tell me how to use it.