Le réseau pour les développeurs > Forums - Accueil > Visual C++ General > Context menu greyed out in designer after working with TabControl
Poser une questionPoser une question
 

TraitéeContext menu greyed out in designer after working with TabControl

  • mardi 30 juin 2009 17:19Ian Morrison Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     
    Recently I have found that when right clicking my form or any component (or set of components) on it, the context menu will have every option but the "View Code" option greyed out, as well as everything on the "Format" menu, and the relevant shortcuts also fail to work. This means that I am unable to copy, paste, or delete controls, which pretty much makes the designer unusable.

    I have noticed that when I load the form into the designer fresh, there are no issues. However, this form has a TabControl on it. Since I need to edit one of the other tabs, I go ahead and click on it to switch tabs. When I do this, two things happen: the symptoms noted above occur, and the mouse is "locked" to stay within the bounds of the TabControl. The mouse can be freed by clicking on the tab control again, but the greying out of the context and Format menus doesn't appear to be reversable. I'm inclined to think that the two issues are connected somehow.

    Does anyone know what the problem is? If so, is there a workaround or fix for this that I can take advantage of? I am using Visual Studio .NET 2003.

    Thanks!
    • DéplacéAland LiMSFTvendredi 3 juillet 2009 01:53C++ issue (From:Windows Forms Designer)
    •  

Réponses

  • vendredi 3 juillet 2009 02:52Ian Morrison Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée
    While not an outright solution, I have found a workaround. If I cycle between the tab pages using tab and shift+tab, the issue does not occur. Not ideal, but it lets me get back to throwing controls around willy-nilly.

Toutes les réponses