|
-
Aug 28th, 2002, 06:50 AM
#1
Thread Starter
Lively Member
App in VB.NET
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.
-
Aug 28th, 2002, 06:54 AM
#2
PowerPoster
hi
its "application"
Code:
application.productname
-
Aug 28th, 2002, 07:41 AM
#3
Thread Starter
Lively Member
But
But if i try to use it in class project , the application object doesn't avaliable !!
-
Aug 28th, 2002, 10:30 AM
#4
Try:
System.Windows.Forms.Application
Or Add this:
Imports System.Windows.Forms
-
Aug 28th, 2002, 11:20 AM
#5
Thread Starter
Lively Member
I'm sorry my friend
But this kind of solution doesn't supported when you run A VB class project .
anything else ?
-
Aug 28th, 2002, 11:22 AM
#6
uhh yes it is supported. Everything in .NET is a class object.
-
Aug 28th, 2002, 12:23 PM
#7
Frenzied Member
Magiaus
If I helped give me some points.
-
Aug 28th, 2002, 01:38 PM
#8
Thread Starter
Lively Member
?
Does i need any specific reference ?
-
Aug 28th, 2002, 01:43 PM
#9
yes. System.Windows.Forms.dll
-
Aug 28th, 2002, 08:08 PM
#10
Addicted Member
Mr Anderson is correct as usual, have tried it out and works, which saves me from asking the same question...
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
|