Está en la página 1de 1

comboBox enlazados if(comboBox1->Text=="AUDI") {comboBox2->Items->Clear(); comboBox2->Text=""; comboBox2->Items->Add("Audi R8"); comboBox2->Items->Add("Audi TT"); comboBox2->Items->Add("Audi Q7");} comboBox ya definidos en menu if(comboBox1->Text=="Una

planta") {checkBox1->Checked=false; textBox1->Text="Una planta"; textBox2->Text="300"; total=300000; pictureBox1->Image=gcnew Bitmap ("C:\\casas\\Imagenes\\chica.jpg");} Suma o resta de parametros con checkBox if(comboBox1->Text=="Una planta y 2 recamaras"& &checkBox2->Checked==true) o false {total=total+25000; o -2500 textBox2->Text=Convert::ToString(total);} Boton calcular labe1->Visible=true; precio=Convert::ToDouble(txtprecio->Text); cantidad=Convert::ToDouble(txtcantidad->Text); subtotal=precio*cantidad; txtsub->Text=Convert::ToString(subtotal); iva=subtotal*.16; txtiva->Text=Convert::ToString(iva); total=subtotal+iva; txttot->Text=Convert::ToString(total); boton cambio cmdnuevo->Visible=true; label8->Visible=true; pago=Convert::ToDouble(txtpago->Text); cambio=pago-total; txtcambio->Text=Convert::ToString(cambio); Boton nuevo precio=0; cantidad=0; subtotal=0; iva=0; total=0; pago=0; cambio=0; comboBox2->Text=""; (todo lo demas) Boton acepta contrasea if(textBox1->Text=="1212") {Agencia ^ x=gcnew Agencia(); x->Show();} if(textBox1->Text!="1212") {MessageBox::Show("Clave incorrecta","Error");} De formulario a formulario con radioButton {Acapulco ^ x=gcnew Acapulco(); x->Show();} De formulario a formulario transferiendo datos consultar ^ x=gcnew consultar(); x->textBox1->Text=textBox1->Text; x->textBox2->Text=textBox2->Text; x->Show(); costo=0; boletos=8; Aplicando un boton button3->Enabled =false; boletos=boletos-1; costo=costo+300; textBox1->Text=Convert::ToString(boletos); textBox2->Text=Convert::ToString(costo);

También podría gustarte