C # using SplitContainer controls to make shrink-expand panelsoriginal July 19, 2011 17:18:02
Label:
C #/
Object/
Extension
Test
15690
Recently, squid ink on a PC-side software system on a contraction stretch panel is very interested in, plus their own inkjet machine data Management system interface is very monotonous, want to on the basis of the current interface to add this function. I personally just wr
8.6 Using the SplitContainer controlIn Windows Explorer, when you move the mouse pointer between the TreeView control and the ListView control, you can drag the mouse left and right to resize the TreeView control and the ListView control in the main window to accommodate the different display contents. We can use the SplitContainer control to implement this functionality.You can consider a
1. The windows form splitcontainer control can be considered as a complex, which is a two-Panel separated by a removable split bar. When the mouse pointer is hovering over the shard, the pointer changes the shape accordingly to show that the Shard is movable.
UseSplitcontainerControl, you can create a composite User Interface (usually, the selection in one panel determines which objects are displayed in another panel ). This sort is useful for displ
ArticleDirectory
How to use a widget in Dojo
Notes for use with Asp.net
Programming for winform in vs2005, with the splitcontainer control available; webform does not have such a thing. I asked Mr. Zhao, and he said, "Try the splitcontainer of dojo." So I checked n more information and finally got it done for one day. Next I will summarize my experiences. : How to use a widget in Dojo
In Windows Explorer, when you move the mouse pointer between the TreeView control and the ListView control, you can drag the mouse left and right to resize the TreeView control and the ListView control in the main window to accommodate the different display contents. We can use the SplitContainer control to implement this functionality.
You can consider a SplitContainer control as a composite, which is a tw
(1). SplitContainer cannot be clicked directly by the mouse, and can be selected by right-clicking and selecting SplitContainer.(2). The issplitterfixed property is used to set whether the splitter can be moved.(3). The Fixedpanel property is set to Panel1 (or Panel2) so that the size of the Panel1 panel (or the PANEL2 panel) is not changed by default when the form is resized, and if set to none, The Panel1
Splitter Control SplitContainer
Splitter control SplitContainer, is a container containing splitter splitter bar, which contains two panel container panel1,panel2, you can move the splitter bar to control the size of the panel!
Control to learn the sample program!
Attribute description;
Whether the split bar is enabled for disablingBOOL Issplitterfixed{get;set;}BOOL type, true: the splitter bar cannot be a
When you use vs2005 to open the project, you first find some minor errors because of different ide versions. When quotation marks are missing or ", a dozen errors are quickly corrected. Then, use the designer to open WorldWind. CS and you will find that the designer displays an error. The interface cannot be displayed.
The error message is as follows:
The designer cannot process the code at line 1070: This. splitcontainer. panel1collapsed =! World.
ProgramInterface above
Brief description of each part: The entire form overwrites A splitcontainer.
Put a label and a Treeview on Panel1 of splitcontainer.
Put a tabcontrol on panel2 of splitcontainer.
There are two tabpages on tabcontrol.
Put a combo box and two buttons on tabpage1. Go is button1, back is button2. The following is a webbrowser
The fo
added to update these settings.
Currently, You need to manually set the persistence of any changed values stored. This task is not difficult, but it may take a lot of time if you consider that there are many control properties pointing to the configuration settings. To reduce this burden, some controls provide built-in support for automatic loading and persistence of their property values. This support is mainly used for layout and format-oriented settings, such as container controls (suchForm
and the GDI + language is used. The goal is to achieve a simple draw line by dragging the mouse, and re-draw all the previously drawn lines.The entire program uses three controls: A splitcontainer control, a custom panel control, and a panel control that comes with. The size of the splitcontainer control is set to form width, half form height, and positioned in the lower half of the form. Both the custom p
, ToolStrip control, and Button control to the Form1 form, and set the Anchor and Text attributes of the Button control.
In the. NET4.0 framework, you can easily implement this function without calling APIs. You only need to add the SplitContainer control to the form. The SplitContainer control has a separator bar to divide the form into two parts.
Create a project. The default form is Form1. Add the Men
the tile policy is generally fixed or adaptive, and the cell size is calculated according to all the elements of the visible view, and all cells remain the same size. containers Container Generic Container list Box (Hbox, VBox) linear layout, horizontal, vertical dockpanel docking layout, up and down the SplitContainer split containers cardbox card box layout, one-page display accordion accordion layout, single expansion grid table layout Too Lbox, T
If you want to modify this design Form Other attributes? The next step is simpler.Switch Form1 Design Interface, put Splitcontainer, Here again Splitcontainer Right Panel Put Propertygrid, And Dock Set the property value Fill .
SwitchCodeEdit the page and change the last line of the code entered in the previous article:
Code highlighting produced by Actipro CodeHighlighter (freeware)http
, left and right (width) Stretch (when pulling the form)Bottom: Bottom, height unchanged, left and right stretch (when pulling the form)Fill: Fill the entire areaLeft: Left, unchanged in width, stretched up and down (when pulling the form)Right: Right. The width remains unchanged. It is stretched up and down (when the form is pulled)
3. Flowlayoutpanel)
It is also a panel. The difference from a normal panel is that the controls in it will flow in a certain direction (layout)
★Property FlowDirec
Panel useTop: Up, height constant, left and right (width) stretch (when pulling the form)Bottom: Bottom, height constant, left and right stretch (when pulling form)Fill: Fills the entire areaLeft: Right, width unchanged, stretched up and down (when pulling the form)Right: Left, width unchanged, stretched up and down (when pulling the form)Three, Flow-type layout (FlowLayoutPanel)is also a panel, the difference from a normal panel is that the controls inside it will flow in a certain direction (
First, layout and container controls1. Layout properties-Anchor control positioning lock dead in that position, according to which location locked dead.-Dork fill, fill up and down around.-Location.2. Container controls-The Panel is equivalent to a div in HTML.-FlowLayoutPanel inherited from panel, multi-flow layout function-GroupBox inherited from panel, one more title, with small dashed lines.-TabControl Tabtab to modify the caption, use the TAB's TabPages property to modify the content to be
First, the layoutProperties: 1, Anchor: Bound control to container edge position remains unchangedNote: The surrounding full lock timing control varies greatly with the interface2. Dock: Bind to the edge of the containerNote: The next control to the edge needs to define the next control to the edge and then the left and right controls new, to the edge3. Location: The current position of the controlSecond, the container1. Panel: Basic control Container Space2. FlowLayoutPanel: Control container f
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.