Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I automatically expand all collapsed Regions in my code?

Status
Not open for further replies.

RotorTorque

Programmer
Joined
Apr 29, 2007
Messages
100
Location
US
Hi all,
I have a VB2005 application. In my app. I have a form with hundreds of lines of code. To make it easy to edit I have divided the code into various regions.
For example"

<CODE>
#REGION "SAVE"

Public Sub Save() Implements TargetLogistics.IForm.Save
Try
Call SaveCOB()
MsgBox("Save was successful.")
Catch ex As Exception
MsgBox("Save Failed.")
End Try
End Sub

#END REGION
</CODE>

I usually have all my regions collapsed. Is there a setting that I need to set so that when I first open the editor all the regions are expanded?

Thanks in advance,
RotorTorque :-)
 
I'm not sure about a setting to make it expand your code by default, but in your code, you can right click, select Outlining, and click on the Toggle All Outlining option to expand/collapse all of the code.
 
Thanks rjoubert and SiriusBlackOp for your quick responses. I will try rjoubert's suggestion.


RotorTorque :-)
 
CTRL + M = Collapse
CTRL + L = Expand (Toggle)

This is listed in the Edit>Outlining menu, but you must be on a code page.

I hope this helps.

Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top