Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Feb 27, 2020
10
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()?
 
Replies continue below

Recommended for you

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