How to begin coding in VB 10 E

Posts 16 of 6 · Page 1 of 1
How to begin coding in VB 10 E
Hi, much peaple want to knwo coding and things like that, the probleme is they cant make a Msg show up and they start with a Hack... -_-

I will show a tutorial of simple codes and tutorials for helpe on that .

In a Form project

Thirst if u want to make a nice programe you have to know the diferent ways to make a Msg box.

The more simple is this 1:

Code:
MsgBox("you text here")
you can add it wen:

1- Pressed button-->

add a button and press 2 times fast on it to see the code and wrhite this:

Code:
MsgBox("text")
2- With a Progress Bar -->

Add a timer a Progress bar and make the timer enable.

In the Timer1 add this code:

Code:
ProgressBar1.Increment(1)
        If ProgressBar1.Value = 50 Then
            MsgBox("its almost there")
        End If
"50" is the value of the progressbar(wen it is in 50% it will show that message)

But you can add a difrent type of Msg, for ex a msg with options, like Cancel, Ok, etc.

Here a ex:

Code:
MsgBox("Do you want to save the changes?", MsgBoxStyle.YesNoCancel, "New Document")
And to add Codes to the options make this:

Code:
MsgBox("Do you want to save the changes?", MsgBoxStyle.YesNoCancel, "New Document")
        If MsgBoxResult.Cancel Then
        End If
        If MsgBoxResult.Yes Then
            Me.Close()
        End If
        If MsgBoxResult.No Then
            MsgBox("just add the options you want")
        End If
Or a Critical message:

Code:
MsgBox("text for the error :P", MsgBoxStyle.Critical, "Msg title")
Simple codes that can helpe you:

If u want to enable somthing put this code:

Code:
 "Object1".Enable = true
Or
Code:
"object1".Start()
]If u want to Make somthing invisible, or change opacity:

Code:
"object1".Visible = False
or
Code:
"object1"Opacity = 40
(change to the value you want)

If u want to change to othere form:

Code:
Form2.Show()
if u want to hide somthing:

Code:
somthing1.Hide()
(be carefull, somtimes is hard to make it show up, if u dont make a button or somthing :P)

if u want to add hotkeys:

open form1 and you will up there a little lightning with Load wrhited, just Press thre and select "Key Down"

in key down code add this:

Code:
If e.KeyCode = Keys.Insert Then
            (add here the key function)
        End If
if u want to work with radio Buttons and if they are wen they are checked you can add functions like this:
Code:
If RadioButton1.Checked = True Then
            Add here your function
        End If
with check Box is the same code, just change the object name:

Code:
If CheckBox1.Checked = True Then
            Add here your function
        End If
If you want to know more things, just PM /me

Good Job ì, add things like Timers or other..
For example for the time on timer (that must be enabled with 1 delay)
Code:
Label.text = TimeOfDay
(just basic)
i would never want to make a hack in vb

vb is managed code
native c++ is unmanaged

makin c++ faster less lag
Hi guys i was banned, and i steal dont know way -_-

i wold like to edit it with Timer function but..... the ban is over on day 10 of this mounth

i was agressive, i am going to code my project -_- its almost done
Quote Originally Posted by cod3r[VbE10] View Post
Hi guys i was banned, and i steal dont know way -_-

i wold like to edit it with Timer function but..... the ban is over on day 10 of this mounth

i was agressive, i am going to code my project -_- its almost done
ahahhahahah ban for aggressiving? :P mpgh has the best banning reason
nooobs -_-

they are soo noobs.. omg
Posts 16 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?