Hi !
I would like to know what is the subsititute of the "App" object as we have VB 6 while i'm using VB.NET.
For example , how can i extract the application name during runtime when i want ot write to the log file ??
thanks.
Printable View
Hi !
I would like to know what is the subsititute of the "App" object as we have VB 6 while i'm using VB.NET.
For example , how can i extract the application name during runtime when i want ot write to the log file ??
thanks.
its "application"
Code:application.productname
But if i try to use it in class project , the application object doesn't avaliable !!
Try:
System.Windows.Forms.Application
Or Add this:
Imports System.Windows.Forms
But this kind of solution doesn't supported when you run A VB class project .
anything else ?
uhh yes it is supported. Everything in .NET is a class object.
check your refreances
Does i need any specific reference ?
yes. System.Windows.Forms.dll
Mr Anderson is correct as usual, have tried it out and works, which saves me from asking the same question...