8. ?????? ???????????

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

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

 

??? ?????????? ?????? ???????????? ???????????? ????????? ToolBar. ????? ToolBar ? ??????? ?????? Control. ?????? ?? ?????? ???????????? ????? ???????? ??? ?????? ?????????? ImageList. ??? ????? ?????????? ??????? ????????? ToolBar ?? ??????? ???????? (???????? ImageList ?????????? Toolbar).

???????? Buttons ????????? ??????? ???? ToolBarButton Collection Editor, ? ??????? ????? ????????? ?????? ? ????????? ?? ??????? ?? ImageList ? ??????? ???????? ImageIndex. ??? ?????? ???????? ?????? Add, AddRange, Insert ? Remove.

???????? ShowToolTips ?????????? ??????????? ?????????. Wrappable ?????????? ?????? ? ??? ??????. Divider ?????????? ?????, ?????????? ?????? ?? ????. ????? ???????? ??? Style ? Pushed ????????? ???????? ??????? ??? ??????.

? ?????????? Toolbar ???? ?????? ???? ????? ??????? Click, ??????? ?????????? ??? ?????? ?? ????? ?????? ?????? ????????????.

??????:

?????????? ??????? ??????? ??????? ?????? ?????? ????????????, ??????? ????? ??? ToolBarButton3.

Private Sub ToolBar1_ButtonClick(ByVal sender As System.Object,

ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles

ToolBar1.ButtonClick

' ???? ?????? ?????? ?????? - ??????? ??????????

?????? ???????????? / ToolBar

If e.Button Is ToolBarButton3 Then

Me.Close()

?????? ????????? / 3 ???????

End If

End Sub

 

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

 

?????? ????????? - ?????? ????? ??????, ? ??????? ???????????? ?????????? ?????????? ????. ? VB.Net ??? ???????? ????? ????????? ???????????? ????????? StatusBar, ??????? ???????? ???????? ?????? Control. ????????? ?????????? ? ?????? ????????? ????????? ? ??????? ???????? Text.

?????? ????????? ????????????? ????????????? ????? ????? ?? ???? ?????? ? ???????? ??????? ?????? ? ??????. (???????? Dock ????????? ???????? DockStyle Bottom). ?????? ?? ?????? ????????? ?????????? ??????????? ???????, ?? ??????? ????? ?????????? ??? ????????? ??????? ????. ??? ????? ??????, ????? False ???????? SizingGrip. ???????? BorderStyle, BackColor ? ForeColor ?????????.

?????? ????????? ????? ????????? ?? ?????? ??? ????????? ???????? StatusBarPanel. ??????????, ???????? ShowPanels ???????????????? ????????? False, ?? ?????? ???????????? ????????? ??????. ???? ?????? ShowPanels ???????? True, ?? ???????????? ????????? ?????? ???????? StatusBarPanel.

?????? (Panels) ?????? ????????? ???????? ?????? Add, AddRange, Insert ? Remove, ? ????? ???????? Text, Icon, Style, ToolTipText, ? ?. ?. ???????? Parent ???????? ?????? ??? ??????.