Results 1 to 4 of 4

Thread: Tutorial: How to create a Windows Version Snippet

Threaded View

  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

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