PDA

View Full Version : [VB 2008] Using ints



Pot Up
January 20th, 2011, 23:09
okay sio wasup guys,, just figured this by self, basicly i thoight about the way java worked and.. yeah, tryed to think how i can do somethign similar with this so..

this was my idea..
When i click options, it hides listbox one and the start button
i havnt thought what options do do yet.. but this is all done via the same button i promis :D

Only the registered members can see the link.

and... when i click "Go Back <-"

Only the registered members can see the link.
And ik the start button doesnt come back i just fixed.. and cba updating pic!

Okay.. so all you have to do is this:

Goto the code in your vb program look at the top is will say this


Public Class Form1

Under that type something similar to this:

Dim Selected As Integer = 0
NOTE: You can change "Selected" to w.e you like it doesnt matter!

ok so now to use the Integer..

Double click the button you want to do this with..
Now..

Type

If Selected = 0 Then
Selected = 1
Button2.Text = "Go Back <-"
ElseIf Selected = 1 Then
Selected = 0
Me.Text = "Options"
End If

Welll if you want a button to hide its:


Button1.hide()
To make it show:

Button1.show()
if your doing the code in this button Change "Button1" to "Me"


Simple!

Thanks
~potup

samuraiblood2
January 20th, 2011, 23:13
What an ugly language.

Only the registered members can see the link.(v=vs.80).aspx

Pot Up
January 20th, 2011, 23:16
lol, mine works the same :/

Pot Up
January 20th, 2011, 23:20
s1gma.. stfu dont rage.. i find visual basic quite fun and interesting... becuase its fun to know im making a program and that.. its easy.. and i like to expirement :P

Anthony`
January 20th, 2011, 23:22
omg the invasion of the VB has begun

Pot Up
January 20th, 2011, 23:22
:( i find it interresting D:

Pot Up
January 20th, 2011, 23:24
meh leave me be..

Pot Up
January 20th, 2011, 23:30
leave u trol... u belong on R-S

Trey
January 21st, 2011, 00:46
This would be an example of tutorials that are not only wrong, but pointless.