Results 1 to 6 of 6

Thread: [RESOLVED] CF Application version

  1. #1

    Thread Starter
    Frenzied Member Zakary's Avatar
    Join Date
    Mar 2005
    Location
    Canada, Quebec, Montreal
    Posts
    1,654

    Resolved [RESOLVED] CF Application version

    Hi!
    I'm at my beginning on a CF development for a Pocket PC. And I’m searching for a couple of thing, like a way to get the application version, and the current PC Username. Does anyone can help on this??

    Thanks!

    Zak
    Using VS 2010 on Fw4.0

  2. #2

    Thread Starter
    Frenzied Member Zakary's Avatar
    Join Date
    Mar 2005
    Location
    Canada, Quebec, Montreal
    Posts
    1,654

    Re: CF Application version

    Echo Echo Echo Echo Echo
    Using VS 2010 on Fw4.0

  3. #3
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: CF Application version

    Version...
    With System.Reflection.Assembly.GetExecutingAssembly.GetName().Version
    lblVersion.Text += .Major.ToString() & "."
    lblVersion.Text += .Minor.ToString() & "."
    lblVersion.Text += .Build.ToString()
    End With

    For the PC name, it is in the Registry, HKLM\Ident\Name

    You can get registry class (plus lots of other good stuff) from www.opennetcf.org

    Pete

  4. #4

    Thread Starter
    Frenzied Member Zakary's Avatar
    Join Date
    Mar 2005
    Location
    Canada, Quebec, Montreal
    Posts
    1,654

    Re: CF Application version

    Thanks !
    I'll look at the link as soon as he will be availabe, can't open it for now it is too slow
    I've also find this for the PPc Name
    VB Code:
    1. System.Net.Dns.GetHostName()

    Have you anything for the username?
    Using VS 2010 on Fw4.0

  5. #5
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: CF Application version

    Hi,
    \HKEY_CURRENT_USER\ControlPanel\Owner

    Pete

  6. #6

    Thread Starter
    Frenzied Member Zakary's Avatar
    Join Date
    Mar 2005
    Location
    Canada, Quebec, Montreal
    Posts
    1,654

    Re: CF Application version

    Many thanks !!
    Using VS 2010 on Fw4.0

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