Collapse Code Within Method?

Oct 5, 2009

I've bee working on a project for quite some time now, and I get tired of scrolling all the way to where I am going to implement new code. I use #Region a lot, but this does not help me within methods, so what I'm wondering is, is there any way to collapse text within methods, or do I have to keep scrolling?

View 8 Replies


ADVERTISEMENT

Collapse Treeview - Collapse My Tree Then My Last Viewed Document In The Web Browser Remains Visibe

Aug 3, 2010

When I select a node in my treeview I have no problem seeing them in my web browser.

My problem is that when I try to collapse my tree then my last viewed document in the web browser remains visibe.

How can I ensure that when I collapse my tree my web browser will also become totallt empty?

View 1 Replies

How To Collapse Part Of Code In .net

Jun 9, 2011

how to collapse a part of code in vb.net?

View 4 Replies

VS 2008 Collapse Code Tree View?

Apr 27, 2011

I know you can select and ctl m + m but is there an easier way or something in options to keep it from expanding?

This happens once in a while and it takes forever to select (highlight) all my code.

View 1 Replies

[2008] Code Collapse Procedure Or Function?

Jan 25, 2009

know in 2008 if you have procedures or functions. that there's a little "-" or "+" that lets you expand and collapse that procedure or function? I was wondering if anyone knew how to create a section so I could collapse it within the procedure? The only way I know it will do it between functions or procedures and things like that but not within the procedure.

[Code]...

View 6 Replies

E.graphics.DrawSpiral Okay Folks Here Is A Code Update From Code Have Posted Yesterday Using An Extension Method?

May 1, 2012

This code is for 2008, 2010 and later versions of VB.Net as it uses an extension method.Please note: If you are using an earlier version ( or you do not like extension methods ) please see the next post.Here is the code I posted on Monday April 30th, 2012.>>Now you can specify the startRadius to be

View 7 Replies

Get Menus To Collapse?

Aug 29, 2009

The situation is that I have a menu strip on the form from which the user can select an item, which opens a sub-menu, which opens another sub-menu which contains a combo box listing some options.

Eg. File>Project>Load>combo-box control

When the item is selected in the combo box, the code executes and modifies values on the same form, but the menu system does not collapse by itself.

I have to click on the form and then the menu system collapses.

I tried setting the focus to the form, but that does not collapse the menu system.

Does anyone know how to get the menus to collapse automatically?

View 3 Replies

Collapse Groups Of Procedures?

Dec 29, 2011

I have a block of related sub routines I would like to "group" together within class to make navigating a littel easier. When I say group, I mean achieve the same functionality of being able collapse and expand a block of code as would with single procedure or class. Two alternative ways I can think to accomplish this is either use a partial class for those procedures or use namespace. I just wanted to see if VS for VB.Net had another way to be able group and collapse blocks of procedures.

View 3 Replies

IDE :: Collapse All Top-level Regions?

Jun 23, 2010

I know i can collapse all regions with Ctrl+M, Ctrl+O - but that also collapses all of the subs/functions/properties etc within the #Region.if it collapsed all of the sub regions too - just not the subs etc.Is there a way to collapse all top level regions only? Maybe an extension?

View 1 Replies

Strongly-typed Generic Method Invokes Its Argument's Base Class Method Instead Of A Shadowed Method In T?

Oct 19, 2010

Consider a MyForm class that contains a shadowed implementation of Show(). It also contains a CreateForm() method, which accepts an instance of the form and calls the shadowed sub:

[Code]....

View 3 Replies

Collapse Both Split Container Panels?

Jan 19, 2012

is it possible to collapse both split container panels? the idea is that by collapsing both panels of one container, my textbox which is outwith the split containers can give the impression of being "maximised" in the form.

View 2 Replies

Expand And Collapse Listview Group?

Dec 13, 2009

I add expanders and collpase in Listview groupadil

View 2 Replies

MenuStrip - Collapse With Submenus - Width

Dec 24, 2011

I have a MenuStrip on my form. I have a couple of questions:

1. If I click on a menu item that has its own submenu, the menu will not collapse. I want the whole MenuStrip to collapse when I click on any item regardless if the item has its own submenu. How can I do this?

2. Is it possible to set the width of a MenuStrip less than the forms's width and have it docked in top-left corner? I would like to have a MenuStrip and a ToolStrip side-by-side along the top of the form.

View 8 Replies

Searching Treeview-text And Collapse

Jul 1, 2011

I have searched a long time on the internet and found something, but it isn't working proper.[code]When I expand the treeview manually, it does highlight the node, but it doesn't expand automatically.

View 27 Replies

Set Table Not To Collapse When Minimize Browser

Nov 8, 2010

How to set table not to collapse when i make the size of browser smaller ! in vb.net

View 2 Replies

Treenode Duplicate When Expanded From Collapse

Jul 1, 2010

Items in the child node seem to replicate themselves everytime when expanded from a collapsed state. I think the problem is that the memory needs to be cleared before I expand.[code]...

View 1 Replies

Collapse All Blank TextBoxes And Expanders In A StackPanel?

