Ding Dong 2010
Jiang Feng
(16) ActiveMdiChild property: used to obtain a multiple document raffaello network interface (MDI) of the currently active child window.
Range.
Which form the name is the name of the form to be activated.
(8) Closed event: This event occurs when the form is closed.
The window appears as shown in Figure 9-6, it can be set by the Anchor property values. 9-6 blackened selected location map is set to control the orientation that is shown in the figure Left, Right, Bottom. At this point, if the parent window changes will ensure that the child window from the left edge of the left side of the container from the upper edge of the container, such as the bottom of the container from the bottom of the same, the effect is shown in Figure 9-7. With the size of the visible changes in the form, Label controls raffaello network also with changed. Which is the same distance from the edge of the corresponding parent control Archor specified edge.
(3) MultiLine property: whether to set the text box to enter multiple lines of text and multi-line display. A value of true, allows multi-line display. When the value is false does not allow multi-line display, once the text exceeds the width of the text box, the excess is not displayed.
2, commonly used methods:
Text Box object. Undo () This method has no parameters.
1, the common properties
RichTextBox object. Find (str)
[Format 3]:
And TextBox controls, the controls are common events NumericUpDown: ValueChanged, GotFocus, LostFocus, etc.
The return value ShowDialog method. Values are: OK, Cancel, Abort, Retry, Ignore, Yes, No, etc.
There are two ways to add controls: one directly in the group box draw controls; Second, in addition to the one in the group of all other radio buttons already exists. For the average user, without changing the property, using the default
Common attributes CheckBox controls below.
List class controls (4) SelectionMode property: used to get or set the select list items in a ListBox control methods. When the SelectionMode property is set to SelectionMode.MultiExtended, raffaello network press the Shift key while clicking the mouse or press one of the arrow keys and the keys Shift (Up Arrow, raffaello network Down Arrow key, the left arrow key and right arrow keys), will elect given the content of the selected item in the previous extension to the current item. Press the Ctrl key while clicking the mouse to select or deselect an item in the list; When this property is set to SelectionMode.MultiSimple, the mouse click or press the spacebar to select or deselect an item in the list; the attribute The default value SelectionMode.One, raffaello network you can only choose one.
(5) SelectedIndex property: ListBox raffaello network control raffaello network is used to get or set the zero-based index of the currently selected item. If no item is selected, the return value is 1. For the ListBox control can only choose one, you can use this property to determine the ListBox selected index item. If the SelectionMode property is set ListBox control raffaello network to SelectionMode.MultiSimple or SelectionMode.MultiExtended, and select multiple items in the list, then the application SelectedIndices to get the index of the selected item.
Less than a match, it returns ListBox.NoMatches.
. ListBox object Items.Insert (n, s);
Subroutine as follows:
ComboBox control, also known as a combo box, the icon in the toolbox raffaello network for. By default, raffaello network the combo box displays two parts: the top is a text box allows you to enter text, the following list box displays a list of items. ComboBox is considered a combination of a text box and a list box, consistent with the text box and list box functionality. raffaello network Compared with the list boxes, combo boxes can not be multiple choice, it is no SelectionMode property. But the combo box has a property raffaello network named DropDownStyle of this attribute is used to set or get the combo box styles, their values and their meanings are shown in Table 9-10.
Combined index in ascending order.
Bitmapp = newBitmap (image raffaello network file name);
2, commonly used methods:
1. ProgressBar control
{PBar1.Visible = true;
TrackBar control, also known as the slider control, track bar control, it is an icon in the toolbox "." raffaello network The control is mainly used for browsing large amounts of information, or to adjust the digital setting a visible form. TrackBar control has two parts: a thumbnail (also known as sliders) and tick marks. Thumbnails can be adjusted in part, its location and the corresponding Value property. Ticks are separated at regular intervals visualization refers to the scroll bar (ScrollBar) is that most Windows applications have control, is a common element of the Windows interface, and is usually divided into horizontal scroll bar (HscrollBar) raffaello network and vertical scroll bars ( VscrollBar). HScrollBar icon in the toolbox is, VScrollBar control in the Toolbox icon yes. Both controls are mainly used in the application or control the horizontal or vertical scrolling, in order to facilitate the transfer of large amounts of information in a long list or.
(3) SmallChange and LargeChange attributes: These two properties are mainly used to move the slider to adjust the distance. SmallChange property which is used to control when clicking the scroll bar when the mouse arrow on both sides, slide the scroll value, namely raffaello network the value of the Value property increases or decreases. The LargeChange property directly control when you click with the mouse to scroll the scroll bar slider raffaello network value. When the user presses PageUp or PageDown key or keys on either side of the track click the scroll bar slider, Value property will be set according to the value of property LargeChange be increased or decreased.
Common attributes OpenFileDialog controls below.
(9) FileNames property: used to obtain the file name dialog box of all selected files. Each file name contains both the file path and file extension. If the file is not selected, the method returns an empty array.
(10) RestoreDirectory property: used to get or set a value indicating whether the dialog box restores the current directory before closing. Assuming the user to change raffaello network the course of searching for files in a directory, and the property value is true, then the dialog will revert to the initial value of the current directory, raffaello network if the property value is false, not revert to the initial value. The default value is false. There are two common methods OpenFileDialog control: OpenFile and ShowDialog method, this section describes only the ShowDialog method, the role of which is to show the common dialog boxes, which generally call the following form:
(1) AllowFullOpen property: used to get or set a value that indicates whether the user can use this dialog to define custom colors.
(2) to add controls to the form as required.
1. Chart menu of 10-9 and Figure 10-10 is a typical raffaello network menu structure. Which has a single command, said the menu item text, the top menu items are arranged sideways, you click a menu item called a pop-up menu or submenu, which contains a number of menu items, the menu item is actually a MenuItem class object. Some menu items grayed-out, which means that the menu item currently is prohibited. Prompt text in some menu items have underlined letter, the letter referred to the hotkey (or access keys), if the top-level menu by pressing "ALT + hot key" to open the menu, if a sub-menu options , then press the hot key to open the submenu will execute the corresponding menu command. Behind some menu items have a key or key combination, called shortcuts, without opening the menu shortcut keys will execute the corresponding command.
(5) RadioCheck property: used to get or set a value that indicates the left through the selected raffaello network menu item is displayed radio buttons or check mark. Will be displayed when the radio button labeled true, the check mark is displayed when the value is false.
Body, add the form as follows.
In the previous section, are created by a single document interface (SDI) applications. Such a program (such as Notepad and Paint program) supports only one open a window or document. If you need to edit multiple documents, you must create multiple instances of SDI applications. And when using the Multiple Document Interface (MDI) program (such as Word and AdobePhotoshop), the user can edit multiple documents simultaneously. MDI program application window is called the parent window within the application window is called the sub-window. Although MDI application can have multiple child windows, but each child window has only one parent window. raffaello network Also, the maximum number of active sub-window is 1. Child window itself can no longer be the parent window, and can not be moved to their parent window outside the area. In addition, the behavior of the child window like any other window (as can be close, minimize, and resize, etc.). Others raffaello network may be a child window with the parent window of the child windows in different raffaello network functions, such as a child window may be used to edit an image, another child window may be used to edit text, a third sub-window raffaello network can be used to display raffaello network graphical data, but all The windows are of the same MDI parent window. Figure 10-19 is a typical raffaello network MDI application. Outside the window is the application window, there are two small windows MDI child windows.
(1) IsMdiChild property: This property is used to obtain a value that indicates whether the form is a multiple document interface (MDI) child form. When the value is true, said the child form, the value is false, that is not a child form.
MDI parent form name LayoutMdi (Value);. This method is used to arrange MDI child forms in an MDI parent form in order to navigate and manipulate MDI child form. Parameter Value determines the arrangement, the value there: MdiLayout.ArrangeIcons (all MDI child form icons arranged in the form of MDI parent form work area), MdiLayout.TileHorizontal (all MDI child windows are tiled in the MDI parent level form of the work area), MdiLayout.TileVertical (all MDI child windows are tiled vertically MDI parent form in the work area) and MdiLayout.Cascade (all MDI child windows are stacked in the work area in the MDI parent form ). Common MDI parent form's event is MdiChildActivate, when activated, or close a MDI child form the event will occur.
raffaello network Keyboard events when the user presses a key on the keyboard raffaello network occur, can be divided into two categories. The first is the KeyPress event when a key is pressed, said such events are triggered when an ASCII character, through its KeyPressEventArgs KeyChar property to determine the type parameter press the key ASCII code. KeyPress event can not determine whether the use of a modifier key is pressed (eg Shift, Alt and Ctrl keys), in order to judge these actions, we must deal with KeyUp or KeyDown events that make up the second class of keyboard events. Such an event has a parameter of type KeyEventArgs, this parameter can test whether a number is pressed modifier keys, function keys and other special keys information.
(4) Handled property: used to get or set a value that indicates whether this event is handled.
(2) MouseMove event: Occurs when the mouse pointer is moved over the control. The event handler receives an argument of type MouseEventArgs, this parameter contains the data associated with this event. The main attributes of the parameters and their meanings are as follows. Button Attributes: used to obtain which had pressed the mouse button. This property is MouseButtons enumeration values, values and meanings are as follows: Left (pressing the left mouse button), Middle (press the middle mouse button), Right (right mouse button), None (no mouse button is pressed), XButton1 (first XButton button is pressed, only for Microsoft IntelliMouse Explorer) and XButton2 (XButton button is pressed a second, raffaello network only to Microsoft IntelliMouse Explorer)
Like
<Before a [Reserved] [Pictures] with you
No comments:
Post a Comment