using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
f2.Show();
}
private void button1_Click(object sender, EventArgs e)
{
Console.Beep(350, 100);
//Definir la apertura de la nueva ventana
Form2 UnaHija
= new Form2
(); UnaHija.Show();
this.Hide();
}
private void button2_Click(object sender, EventArgs e)
{
Console.Beep(350, 100);
//Definir la apertura de la nueva ventana
Form3 UnaHija
= new Form3
(); UnaHija.Show();
this.Hide();
}
private void button3_Click(object sender, EventArgs e)
{
Console.Beep(350, 100);
//Definir la apertura de la nueva ventana
Form4 UnaHija
= new Form4
(); UnaHija.Show();
this.Hide();
}
private void button4_Click(object sender, EventArgs e)
{
Console.Beep(350, 100);
//Definir la apertura de la nueva ventana
Form5 UnaHija
= new Form5
(); UnaHija.Show();
this.Hide();
}
private void button5_Click(object sender, EventArgs e)
{
textBox1.Text = f2.Variable;
}
}
}