Tutorial: How to create a Windows Version Snippet-VBForums
Results 1 to 4 of 4

Thread: Tutorial: How to create a Windows Version Snippet

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Location
    Washington, D.C
    Posts
    26

    Post Tutorial: How to create a Windows Version Snippet

    How to create a windows version snippet
    -----------------------------------------
    From the push of a button, the user will be identified with their version of Windows.

    Feature list:
    NA

    Screen-shots:
    None

    Author name:
    4thBattalion (Me, Battalion)

    System Requirements:
    None

    License info:
    Copyright ©2009 Battalion Productions All Rights Reserved

    Tutorial Below
    --------------

    How to create a Windows Version Snippet by 4thBattalion



    Hello everyone, I will be teaching you how to create a Windows Version Snippet, this will be a small tutorial, and mostly for beginners. Windows Version Snippet means the version of your computer. For example:

    Microsoft® Windows Vista™ Home Premium
    6.75.6765.6553 <------Fake number for security purposes

    Let's get started. First you want to create a new Windows Form Application, and you can name it whatever you want. Then, create a button.(Recommended)

    Double-Click the button or the Tool used to show the user.

    Enter in this code:

    Code:
    Dim osVersion As String
    osVersion = My.Computer.Info.OSVersion
    The osVersion is the Version of your computer, like 6.0.6001.65536.

    Then, enter this right below it, in the same button/tool code editor:

    Code:
    Dim osName As String
    osName = My.Computer.Info.OSFullName
    MsgBox(osName & vbCr & osVersion)
    The osName is the name of your computer, like Vista, XP, 98.
    The information provided will appear in the message box, as shown in the code.

    Thank-you for viewing this tutorial, hope it helped!
    -------------------------------------------------------------------
    Last edited by Battalion; May 17th, 2009 at 07:49 PM. Reason: Security Purpose

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,572

    Re: Tutorial: How to create a Windows Version Snippet

    Using VB.Net...???

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India

    Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    36,812

    Re: Tutorial: How to create a Windows Version Snippet

    That is correct... and I think it needs to be VB 2005 or later, as "My" is relatively new.

  4. #4
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,572

    Re: Tutorial: How to create a Windows Version Snippet

    Ok....

    @Battalion: You should specify the language you used, in somewhere in your tutorial...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India

    Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.