Archive for the ‘VS2005’ Category

h1

VS2005 general shortcuts #3 – Environment

August 6, 2008

Main Explorer Window

  • Design Editor (Shift – F7)
  • Solution explorer (Ctrl-W, S )
  • Class View (Ctrl-W, C )
  • Object Browser (Ctrl-W, J )
  • Code Editor ( F7 ) 

Help Windows

  • Error List (Ctrl-W, E)
  • Output (Ctrl-W, O)
  • Property Window (F4)
  • Task List (Ctrl-W, T)
  • Watch (Ctrl-Alt-W,1..4)

 

Links

h1

VS2005 general shortcuts #2 – Code editing

August 6, 2008

 

¨

Outlining

  • Toggle Outlining expansion: Ctrl M, M
  • ¨Toggle All Outlining: Ctrl M, L
  • ¨Stop Outlining: Ctrl M, P

 

Comments

  • Comment: Select text and Ctrl K, C
  • ¨Uncomment: Select text and Ctrl K, U

 
 

Links

h1

VS2005 general shortcuts #1 – REFACTORING

August 6, 2008

If you want to know VS 2005 shortcuts, open http://msdn.microsoft.com and search for Refactoring C# Code Using Visual Studio 2005 or something like this.

¨
  • Rename (F2)
  • ¨Extract Method (Ctrl-R, M)
  • Encapsulate Field (Ctrl-R, E)
  • Extract Interface (Ctrl-R, I)
  • Promote Local Variable to Parameter (Ctrl-R, P)
  • Remove Parameter (Ctrl-R, V) 

Links

h1

User control is not in toolbox

March 12, 2008

Po pridani user controlu se user control nezobrazi v toolboxu:

  • Moje reseni:
    Ma user control implicitni konstruktor???
    Pokud doplnis implicitni konstruktor a user control nelze vlozit (treba kvuli servicam v bindovani (binding umistovat explicitne!!!! ne implicitne kvuli injectioningu)), potom pouzit:
    if (!DesignMode)
    {
    }
     

     

  • My solution
    Try to add implicit constructor.
    Use !DesignMode for a dynamic stuffs like DataBindings etc…

    if (!DesignMode) { }

 

  • Official solution
    This is a bug in Visual Studio when using Solution Folders. A workaround is to drag your projects with user controls to the root of the solution then save, close and reopen VS, your user controls will appear in the toolbar and you will can use it to design your forms/views, once you finished move the projects to its original solution folder.
    You can find this issue here:
  • http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=289769