-
May 17th, 2009, 10:52 AM
#1
Thread Starter
Junior Member
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
-
Feb 21st, 2010, 10:49 AM
#2
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, Photoshop, CodeIgniter, Bootstrap,...
-
Feb 21st, 2010, 02:06 PM
#3
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.
-
Feb 21st, 2010, 09:12 PM
#4
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, Photoshop, CodeIgniter, Bootstrap,...
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
|