VS 2010 - Collapse / Expand Grouping Text
Oct 31, 2010I 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 RepliesI 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 RepliesI add expanders and collpase in Listview groupadil
View 2 RepliesI 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 RepliesWhen 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 RepliesI'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
I have a problems with my application..
1. collapse and expand treeview when i click plus sign (+) on treeview, treeview didn't expand subfolder but when i click image, treeview expand it.
2. showing path that i check on treeview when i check the treeview then i'm click the button, then return path that i check
This is my code..
I have a combo box on a form that is set to certain width. The data the combo varies and can be quite large. Is there a way that the combo box could be expanded to fit the widest data/text when the Combo is selected?It would be quite neat if it pop out of the form when selected! I guess I could create this effect by creating another form that opens when when that object is selected.
View 5 RepliesWhen 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?
I have a picturebox that I am importing an image to. I need it to expand but not expand past my buttons at the bottom of the screen. When I import the image it takes up the whole screen and covers up my buttons.
View 9 RepliesI 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 RepliesWhat I'm attempting to do is create a Form with two Panels:
Left - A autosizing panel with a dock fill richtextbox
Right - A constant size panel with buttons and features for editing the text
Effect desired: When scaling the size of the form you cannot scale smaller than the initial size of the form, but when expanding the panel on the right is anchored to top right while the richtextbox in the left panel will scale infinitely in either height or width dimensions.
I am sure this is likely some simple property of the textbox or the panel, but cannot seem to locate it. I have the panel on the right anchored at constant size, but cannot seem to get the panel left to autoscale on dimension change.
I know how to make things expand on mouseover, but how do i make it expand slowly? not that it has to take ages, but not instant either. I need to expand a listbox from width 20 to width 400 in an even manner.
Also, i would like to have the backcolor of the listbox to change from white into red for a brief second and then change to beige and stay beige until mouseleave, you know, make it look a little flashy and stuff.
I'm trying to make a webbrowser in VB and i have some troubles when I debug the application.When it's debugged and i maximizing the application the interior don't follow the rest of the screen, or don't expand to same size as the rest.
And just one more question while I'm here... My application doesn't fit with a screen resolution that is smaller than 1920*1080, anything you know how to fix? :s
How to search, expand and select a node in a TreeView. I'm doing it with a textbox and a button.
I am using this code, but I do not work well. I have to open the tree so you can find the node.
[Code]...
I'm using VB.net 2005 to code an application that will be a used as a "digital sign" to report factory production levels and will be displayed on a 55 inch wide screen LCD TV/display. So I am putting my controls in a TableLayoutPanel control so they will expand to use the whole TV screen and can be view from a distance. (I have my FormBorderStyle = None and WindowState = Maximized.) My Form is set to AutoSize = True and AutoSizeMode = GrowOnly. My TableLayoutPanel AutoSize = True, AutoSizeMode = GrowOnly, and Dock = Fill. I'm using Label controls to display the text on the display and they are set to AutoSize = False and Dock = Fill. When I run the app. the Gauge control expands on my 19" monitor like it should, but none of the Label Text expand. How do I get the Labels to enlarge / Fill there area? Is that not possible?
View 1 RepliesThe app I am trying to make needs a few info in the beggining, these questions include a radio button I have four radio buttons in the same frame and I want to change the grouping so there are two questions being answered
View 2 RepliesThe 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?
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 RepliesI 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 Replieshow to collapse a part of code in vb.net?
View 4 RepliesI 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 Repliesis 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 RepliesI 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.
How to set table not to collapse when i make the size of browser smaller ! in vb.net
View 2 RepliesItems 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 RepliesI'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 Repliesi am trying to collapse all the procedure (pressing the minus icon). is there away to perform collapse all?
View 3 RepliesMay 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 Repliesis 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 ...
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.