Page 1 of 1

get.it

Posted: Wed Jan 13, 2010 1:21 pm
by 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>

Re: get.it

Posted: Wed Jan 13, 2010 3:28 pm
by hungryhounduk
Hi Rocky4126
Interesting, I will build this and see what its like

Cheers

Chris

Re: get.it

Posted: Thu Jan 14, 2010 10:24 am
by 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

Re: get.it

Posted: Wed Jan 27, 2010 7:48 pm
by 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.

Re: get.it

Posted: Thu Jan 28, 2010 5:01 pm
by Lewis
This will do good for the comp currently on

Re: get.it

Posted: Wed May 05, 2010 8:37 am
by vea
Nice. I just put the whole thing in form_load but, I like it.

Re: get.it

Posted: Wed May 05, 2010 5:07 pm
by rocky4126
this is just a demonstation really on what you can do with VB

Re: get.it

Posted: Wed May 05, 2010 9:15 pm
by mandai
msinfo32 is also useful for system information.