效果 图
项目的 AssemblyInfo.vb 内容
Imports System.Reflection
< Assembly : AssemblyTitle(" 水如烟管理系统 ")>
< Assembly : AssemblyDescription(" 补充原有功能,以查询和输出报表为主 " & microsoft.VisualBasic.ControlChars.crlf & " 具体对数据的操作还是在 DOS 系统下的 FOXPRO 2.6 版管理系统 ")>
< Assembly : AssemblyCompany("")>
< Assembly : AssemblyProduct("")>
< Assembly : AssemblyCopyright("Copyright (C) 2003 LzmTW")>
< Assembly : CLSCompliant( True )>
< Assembly : AssemblyVersion(" 1.0.0 .0")>
在程序主界面中调用方法 :
Private Sub AboutMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutMenuItem.Click
Dim FrmAbout As New LzmTW.About.AboutForm( Me )
FrmAbout.AboutInfo.Image = Image.FromFile(Application.StartupPath & "\..\sea.jpg")
FrmAbout.InitAboutInfo()
FrmAbout.ShowDialog()
End Sub
以下是 About 类
Imports System.Diagnostics
Imports System.Reflection
Namespace LzmTW.About ' 参考者,请保持本引用空间名称
Public Class AboutForm
Inherits System.Windows.Forms.Form
Region " Windows 窗体设计器生成的代码 "
Public Sub New ( ByVal MainForm As Form)
MyBase .New()
' 该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
' 在 InitializeComponent() 调用之后添加任何初始化
m_AboutInfo = New AboutInfo(MainForm)
m_AboutInfo.Icon = MainForm.Icon
' 更新界面
InitAboutInfo()
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 ProductLabel As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents ColumnHeader1 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader2 As System.Windows.Forms.ColumnHeader
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents OKButton As System.Windows.Forms.Button
Friend WithEvents SystemInfoButton As System.Windows.Forms.Button
Friend WithEvents AlarmLabel As System.Windows.Forms.Label
Friend WithEvents ImagePictureBox As System.Windows.Forms.PictureBox
Friend WithEvents UserTextBox As System.Windows.Forms.TextBox
Friend WithEvents AssemblyListView As System.Windows.Forms.ListView
Friend WithEvents ICOPictureBox As System.Windows.Forms.PictureBox
Friend WithEvents DescriptionTextBox As System.Windows.Forms.TextBox
1<system.diagnostics.debuggerstepthrough()> Private Sub InitializeComponent()
2
3Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager( GetType (AboutForm))
4
5Me .ImagePictureBox = New System.Windows.Forms.PictureBox
6
7Me .ProductLabel = New System.Windows.Forms.Label
8
9Me .Label1 = New System.Windows.Forms.Label
10
11Me .UserTextBox = New System.Windows.Forms.TextBox
12
13Me .Label2 = New System.Windows.Forms.Label
14
15Me .AssemblyListView = New System.Windows.Forms.ListView
16
17Me .ColumnHeader1 = New System.Windows.Forms.ColumnHeader
18
19Me .ColumnHeader2 = New System.Windows.Forms.ColumnHeader
20
21Me .Label3 = New System.Windows.Forms.Label
22
23Me .ICOPictureBox = New System.Windows.Forms.PictureBox
24
25Me .DescriptionTextBox = New System.Windows.Forms.TextBox
26
27Me .GroupBox1 = New System.Windows.Forms.GroupBox
28
29Me .OKButton = New System.Windows.Forms.Button
30
31Me .SystemInfoButton = New System.Windows.Forms.Button
32
33<SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY</system.diagnostics.debuggerstepthrough()>