private void button1_Click(object sender, EventArgs e) { fmrtempera tempera = new fmrtempera(); DialogResult resultado = tempera.ShowDialog(); tempera.Show(); if (resultado == DialogResult.OK) { this.mipaleta += tempera.proptempera; this.textBox1.Text = tempera.proptempera; } }
public Form1() { mipaleta = 5; InitializeComponent(); this.groupBox1.Text = "paleta de colores"; this.textBox1.Multiline = true; this.button1.Text = "+"; this.button2.Text = "-"; this.groupBox1.Visible = true; this.agregarPaletaToolStripMenuItem.Enabled = false; }