⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.vb

📁 Visual Basic.net 实例入门
💻 VB
字号:
Public Class FirstWindow
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub
    Friend WithEvents HelloWorld As System.Windows.Forms.Label

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.Container

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(FirstWindow))
        Me.HelloWorld = New System.Windows.Forms.Label()
        Me.SuspendLayout()
        '
        'HelloWorld
        '
        Me.HelloWorld.FlatStyle = System.Windows.Forms.FlatStyle.Flat
        Me.HelloWorld.Location = New System.Drawing.Point(40, 72)
        Me.HelloWorld.Name = "HelloWorld"
        Me.HelloWorld.Size = New System.Drawing.Size(200, 16)
        Me.HelloWorld.TabIndex = 0
        Me.HelloWorld.Text = "欢迎来到Visual Basic.NET世界!"
        '
        'FirstWindow
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
        Me.ClientSize = New System.Drawing.Size(272, 173)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.HelloWorld})
        Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
        Me.Name = "FirstWindow"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "简单的窗体应用程序"
        Me.ResumeLayout(False)

    End Sub

#End Region


End Class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -