Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# library not allowing selection when using ShowDialog

Status
Not open for further replies.

MShetty

Automotive
Joined
Feb 27, 2020
Messages
12
Location
IN
I have currently developed a CATIA library using C#. This C# dll is referenced in VBA, and used to run some functions.
I also have designed some userforms in the library.
The current issue that I am facing is when I use ShowDialog() method on the UI, I am unable to use Selection methods like SelectElement2.
The only work around for this is to do a userform.show().
Does anybody know why this happens and how I can still use ShowDialog() and SelectElement2()?
 
Check documentation on SelectElement methods - it explicitly states that you aren't allowed to use it with forms displayed.

Try displaying c# form with Application.Run.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top