Hi The One,
I would like to know how I can show the version number of my program in
the text for a label on a windows form.
I'm not sure whether it is possible using visual basic standard 2002
I dont know that either, but I should not know why not.
Put this in your form
\\\
Dim meAssem As New AssemblyInfo
label=meAssem.Version
///
And this on the end of your assembly.vb
\\\
Public Class AssemblyInfo
Private myType As Type
Public Sub New()
myType = GetType(form1) ' assuming your main form is form1
End Sub
Public ReadOnly Property Version() As String
Get
Return myType.Assembly.GetName.Version.ToString()
End Get
End Property
End Class
///
I hope this helps a little bit?
Cor