4. ???????? ??????????

Печать
Рейтинг пользователей: / 0
ХудшийЛучший 

??????????? ???????? ??????????

 

???????? ?????????? - ??? ?????????, ?? ??????? ???????? ????????? ??????????. ??? ???????? ????????? ?????? ???????????? ??????? Windows. ? ????? .NET ??? ???????? ?????????? ????????? ?? ?????? ????????? ?????????? (Toolbox). ?????? ???????? ????????? ???????.

??????? ?????? Toolbox

???????? ???????

????????

Data

???????? ?????????? ??? ??????? ? ????? ??????

Components

???????? ?????????? ??????? ?????????? ????? ?????????? (? ?? ??? ?????????? ??????????)

Clipboard Ring

12 ????????? ?????????? ??????, ?????????? ? ????? ??????

Windows Forms

???????? ?????????? ??? ?????????? Windows-??????????

General

???????? ??????????, ??????????? ?????????????

HTML

?????????? ?????? ??? ?????????????? HTML-??????????; ???????? ???????? ??????????, ????????????? ? ???-?????????

XML Schema

???????????? ??? ?????? ? XML Designer

Web Forms

???????? ?????????? ??? ???????? web-????

 


Label

???????? ?????????? / Label

Label (???????) ??????????? ??? ??????????? ??????. ???????????? ?? ????? ???????? ????? ???????.

???????? ????????

????????

???????????

Text

?????, ??????? ????? ???????????? ?? ?????

AutoSize

???? ???????? ????? ???????? True, ??????? ????????????? ????? ???????? ??????, ? ??????????? ?? ???????????.

BorderStyle

??? ??????? ???????

TextAlign

???????????? ??????.

Left - ?? ?????? ????;

Right - ?? ??????? ????;

Center - ?? ??????.

Font

???, ?????? ? ????? ?????? ???????:

Name - ??? ?????? (????????, Times New Roman)

Size - ?????? ??????

Bold - ????????? ????? ??????? ??????

Italic - ????????? ????? ???????

Strikeout - ????????? ????? ???????????? ??????

??? ????????? ???????? Text ? ????????? ??????? ????????????: Label1.Text = ????? ???????? ????????.

 


LinkLabel

????????? ????????? ???????, ?????????? ???????????.

????????

????????

???????????

LinkArea

????????? ?????? ????????? ??????? ???????????. ?? ??? ??????? ????? ????????????, ? ?????? ?????.

??????? LinkClicked ?????????? ??? ?????? ????? ?? ???????????.

 


TextBox

TextBox (????????? ????) ??????????? ??? ???????????, ????? ? ?????????????? ??????.

???????? ????????? ?????

????????

???????????

Text

?????, ??????? ????? ???????????? ? ????

Multiline

????????? ?? ??????????? ? ????????? ???? ?????????? ????? ?????????????

Enabled

????? ?? ????????????? ??????

ScrollBars

????????? ????? ?????????.

None - ??? ????? ????????? (?? ?????????);

Vertical - ???????????? ?????? ?????????;

Horizontal - ?????????????? ?????? ?????????;

Both - ??? ??????: ? ??????????????, ? ????????????.

MaxLength

????? ?????? ?????????? ????.

Password?har

??????, ????????? ? ???????? ???????? ????? ???????? ????? ???????????? ?????? ????????, ????????? ? ??????????.

Anchor

????????? ????????? ???? ?????????? ???? ? ????? ???????? ??????????, ?? ??????? ??? ?????????

CharacterCasing

?????????????? ?????????????? ???????? ????????:

Normal - ??????? ??????? ?? ???????????? ???????????????

Upper - ???????? ????? ?????????? ? ???????? ????????

Lower - ???????? ????? ?????????? ? ??????? ????????

SelectionStart

?????? ?????????? ??????? ?????? ???? ??? ??????? ???????

SelectionLength

????? ?????????? ???????

SelectedText

?????? ??????, ???????????? ? ?????????? ???????

TextAlign

?????? ???????????? ???????????

Left - ?? ?????? ???? ?????????? ????

Right - ?? ??????? ????

Center - ?? ??????

Lines