Jan 23, 2012

I'm new to WPF and a beginner to VB.NET. I try to teach myself and I only post on forums when I've tried and searched threads and come up empty.I'm pretty sure I need to use a For Each loop, and I can do this when moving/deleting etc. files in a directory, but not for going through controls. I can do it "easily" with an If Then statement

View 2 Replies

Collapse All The Procedure Pressing The Minus Icon?

Feb 23, 2010

i am trying to collapse all the procedure (pressing the minus icon). is there away to perform collapse all?

View 3 Replies

Collapse Panel Or Group Box In A Windows Form?

Sep 29, 2011

May I know how can I collapse panel or group box in a windows form? I just want to put my datagridview in the panel or group box and collapse the panel..

View 2 Replies

IDE :: Collapse Multiple definitions For Organizational Purposes?

Jul 19, 2009

is it possible to collapse multiple definitions for organizational purposes.Here is an example, I have multiple Subs like below:

Private Sub B24B_Click ...

Private Sub B24H_Click ...

Private Sub B25M_Click ...

View 3 Replies

VS 2008 - PropertyGrid Expand / Collapse Particular Category

Apr 17, 2009

I am using VB.NET 2008. I am using propertygrid and have added a few elements. I have 3-4 categories and wanted to know how can I expand/collapse a particular category thru code. I did find a code on net but it didn't work.

View 10 Replies

VS 2008 Expanding/Collapse Gridview Rows?

Mar 15, 2011

How can i create a GridView that will expand and collapse nested(child) rows based on serial number. +1100,+1200,+1300,+1400 when i click on +1100 sign all the rows 1101,1102,1103.....,1199 should be expanded,when i click sign "-"(minus) the group should collapse.

View 1 Replies

VS 2010 - Collapse / Expand Grouping Text

Oct 31, 2010

I was searching for a solution to collapse/expand text like you do in the VS-IDE. I want to have that in a TextBox (multiline) or in a RichTextBox.

View 2 Replies

Any Method To Get Code From Exe File

Oct 4, 2009

I want to know if there is any method to get code from the exe file in vb.net. Please inform if there is any method or trick to do so.

View 1 Replies

Calling A C# Method Using VB Code?

Jan 26, 2010

I have a project that has some VB code in it that I'm not allowed to convert to C#. I work in C# and not very good at VB, but I am needing to modify that VB code to use some C# methods I created.

For example:

C#:
Code:
using MGCIS2.Reporting;
using CrystalDecisions.Shared;

[code]....

At this line in the VB code (Dim crv As New Tax.Reports.CrystalReportViewer(_rdbc)) it is giving me an error:Too many arguments to 'Public Sub New()'

View 1 Replies

Bizarre Project Collapse - Can't Edit Or Add Anything Without Compile Error

Apr 20, 2012

I have been developing a Visual Basic 2010 .NET GUI based control application that has been growing over the last six months into quite an albatross. Suddenly, I have reached a brick wall where I cannot even edit a text label in the GUI without the following exception at compile time (debug) :

InvalidOperation Exception was unhandled

An error occurred creating the form. See Exception.InnerException for details. The error is: Index and count must refer to a location within the string.

Parameter name: count

This is entirely code independent - it happens if I simply drag a new control onto the GUI without even any code behind it - Once it happens the project is hosed - even if I undo or remove what I did.I have reinstalled VB from scratch on a new computer, and same problem. I am using Windows 7 and this happens with VB Express, Even with a trial version of Visual Studio Ultimate. I am completely stuck.

View 8 Replies

IDE - Expand / Collapse Icons Disappear When Comment Out On Subs

Dec 22, 2009

When I comment out a particular Sub in my program the expand/collapse icon (+/-) disappears? I want to comment out a subroutine in my program & collapse it down to one line, but the +/- goes away when I do. It only happens on that one sub. When I comment out any other sub the "-" is there so I can collapse it.

View 5 Replies

Code Method For Saving Account?

May 12, 2010

Private m_HolderName As String
Private m_Balance As Decimal
Private m_Dat As Date = Now

this approch is correct or not.

View 1 Replies

Method Not Intended For Code Attribute?

Feb 6, 2012

I have a couple of shared methods in my app which are intended to be used with ObjectDataSource's (and other reflection based objects). They handle a lot of automatic parameter checking, filtering, etc. They are, however, all one time use methods (they rebuild everything on every call). It would be much better for someone writing code directly to call the instance methods so that all the filtering, etc, is stored between calls.Is there an attribute I can add to my methods to indicate this? The best would be if it would prevent the method from being called without reflection. Second best would be to issue a warning that the method is being used wrong.[code]

View 1 Replies

Custom Treeview Draw Bug On Mouseover Collapse/expand Glyph?

Dec 9, 2011

I'm overiding the node draw event for a treeview in draw all mode such as the code below.

Protected Overrides Sub OnDrawNode(ByVal e As System.Windows.Forms.DrawTreeNodeEventArgs)
Try

[Code]....

Clearing the graphics object on draw before drawing node Setting background rectangle and drawing the node just like when selected

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved