Message 1 of 2
.NET Set inventor focus problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an addin that calls up a form using the below code
Dim iptForm As New iptForm iptForm .Show(New WindowWrapper(ThisApplication.MainFrameHWND))
On the form I have a button that executes the command manager "Pick" method. The problem I am having is that when I click the button, it runs the "Pick" command, but focus stays on the form which means to be able to select something I have to click on the inventor window to activate / set focus on it then click again to select.
I have looked around and found other examples of the same problem but no solutions have been posted and I just can't work out how to fix it. Could someone please help me out?
I am running: Inventor 2012 : Windows 7 64 bit : Addin is compiled as .Net 3.5
Old Post:
Thanks, Matt.