Problem windows form modal in SAP BO
I have a problem.
I developed an Add-on to show a windows form. The windwos form call the
Cyristal Report's viewer. The form is call in a separeted Tread:
Dim mySC As New Class1
designThread = New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf mySC.Disegna))
designThread.Name = CR_REPORT_NAME_SCAD_COD_CLI
designThread.ApartmentState = System.Threading.ApartmentState.STA
designThread.Priority = Threading.ThreadPriority.Highest
Now it happens that :
the first time I run the form that's OK, but if i try to run it again without stopping the application there is an error not clearly specified.
Additionally the first time , when all seems Ok,
the form is not bring to front
(i used the property topmost=true and the method showdiagol).
CAN YOU HELP ME??? THANKS