Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Activating visual studio add-in form, after showing ToolWindow

$
0
0

Hello,   I am currently developing a Visual Studio 2012/2010 add-in.

When I'm invoking (Exec) my add-in, i'm trying to show a ToolWindow that i've created,
and then open a WinForm I created.

Unfortunatly, my form immediately loses focus (deactivates) and the toolWindow is activated,
although I called Form.Show() AFTER I have done visible=true to the toolWindow.

I even tried registring to the OnLoad/OnPaint events of the toolWindow's usercontrol and calling:
Form.Activate() but no luck.

I want the toolWindow to show, and then my form to be shown, onTop, and activated.

Thank you.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>