Results 1 to 10 of 10

Thread: App in VB.NET

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    92

    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.

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    hi

    its "application"

    Code:
    application.productname

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    92

    But

    But if i try to use it in class project , the application object doesn't avaliable !!

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Try:

    System.Windows.Forms.Application

    Or Add this:

    Imports System.Windows.Forms

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    92

    I'm sorry my friend

    But this kind of solution doesn't supported when you run A VB class project .

    anything else ?

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    uhh yes it is supported. Everything in .NET is a class object.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  7. #7
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    check your refreances
    Magiaus

    If I helped give me some points.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    92

    ?

    Does i need any specific reference ?

  9. #9
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    yes. System.Windows.Forms.dll
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  10. #10
    Addicted Member
    Join Date
    Jan 1999
    Location
    Sydney,NSW,Australia
    Posts
    178
    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
  •  



Click Here to Expand Forum to Full Width