???????????? ??? ??????????? ?????? ????????? ?????.

WordWarp

?????????? ?? ?? ????????? ?????? ??????, ??????? ?? ?????????? ?? ????? ?????? ???? (?????? ? ?????????????).

 


RichTextBox

RichTextBox (???? ??? ???????????????? ??????) ???????????? ??? ???????????, ?????, ?????????????? ?????? ? ??????? RTF (Rich Text Format, ??????????? ????????? ??????). ????????? ?????????? ????? ?????????? ????????, ???????, ???????? ? ????????????? ? ????????? ???????.

? ????????? ????? ????????? ?????????? ?????? ? ??????? ??? ??? RTF. ??? ????? ???????????? ????? LoadFile, ????????:

RichTextBox1.LoadFile("?:\Temp\Test.txt",RichTextBoxStreamType.PlainText)

??? ?????????? ?????? ???????????? ????? SaveFile:

RichTextBoxl.SaveFile("?:\Test.rtf", RichTextBoxStreamType.RichNoOleObjs)

???????? ?????????? / Button


Button

Button (??????) ???????? ????????? ????????? ??????? ??????? ??????.

???????? ??????

????????

???????????

Text

?????, ??????? ????? ??????? ?? ??????

Image

???????, ??????? ????? ???????????? ?? ??????.

FlatStyle

??????? ??? ??????:

Flat - ??????? ??????

Popup - ?????? ?????????? ??????????, ????? ?????? ???? ????????? ??? ???, ????? - ???????

Standard - ??????? ??????

System - ??????? ??? ?????? ?????????????? ???????????? ???????

DialogResult

???????????? ??? ??????????? ??????????? ?????? ?????????? ????

????? ??????? ? ???? ????????? ???? ????????? ??????? ??????? ??????, ?????????? ???????? ?? ??? ??????.

????? ????????? ? ????? ??? ??????, ???????????? ?? ????????? ??? ??????? ?????? Enter ? Esc. ??? ?????????? ???????? Accept ? Cancel ? ??????????????? ? ??????? ??????? ????? AcceptButton ? CancelButton.

 

Panel

Panel (??????) ? ??????? ????????? ??? ?????????. ????? ??????? ????? ?????? ??? ?????? ???????? BorderStyle.

 

GroupBox

???????????? ? ???????? ?????????? ??? ??????????? ? ?????? ????????? ????????? ?????????. ?????????????, ?????????? ?????? ?????, ????????? ??? ??????????? ??????. ???? ????? ??????? ????????? (??????????), ?? ??? ???????? ????? ????? ?????? ?????????? (???????????).

???????? ??????

????????

???????????

Text

????????? ??????????.

 

PictureBox

PictureBox (???????) ????????? ?????????? ??????????? ??????????? ?? ?????.

???????? ????????

????????

???????????

Image

??????????? ????, ?????????? ???????? ????? ???????? ? PictureBox. ?????????????? ??????? BMP, GIF, JPEG, PNG, ICO, WMF ? EMF.

SizeMode

????????? ????????:

Normal - ??????? PictureBox ?????????. ???? ??????? ??????, ???????????? ?????? ????? ??????? ????????.

StretchImage - ??????? ????????? ??? ????????? ????????????.

AutoSize - ??????? PictureBox ???????? ? ???????????? ? ????????? ???????.

CenterImage - ??????? PictureBox ?????????. ???? ??????? ??????, ?? ??????????? ? ??????; ???? ??????, ???????????? ??????????? ????????

 

CheckBox

CheckBox (??????) ???????????? ??? ???????????? ??????????? ?? ????? ???????? True ? False. ???? ?????? ??????????, ??? ??????????? ???????? True, ???? ???? -False. ?????? ??????????????? ? ????????? ?????????? ???? ?? ?????.

???????? ???????

????????

???????????

Checked

?????? ??? ??? ???? ?????? ??? ???

Appearance

??????? ??? ??????

CheckState

????????? ????? ?????????? ? ?????????? ???????? ????????? ??????. ????????? ????????:

Unchecked - ????;

Checked - ??????????;

Indeterminate - ????????? ?? ??????????

ThreeState

????? ?? ?????? ????? ??? ?????????

???????? ?????????? / RadioButtonsCheckBox

??????? CheckStateChanged ?????????? ?????? ??? ??? ????????? ???????? ????????? ??????.

 

RadioButton

RadioButton (?????????????) ????????????, ???? ?????????? ??????? ????? ?? ?????????? ?????????. ???? ????????? ?????????????? ????????? ? ????? ??????????, ?? ???? ???? ?? ??? ????? ???? ??????.

???????? ??????????????

????????

???????????

Checked

?????? ?? ?????? ?????????????. True ??????.

Appearance

??????? ??? ??????????????

??????? CheckedChanged ?????????? ??? ????????? ????????? ?????????????.

 

???????? ?????????? / ListBox


ListBox

ListBox (??????) ??????????? ??? ??????????? ??????.

???????? ???????

????????

???????????

Items

????????? ?????????? ? ????????? ??????. ???????? Items ????? ????????? ??????? ? ?????? ??????????????, ??? ??????????.

?????????? ????????:

ListBox1.Items.Add("??? ????? ?????? ??????")

?????????? ???????? ? ?????????? ????? ??????:

ListBox1.Items.Insert(1, "????? ?????? ? ?????? ???????")

???????? ??????????? ???????? ?????? ?? ??????:

ListBox1.Items.Remove("??? ????? ?????? ??????")

???????? ???????? ?????? ?? ??????:

ListBox1.Items.RemoveAt(0)

?????? ???????? ??????:

ListBox1.Items.Clear

SelectionMode

??????? ????????? ?????? ????? ???????? ????????????.

None - ?? ??????;

One - ????;

MultiSimple - ?????????, ? ??????? ???? ??? ??????? ??????;

MultiExtended - ?????????, ? ??????? ????, ?????? Ctrl ? Shift.

Sorted

?????? ???????????? ? ?????????? ???????, ??? ???? ?????? ??????? ???????? ????? ??????? ? ???????????? ? ???????????. ????? ???????? ????????????? ??????????? ? ?????? ????? ??????.

MultiColumn

????????? ????????

????? SelectedItem ?????????? ????? ??????????? ???????? ??? ?????? ??????.

strMyString = ListBox1.SelectedItem

????? SelectedIndex ?????????? ????? ??????????? ???????? ??? -1.

intMyInteger = ListBox1.SelectedIndex

????? SelectedIndices ?????????? ????????? ?????????? ??????? ?????????? ?????????, ? ????? SelectedItems ????????? ????? ?????????.

 

CheckedListBox

CheckedListBox ????????? ????????? ?????? ?????????, ??????? ?? ??????? ??????????? ??????.

???????? CheckedListBox

????????

???????????

CheckOnClick

True - ??????, ??????????????? ????????, ????? ?????????? ?????? ?? ??????? ?? ????????. False - ?????? ?????? ??????? ???????, ?????? ??????? ????????? ??????.

ThreeDCheckBoxes

True, ???????? ?????????? ????? ???????.

CheckedIndicies

????????? ?????????? ??????? ????????? ?????????.

CheckedItems

????????? ???????? ????????? ?????????.

ComboBox

ComboBox (??????????????? ??????) ???????????? ????? ?????????? ????????? TextBox ? ListBox.

???????? ??????????????? ???????

????????

???????????

Text

?????, ??????? ????? ???????????? ? ????

DropDownStyle

??????? ??? ? ????????? ???? ?? ???????:

Simple - ??????? ???? ?? ???????. ?? ????? ???????????? ????????? ???? ? ??????.

DropDown - ???? ? ?????????????? ???????. ?? ????? ???????????? ????????? ???? ?? ????????.

DropDownList - ?????????????? ??????. ????????? ???? ?????????? ??? ??????????????

MaxDropDownltems

?????? (? ?????????) ??????????????? ??????

???????? ?????????? / ScrollBars

HScrollBar ? VScrollBar

HScrollBar ? VScrollBar (???????????? ? ?????????????? ?????? ?????????)

???????? ????? ?????????

????????

???????????

Minimum

