Client~Side
Na frmadmin crie 2 labels, 2 TextBox e 1 comandbutton. Altere as suas configurações para:
Label1
[/b][/font]
TextBox1
Label2
TextBox2
Comand Button
Agora dentro do cmbSorteio adicione:
Creditos:
Ricardo
[/center]
Na frmadmin crie 2 labels, 2 TextBox e 1 comandbutton. Altere as suas configurações para:
Label1
[/b][/font]
Caption: Número Máximo:
TextBox1
Name: txtMax
Caption: 50
Label2
Caption: Número Sorteado:
TextBox2
Name: txtSorteio
Locked: True
Comand Button
Name: cmbSorteio
Caption: Sortear
Agora dentro do cmbSorteio adicione:
- Código:
txtSorteio.Clear
With txtSorteio
.Text = .Text & vbNewLine & Int(Rnd() * txtMax.Text)
.SelStart = Len(.Text) + 1
MsgBox ("O Sorteado foi o número& txtSorteio.Text")
End With
Creditos:
Ricardo
[/center]