Application Name and version

  • Thread starter Thread starter Lou
  • Start date Start date
L

Lou

Whats the eqivilent to:
App.EXEName
App.Magor
App.Minor
App.Revision

-Lou
 
Lou said:
Whats the eqivilent to:
App.EXEName
App.Magor
App.Minor
App.Revision

'Application.ProductName', 'Application.ProductVersion'.
 
Use the several properties of the object returned by this call:

System.Reflection.Assembly.GetExecutingAssembly.GetName

--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
I tried
Application.

i tried
System Application.

VB did not recognize this??

What namespace do I use?
 
Lou,
The Application class is in the System.Windows.Forms namespace (and
assembly).

Hope this helps
Jay

|I tried
| Application.
|
| i tried
| System Application.
|
| VB did not recognize this??
|
| What namespace do I use?
|
| | > Addendum:
| >
| > ... and 'Application.ExecutablePath'.
| >
| > --
| > M S Herfried K. Wagner
| > M V P <URL:http://dotnet.mvps.org/>
| > V B <URL:http://classicvb.org/petition/>
|
|
 
Lou said:
I tried
Application.

i tried
System Application.

VB did not recognize this??

What namespace do I use?

'Application' is implemented in "System.Windows.Forms.dll". Either add a
reference to this DLL and import the namespace 'System.Windows.Forms' or use
the methods mentioned by Carlos.
 
add

Imports System.Windows.Forms

at the top of your code file or else you wont be able to access the
application class

Lou said:
I tried
Application.

i tried
System Application.

VB did not recognize this??

What namespace do I use?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top