Professional Documents
Culture Documents
Codigo Payaso
Codigo Payaso
Dim Invitados, Inv_n, Comida, Record, Salon, Decor, Music, Recre, Refri As
Double
Dim Bebida, Meseros, S_mes, Espec, Imp, Prensa, Cond, VTotal As Double
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
Label5.Text = NumericUpDown1.Value * 2 + NumericUpDown2.Value * 2
Inv_n = NumericUpDown1.Value + NumericUpDown2.Value
Invitados = Val(Label5.Text) + NumericUpDown1.Value + NumericUpDown2.Value
Label6.Text = Invitados
Label11.Text = NumericUpDown3.Value + NumericUpDown4.Value
If Inv_n < 100 Then
Label12.Text = "Piñatica"
GroupBox3.Visible = False
GroupBox4.Visible = True
Else
Label12.Text = "Piñata"
GroupBox3.Visible = True
GroupBox4.Visible = False
End If
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles
Button3.Click
End
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
ComboBox1.Items.Add("Tarjeta débito")
ComboBox1.Items.Add("Tarjeta crédito")
ComboBox1.Items.Add("Cheque al día")
ComboBox1.Items.Add("Cheque post-fechado")
ComboBox1.Items.Add("Bono corporativo")
ComboBox1.Items.Add("Efectivo")
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles
Button2.Click
Comida = 0
Record = 0
Salon = 0
Decor = 0
Music = 0
Recre = 0
Refri = 0
Bebida = 0
Meseros = 0
Espec = 0
Imp = 0
Prensa = 0
Cond = 0
VTotal = 0