Visual basic sebagai pusat kendali

Variables 2
Dim nomentero AS Integer = 1
Dim nomdecimales AS Double = 1.54
Dim nomtexto AS String = “Hola”
Dim nomfecha AS Date = “01-01-12”

Leer ____MsgBox(nomentero)
MsgBox(texto + texto2)

Array 3
Dim arreglo (3) As String
Arreglo (0) = “hola”
Arreglo(1) = “código”
Arreglo(3)= “mundo”
Dim arreglo () As Integer
Arreglo = New Integer () {1, 2, 3}
MsgBox (arreglo(0).ToString+ “”+arreglo(1).ToString+””+arreglo(2).ToString)
ReDim Preserve arreglo (2)
Dim matriz (,) As Integer = { {1, 2, 3}, {4,5,6}}
Botones 6
Dim num As integer

Num1= txtNum1. Text
Cerrar____ Me. Close()

Operadores comparativos 7
Dim resutado As Boolean
Resultado = 1 =2
MsgBox (resultado)
Operadores Logicos 8
Dim resultado As Boolean
Resultado = (1=1) And (2=2)
Resultado = (1=1) Or (2=2)
Resultado = Not (1=1)
Resultado ( (1=1) and (2=1) ) or (3=3)
IF 9
Dim num1, num2 As integer
Num1= txtNum1. Text
Num2=txtNum2. Text
If (num1=num2) Then
ElseIf (num1 >num2)
Else

EndIf
MsgBox (resutado)
If (txtNum1.Text.Contains(“facilito”)) then
MsgBox…
Radiobutoon 10
If (suma.checked = True) then
Resultado = n1 + n2
elseIf (resta.Checked =true) then
Msgbox( “el resultado es” + resultado.ToString)

Checkbox 11
If Me.rock.Checked = true then
Rock= true
Ciclo For 12
Dim i As integer
For i = 0 To 4
Dim arreglo(10) As integer
Dim i As Integer
For i = 0 to 9
Arreglo (i)=i+1

Msgbox (“Arreglo(“+i.Tostring+”)=”+arreglo(i).ToString)
Do while 13