get.it

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
8 posts Page 1 of 1
Contributors
User avatar
rocky4126
VIP - Donator
VIP - Donator
Posts: 258
Joined: Mon Nov 16, 2009 7:39 pm

get.it
rocky4126
Hi guys, this is one of my new programs I call it: Get.it! what it does is uses the textbox and gets a piece of information from the PC.

Tutorial:
Items:
1 textbox
1 label
1 button
1 form
button1 text = get.it or something like that
form1 text = <application name>
next: the coding
form 1 code:
Code: Select all
Label1.Text = ""
next is button 1's code:
Code: Select all
If TextBox1.Text = "get.physmem" Then
            Label1.Text = My.Computer.Info.TotalPhysicalMemory
        End If
        If TextBox1.Text = "get.availablephysmem" Then
            Label1.Text = My.Computer.Info.AvailablePhysicalMemory
        End If
        If TextBox1.Text = "get.OSFN" Then
            Label1.Text = My.Computer.Info.OSFullName
        End If
        If TextBox1.Text = "get.virtmem" Then
            Label1.Text = My.Computer.Info.TotalVirtualMemory
        End If
        If TextBox1.Text = "get.availablevirtmem" Then
            Label1.Text = My.Computer.Info.AvailableVirtualMemory
        End If
        If TextBox1.Text = "get.time" Then
            Label1.Text = My.Computer.Clock.LocalTime.Hour & ":" & My.Computer.Clock.LocalTime.Minute
        End If
and add anything else you want to the code or even edit the existing one like delete the get. or change virtmem etc.

the base code is just
Code: Select all
if <textbox name>.text = "<text>" then
<label name> = <label text>
Image
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Re: get.it
hungryhounduk
Hi Rocky4126
Interesting, I will build this and see what its like

Cheers

Chris
Image
User avatar
Nery
Co-Admin Moderator
Co-Admin Moderator
Posts: 1117
Joined: Mon Sep 07, 2009 8:11 pm

Re: get.it
Nery
It gives your disk Total and Free Memory, gives your Total and Free Virutal Memory, gives your OS Name/Version and also gives your Time&Date
User avatar
rocky4126
VIP - Donator
VIP - Donator
Posts: 258
Joined: Mon Nov 16, 2009 7:39 pm

Re: get.it
rocky4126
hi again! Thanks, yeah you can add more codes to it all that is is a demo version but I decided to add some more codes to it after. Sorry I can't post source btw, it's on my laptop but I might add it later depends on if I get on it tonight.
Image
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: get.it
Lewis
This will do good for the comp currently on
Image
User avatar
vea
Just Registered
Just Registered
Posts: 3
Joined: Sun Feb 14, 2010 12:10 pm

Re: get.it
vea
Nice. I just put the whole thing in form_load but, I like it.
User avatar
rocky4126
VIP - Donator
VIP - Donator
Posts: 258
Joined: Mon Nov 16, 2009 7:39 pm

Re: get.it
rocky4126
this is just a demonstation really on what you can do with VB
Image
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: get.it
mandai
msinfo32 is also useful for system information.
8 posts Page 1 of 1
Return to “Tutorials”