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
.
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")
1- Pressed button-->
add a button and press 2 times fast on it to see the code and wrhite this:
Code:
MsgBox("text")
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
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")
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
Code:
MsgBox("text for the error :P", MsgBoxStyle.Critical, "Msg title")
If u want to enable somthing put this code:
Code:
"Object1".Enable = true
Code:
"object1".Start()
Code:
"object1".Visible = False
Code:
"object1"Opacity = 40
If u want to change to othere form:
Code:
Form2.Show()
Code:
somthing1.Hide()
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
Code:
If RadioButton1.Checked = True Then
Add here your function
End If
Code:
If CheckBox1.Checked = True Then
Add here your function
End If


