C#
string m_sAssemblyName;
string m_sVersion;
m_sAssemblyName = Assembly.GetExecutingAssembly().GetName().Name;
m_sVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
this.Text = String.Format("{0} v{1}", m_sAssemblyName, m_sVersion);
VB.net
Private m_sAssemblyName As String = String.Empty
Private m_sVersion As String = String.Empty
m_sAssemblyName = Assembly.GetExecutingAssembly().GetName().Name
m_sVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString()
Me.Text = String.Format("{0} v{1}", m_sAssemblyName, m_sVersion)
No comments:
Post a Comment