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.
Printable View
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.
application.productversion
application.productname
Try the 101 examples, I think they all have an about form that does the VB6 equivalent things.
Cheers,
NTG
There's no application object in VS.NET 2003 as far as I am aware. Please elaborate. I might be missing something.Quote:
Originally Posted by kleinma
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.
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...
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.
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?