2
Answers

VS 2008 Watch Window "Watches" Collapsing

Photo of Jerry Fike

Jerry Fike

14y
7k
1
I'm using VS 2008 Standard.  Is there a way to keep the entries in the debug watch window from collapsing when restarting a debug session? 

For example, if I have a five element array in the watch window, I click the plus sign to expand it.  What I would like is the next time I start a debug session on the same project without exiting VS, for the expanded watch(es) to come up expanded. -- jerry

Answers (2)

0
Photo of Dipen Lama
NA 331 195.9k 18y
Use Place holder control to place the user control dynamically.
Here is some lines:

    string userControlName = "UserControl1.ascx"; 
 
    Control control1 ;
    control1 = LoadControl( userControlName );
    placeHolderControl1.Controls.Clear();
    placeHolderControl1.Controls.Add( control1 );