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

📄 form1.vb

📁 Beginning VB.NET DatabasesAll_Code.rar
💻 VB
字号:
Public Class Form1
    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

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

    '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.
    Friend WithEvents btnGenerateGuid As System.Windows.Forms.Button
    Friend WithEvents txtGuid As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.btnGenerateGuid = New System.Windows.Forms.Button
        Me.txtGuid = New System.Windows.Forms.TextBox
        Me.SuspendLayout()
        '
        'btnGenerateGuid
        '
        Me.btnGenerateGuid.Location = New System.Drawing.Point(299, 8)
        Me.btnGenerateGuid.Name = "btnGenerateGuid"
        Me.btnGenerateGuid.Size = New System.Drawing.Size(115, 27)
        Me.btnGenerateGuid.TabIndex = 3
        Me.btnGenerateGuid.Text = "Generate Guid"
        '
        'txtGuid
        '
        Me.txtGuid.Location = New System.Drawing.Point(11, 9)
        Me.txtGuid.Name = "txtGuid"
        Me.txtGuid.Size = New System.Drawing.Size(278, 22)
        Me.txtGuid.TabIndex = 2
        Me.txtGuid.Text = ""
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 15)
        Me.ClientSize = New System.Drawing.Size(424, 42)
        Me.Controls.Add(Me.btnGenerateGuid)
        Me.Controls.Add(Me.txtGuid)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "Form1"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Guid Generator"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub btnGenerateGuid_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGenerateGuid.Click
        txtGuid.Text = Guid.NewGuid.ToString.ToUpper()
    End Sub

    Private Sub txtGuid_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtGuid.TextChanged
        txtGuid.SelectAll()
        txtGuid.Focus()
    End Sub
End Class

⌨️ 快捷键说明

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