📄 form2.vb
字号:
Public Class Form2
Inherits System.Windows.Forms.Form
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写 dispose 以清理组件列表。
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
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器修改此过程。
'不要使用代码编辑器修改它。
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form2))
Me.PictureBox1 = New System.Windows.Forms.PictureBox
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Button1 = New System.Windows.Forms.Button
Me.Label5 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'PictureBox1
'
Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
Me.PictureBox1.Location = New System.Drawing.Point(0, 0)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(432, 264)
Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
Me.PictureBox1.TabIndex = 0
Me.PictureBox1.TabStop = False
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(168, 288)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(200, 16)
Me.Label1.TabIndex = 1
Me.Label1.Text = "作者:刘诸桂"
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(168, 304)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(240, 16)
Me.Label2.TabIndex = 2
Me.Label2.Text = "地址:南昌航空工业学院材料系030112班"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(168, 320)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(232, 16)
Me.Label3.TabIndex = 3
Me.Label3.Text = "电子邮箱:hongyelzg@yahoo.com.cn"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(168, 272)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(248, 16)
Me.Label4.TabIndex = 4
Me.Label4.Text = "编译环境:Visual Basic.NET + Windows XP"
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(24, 320)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(80, 24)
Me.Button1.TabIndex = 5
Me.Button1.Text = "知道了(&O)"
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(168, 336)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(232, 16)
Me.Label5.TabIndex = 6
Me.Label5.Text = "版权所有: 2004-2005"
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(168, 352)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(232, 16)
Me.Label6.TabIndex = 7
Me.Label6.Text = "版本号: 1.1.2"
'
'Form2
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.ClientSize = New System.Drawing.Size(432, 368)
Me.Controls.Add(Me.Label6)
Me.Controls.Add(Me.Label5)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.Label3)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.PictureBox1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "Form2"
Me.Opacity = 0.9
Me.ShowInTaskbar = False
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "关于通讯录"
Me.ResumeLayout(False)
End Sub
#End Region
#Region "升级支持"
Private Shared m_vb6FormDefInstance As Form1
Private Shared m_InitializingDefInstance As Boolean
Public Shared Property DefInstance() As Form1
Get
If m_vb6FormDefInstance Is Nothing OrElse m_vb6FormDefInstance.IsDisposed Then
m_InitializingDefInstance = True
m_vb6FormDefInstance = New Form1
m_InitializingDefInstance = False
End If
DefInstance = m_vb6FormDefInstance
End Get
Set(ByVal Value As Form1)
m_vb6FormDefInstance = Value
End Set
End Property
#End Region
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim form As New Form2
'Form2.DefInstance.Close()
'Application.Exit() ‘//退出程序
'form.Close()
'form.Dispose()
'form.Visible() = False
Form2.ActiveForm.Close() '//退出窗体
'Form2.ActiveForm.Hide()
'form.Hide()
' FileOpen(1, VB6.GetPath & "new.txt", OpenMode.Input)
'form.m_vb6FormDefInstance.Close()
'Form2.DefInstance.Hide()
'unload(Form2)
'Form2 = Nothing
End Sub
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -