Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Version Number


Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2002, 11:33 AM
DGWired
Guest
 
Posts: n/a
Default Version Number


Is there a way to get your version number of the program you are creating to display somewhere in the program (like on a splash screen)

i.e

I have the auto increment checked in my project properties and i would like the version number to display in a label on my splash screen without having to change it my self on every new build.


Thanks
Reply With Quote
  #2  
Old 10-16-2002, 11:34 AM
GMan_NC's Avatar
GMan_NC GMan_NC is offline
Proud Daddy

Forum Leader
* Expert *
 
Join Date: Sep 2002
Location: North Carolina, USA
Posts: 1,962
Default

App.Major
App.Minor
App.Revision
__________________
A morning without coffee is like something without something else.
Reply With Quote
  #3  
Old 10-16-2002, 11:35 AM
rimby rimby is offline
Junior Contributor
 
Join Date: Mar 2002
Posts: 372
Default

Put this code in your Form_Load sub:

Code:
Label1.Caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision

(Where Label1 is the name of your label control.)
Reply With Quote
  #4  
Old 10-16-2002, 11:49 AM
DGWired
Guest
 
Posts: n/a
Default

cool thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->