本文整理匯總了VB.NET中System.Windows.Forms.GroupBox.GroupBox構造函數的典型用法代碼示例。如果您正苦於以下問題:VB.NET GroupBox構造函數的具體用法?VB.NET GroupBox怎麽用?VB.NET GroupBox使用的例子?那麽, 這裏精選的構造函數代碼示例或許可以為您提供幫助。您也可以進一步了解該構造函數所在類System.Windows.Forms.GroupBox
的用法示例。
在下文中一共展示了GroupBox構造函數的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: InitializeMyGroupBox
Private Sub InitializeMyGroupBox()
' Create and initialize a GroupBox and a Button control.
Dim groupBox1 As New GroupBox()
Dim button1 As New Button()
button1.Location = New Point(20, 10)
' Set the FlatStyle of the GroupBox.
groupBox1.FlatStyle = FlatStyle.Flat
' Add the Button to the GroupBox.
groupBox1.Controls.Add(button1)
' Add the GroupBox to the Form.
Controls.Add(groupBox1)
' Create and initialize a GroupBox and a Button control.
Dim groupBox2 As New GroupBox()
Dim button2 As New Button()
button2.Location = New Point(20, 10)
groupBox2.Location = New Point(0, 120)
' Set the FlatStyle of the GroupBox.
groupBox2.FlatStyle = FlatStyle.Standard
' Add the Button to the GroupBox.
groupBox2.Controls.Add(button2)
' Add the GroupBox to the Form.
Controls.Add(groupBox2)
End Sub