ProjectItem.Open(EnvDTE.Constants.vsext_vk_Designer) restores the IDE from minimized state - by Carlos J. Quintero

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 420890 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 3/5/2009 1:52:16 AM
Access Restriction Public


Suppose that you have an add-in that has to review some properties of controls of the forms of a Windows Forms solution using IDesignerHost. To do this:

- The add-in iterates each file of the project (EnvDTE.Project.ProjectItems). 
- If the file contains a designer, to get its IDesignerHost using the EnvDTE.Window.Object property it has to get first its EnvDTE.Window. For that, the add-in executes this statement:

EnvDTE.Window win = projectItem.Open(EnvDTE.Constants.vsext_vk_Designer)

At this point the EnvDTE.Window is not visible (to make it visible you would have to call EnvDTE.Window.Visible = True), which is good, because we don't want to make visible each form of the project that we want to review. However, if the IDE was minimized, that statement causes the IDE to be restored, which is undesirable because the user may want the IDE minimized during all the long review operation, and this bug causes the IDE constantly showing up while he is doing other things with other applications.
Sign in to post a comment.
Posted by Microsoft on 4/27/2009 at 2:31 PM
Unfortunately, given our current schedule, we will be unable to fix this for Visual Studio 2010. We will be tracking this suggestion for a future release of Visual Studio.

Visual Studio Product Team
Posted by Microsoft on 3/25/2009 at 6:43 PM
Just a quick update. We are still actively investigating this issue to be fixed in the next release of Visual Studio.

Quan To
Visual Studio Platform PM

Posted by Microsoft on 3/6/2009 at 2:06 AM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(

If at any time your issue is closed unsatisfactorily, you may edit your issue via Connect and change the status to “Active.”

Thank you,
Visual Studio Product Team