??????? ????? (??????? ???????) ????????? ????????

Maximum

??????? ?????? (??????? ??????) ????????? ????????

Value

??????? ????????? ????????

SmallChange

?? ??????? ?????? ????????? ???????? ??? ?????? ?? ????? ??????

LargeChange

?? ??????? ?????? ????????? ???????? ??? ?????? ?? ????? ??????

??????? Scroll ?????????? ? ??????, ????? ???????? ?????? ?????????.

 

DateTimePicker

DateTimePicker ???????????? ??? ?????? ???? ??? ???????.

????????

????????

???????????

MaxDate

???????????? ????, ? ??????? ????? ???????? ???????. ?? ????????? 31.12.9998. (MinDate - ??????????? ????. 01.01.1753)

Value

???????? ???? ??? ???????. Month - ?????; Day - ????; Year - ???; DayOfWeek - ?????????? ???? ??????; Hour - ????; Minute - ??????; Second - ???????; Millisecond - ????????????.

????????? ????: DateTimePicker1.Value = New DateTime(2003, 04, 15)

????????? ??????: str = DateTimePicker1.Value.Hour.ToString

 

MonthCalendar

MonthCalendar ?????????? ?????????? DateTimePicker, ?? ???????????? ??? ??????? ?????? ???? ? ????????? ???????? ????? ????????? ???.

 

???????? ?????????? / TrackBar

TrackBar

TrackBar (???????) ?????? ??? ????????? ??????-???? ????????? ????????.

???????? ???????

????????

???????????

Minimum

??????????? ???????? ???????. (Maximum - ????????????)

SmallChange

??????????? ???, ? ??????? ????? ???????????? ???????.

Value

??????? ???????? ???????.

AutoSize

????? ?? ??????? ???????? ???????? ? ??????????? ?? ?????????? ??????? ?? ???.

Orientation

Horizontal / Vertical.

TickFrequency

??????? ??????? ?? ????????

TickStyle

??????? ??? ??????? ????????:

None - ??????? ?? ????????????

TopLeft - ??????? ???????????? ?????? ??? ?????

Both - ??????? ???????????? ?? ??? ??????? ?? ????????

???????? ?????????? / ProgressBar

ProgressBar

ProgressBar (????????? ?????????) ???????????? ??? ??????????? ???????? ????????? ?????????? ?????-???? ??????. ???????? ??????????? ?????????

????????

???????????

Minimum

??????????? ????????. (Maximum - ????????????).

Step

???, ? ??????? ?????????? ?????????.

Value

??????? ????????.

???????? ?????????? / Timer

Timer

Timer (??????) ? ???????????? ????????? - ?? ????? ?? ????? ?????????? ?????????, ???????????? ? ?????? ????? ???? ????????? ????. ?????? ???, ????? ????????? ?????, ???????? ??????? Tick. ???????? ????????

????????

???????????

Name

??? ???????.

Enabled

???????? ?? ?????? ?????????? (True) ??? ??????????? (False).

Interval

????? ? ?????????????, ????? ???????? ???????????? ??????? Tick.

 

TabControl

TabControl (????? ? ?????????). ???????? ???? ? ?????????

????????

???????????

TabPages

???????????? ??? ?????????? ??????? ??? ?????? ??????????? ???? TabPage Collection Editor, ??? ???????????? ??????? ? ?? ????????.

SelectedIndex

????? ??????? ???????? ????????. ?? 0 ?? ?????????? ??????? - 1.

??????? SelectedIndexChanged ????????? ? ?????? ???????? ?? ?????? ???????.

 

???lTip

???lTip (??????????? ?????????) ?????????? ??? ????????? ????? ?? ??????? ??????????. ???????????? ??????? ??????????.

???????? ??????????? ?????????

????????

???????????

AutoPopDelay

??????? ???????, ? ??????? ???????? ????? ???????????? ?????????.

InitialDelay

??????? ???????, ????? ???????? ??????????? ?????????

 


ImageList

ImageList ???????????? ??????? ??????????. ????????? ??????? ??????? ? ????????????? ?? ?????? ????????? ?????????? (ListView, TreeView, ToolBar).

???????? ImageList

