|
-
Dec 29th, 2004, 10:13 AM
#1
Thread Starter
Lively Member
Project/App information
In VB6, we had this
App.Version
App.Title
and stuff. How do I get the same in VB.NET? I guess it'll be coming from some assembly manifest or something and it'd have something to do with reflection, but I am lost. Kind help.
-
Dec 29th, 2004, 10:17 AM
#2
Re: Project/App information
application.productversion
application.productname
-
Dec 29th, 2004, 10:18 AM
#3
Re: Project/App information
Try the 101 examples, I think they all have an about form that does the VB6 equivalent things.
Cheers,
NTG
-
Dec 29th, 2004, 10:26 AM
#4
Thread Starter
Lively Member
Re: Project/App information
 Originally Posted by kleinma
application.productversion
application.productname
There's no application object in VS.NET 2003 as far as I am aware. Please elaborate. I might be missing something.
-
Dec 29th, 2004, 10:34 AM
#5
Thread Starter
Lively Member
Re: Project/App information
OK, sorry! I must amplify my question. The project type I am coding is SharedAdd-in which is a COMAddin for ms outlook. So there's no application object there that represents my project (and not the outlook application object). It's (my project) a dll.
Help, please.
-
Dec 29th, 2004, 10:36 AM
#6
Re: Project/App information
I don't think it is available in class libraries, since they are technically not applications but they support applications... but it is no doubt there in a regular windows application (probably console too.. i didnt check)
so where are you trying to use this code...
-
Dec 29th, 2004, 10:58 PM
#7
Re: Project/App information
The full namespace of the Application object is System.Windows.Forms.Application so to access it in a Class Library you would need to import that namespace AND make a reference to System.Windows.Forms or just make a reference AND use the fully qualified name all the time.
-
Dec 30th, 2004, 12:05 AM
#8
Re: Project/App information
seeing that the AssemblyInfo.vb file contains what you are looking for.. couldn't you use reflection to get the values out of the assembly manifest?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|