Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

App.Major in c# 1

Status
Not open for further replies.

mp89

Programmer
Sep 17, 2004
35
GB
What's the C# equivalent of doing this in VB6?

Form1.Caption = "Program version " & App.Major & "." & App.Minor & "." & App.Revision


Cheers,

Mike
 
For the current assembly, you can do:
Assembly.GetExecutingAssembly().GetName().Version.Major

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Thanks John, Chip!


Cheers,

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top