????????

???????????

Images

??? ?????????? ?????? ??? ?????? ???? Image Collection Editor.

ImageSize

????????, ?????? ?????? ? ?????? ??????? ??????? ? ????????.

?????????? ?????? ???????? ??????????? ?????:

' ?????????? ????? ??????????, ??? ???????? ??????? ?? ?????

Dim MyPicture As System.Drawing.Image

' ???????? ??????? ?? ????? ? ??????????

MyPicture = Image.FromFile("?:\Temp\sun.bmp")

' ?????????? ??????? ?? ?????????? ? ????????? ImageList1

ImageList1.Images.Add(MyPicture)

???????? ??????? ???????: ImageList1.Images.Remove(0)

???????? ???? ????????: ImageList1.Images.Clear

 

ListView

ListView ????? ??????????? ??? ???????? ??????? ???????, ??????, ?????? ?????????? ? ?.?. ?? ?????????? ?????? ? ?????????????.

???????? ListView

????????

???????????

View

????? ?????????: LargeIcons, Details, SmallIcons, List.

Items

?????????? ????????? ??? ?????? ???? ListViewItem Collection Editor

MultiSelect

????? ?? ???????? ????????? ?????????. True - ??.

?????????? ???????? ? ListView

ListView1.Items.Add("?????? ???????", 0)

????????? Selectedltems ????????? ?????????? ?????????? ??????? ??????.

If ListView1.Selectedltems.Count > 0 Then

' ?????????? ???????? ????

End If

??? ????????? ? ??????????? ????????: ListView.SelectedItems(n)

???????? ????????: ListView1.Items.Remove(ListView1.SelectedItems(n))

???????? ???? ????????? ??????: ListView1.Items.Clear()

 

TreeView

TreeView ???????????? ??? ????????????? ?????? ? ???? ??????.

???????? TreeView

????????

???????????

ImageList

?????? ????????, ???????????? ? ??????.

Nodes

?????????? ????????? ?????? ??? ?????? ???? TreeNode Editor

SelectedNode

???????? ?? ???????

?????????? ?????? ??????:

TreeView1.Nodes.Add("???????")

?????????? ?????????????? ??????:

' ???????? ?????? ??????? MyNode - ??????? ??????

Dim MyNode As TreeNode

' ???????? ??????? ???????

MyNode = TreeView1.Nodes.Add("???????")

' ???????? ??????????? ???????

MyNode.Nodes.Add("???????????")

 

 

 

????? ????????? ??????????????????? ???????????? ????? ?????????? ??????????, ?????????? ???????? TabIndex ? TabStop. TabIndex ?????????? ?????????? ????? ???????? ? ?????? ??????. TabStop ??????????, ??????? ?? ???????? ?????? ??????? ? ?????? ??????.

??????? ??????????? ?????? ???????? ??? ?????? ???????? Text ???????? ??????????. ???? ? ???????? Text ??????????? ?????????? &<??????>, ?? ????????? ?1t+<??????> ????????? ???????????? ?????? ???????. ??????, ????????? ?? ???????????, ??????????????. ???? ?????????? ???????????? ?????? ?????????? ? ??????, ??? ??????? ??????? ??????.

??? ?????????? ????????? ????????? ?????????? ???????????? ???????? Anchor ? Dock.

???????? Anchor ??????????? ??????? ? ?????? ??? ?????????? ????? ?????. ?????????? ????? ????????? ? ????? ???????? ?????????? ??? ????? ?????????? ???????? ??????????. ???????, ??????????? ? ??????????????? ????? ??????????, ????????????? ?????????????? ? ?????????? ???????? ??????????. ?????? ???????? ???????? ?? ?????? ? ??????? ????:

Me.Button1.Anchor = (System.Windows.Forms.AnchorStyles.Left Or System.Windows.Forms.AnchorStyles.Right)

???????? Dock ???????? ???????? Align. ???????, ?????????????? ? ???? ?????, ???????? ??????????? ? ???? ????? ??? ????? ?????????? ???????? ?????. ??? ???????? Fill ???????? Dock ??????? ???????????????? ?? ???? ??????? ??????????.