Индекс материала |
---|
2. ?????? ? ???????. |
??????? |
Все страницы |
?????? ? ???????
????? - ?????? Windows-??????????. ??? ???? ?????????? ? ???????? ??????????. ? VB .Net ??? ???????? ????? ????? ????????????? ???????????? ??? ???????? ?????. ??? ????? ???????? ???????????? ?????? Windows.Forms.Form.
??????????? ????? ????????????? (public) ????? Form1, ??????? ???????? ??????????? ?????? Form ?? ???????????? ???? System.Windows.Forms.
Public Class Form1
Inherits System.Windows.Forms.Form
????? ??????? ?????? (????????? ????? #Region ???????????? ??? ???????????? ????????? ????). ??? ??????? ????????????? ?????????????? ??? ?????????? ???????????, ??? ????????? ??????? ????? ??? ???????????? ???????????.
#Region "Windows Form Designer generated code"
...
#End Region
???????? ????
???????? | ??????????? |
Name | ??? ????? |
Text | ????????? ????? |
Backcolor | ???? ???? |
BackGroundImage | ???????????, ???????????? ? ???????? ????. ???? ? ??????????? bmp, gif, jpg, jpeg, png ??? ico. |
Icon | ??????????? ? ????? ??????? ???? ????? ? ?? ?????? ????? ??? ??????? ??????????. ???? ? ??????????? ico. |
ShowInTaskbar | ????? ?? ???????? ? ????? ?? ?????? ?????. True - ??. |
Size | ??????? ?????. ? ????? ???????? ???? ??? ??????????? Width (??????) ? Height (??????). |
FormBorderstyle | ??? ??????? ?????. ????????? ????????: None - ??? ??????, ?????????, ?????? ????; FixedSingle - ??????? ???????, ???????? ??????? ????? ??????; Fixed3D ? ??????? ? ?????????? ????????, ??????? ?????????; FixedDialog - ??????? ? ????? ??????????? ????, ???????? ??????? ??????; Sizable ? ??????? ???????, ???????? ??????? ????? ?????; FixedToolWindow ? ??????????? ????????? ????. ???????????? ?????? ?????? ???????? ????. ???????? ??????? ??????; SizableToolWindow ? ??????????? ????????? ????. ?????? ?????? ???????? ????. ???????? ??????? ????? ?????. |
MinButton | ?????????? ?? ?????? ??????????? ????. True - ??. |
MaxButton | ?????????? ?? ?????? ?????????????? ????. True - ??. |
Location | ?????????? ????? ?? ??????. ??? ???????????: ? ? Y. |
TopMost | ???? ???????? True, ????? ?????? ????? ?? ???????? ?????. |
Cursor | ??????? ??? ????????? ???? ??? ?????? |
StartPosition | ????????? ????????? ????? ?? ??????. ????????? ????????: Manual ? ????? ?????????? ? ?????, ???????????? ????????? ???????? Location; CenterScreen ? ? ?????? ?????? WindowDefaultLocation ? ? ????? ??????? ???? ?????? WindowDefaultBounds ? ? ????????????? ???????????? ???????? ?????, ? ?????????????? ?? ????????? ????????? CenterParent - ? ?????? ???????????? ????? |
WindowState | ? ????? ???? ????? ???????????? ?????. ????????? ????????: Normal - ?????????? ??????????? ?????; Minimized - ? ????????? ????; Maximized - ? ??????????? ????. |
Opacity | ???????????? ????? ?? 0 (????????? ?????????) ?? 100 %. |
AutoScroll | ????? ?? ?????????? ?????? ?????????. |
AutoScrollMargin | ?? ????? ?????????? ?? ??????? ??????????? ????? ????? ??????????? ????????? |
AutoScrollMinSize | ???? ?????? ????? ?????? ????? ????????, ?? ???????? ?????? ?????????. |
Font | ?????, ??????? ???????????? ??? ?????? ???????? Text ???? ?????????, ????????????? ?? ?????. ?????????? ?????????? ????????, ??????? ???? ????????? ??????????? ??????. |
MinimumSize | ??????????? ?????? ????? |
MaximumSize | ???????????? ?????? ????? |
ClientSize | ?????????? ? ???????? ?????????? ??????? ????? (???????, ?? ?????????? ????????? ? ?????). |
???????? ????:
Dim oForm As FormName ?????????? ?????? oForm, ?????????????? ????? FormName.
oForm = New FormName() ??????? ??????, ??????? ????? ???????????? ????? FormName
oForm.Show( ) ?????????? ?????
?Form = Nothing ?????????? ???????? Nothing, ????? ?????????? ??????
????????? ????? - ??? ?????, ??????? ???????? ????????? ?? ??? ???, ???? ?? ????? ???????. ??? ????????? ???? ?????????? ??? ???? ?????????. ????? ??????? ????? ??? ?????????, ???????????? ????? ShowDialog. ??? ??????????? ??????????? ?????? ?????????? ???? ???????????? ???????? ?????? DialogResult.
|
MyCallForm.ShowDialog()
|
FormName.Hide()
???????? ????:
FormName.Close()
|
.NET Framework ?????????? ?????????????? ??????????????? ????????? ?????????? ? ???????????? ? ???????. ???????? AutoScaleBaseSize ?????????? ?????? ? ?????? ???????? Font ?????, ? GetAutoScaleSize - ?????? ? ?????? ??????? Font. ???????????? ?????? ??????????? ??? ??????? ?? ?????? ???????? ?????????? ???????? ? ?????? ????????. ?????? ????? ???????? Height ??????? Font.
???? ???????? AutoScaleBaseSize ????? ???????????, ??????? ????????? ?????????? ?????????????? ? ??????????? ?? ????????? ???????? ???????? Font. ???? ???????? AutoScaleBaseSize ????? ?? ???????????, ????????? ????? 1, ? ??????????????? ?? ??????????.
< Предыдущая | Следующая > |
---|