Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var d1 = new Dialog1();

            d1.ShowDialog(this);
            label2.Text = "Dialog1 popped up.";
        }
Exemple #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            var d1 = new Dialog1();

            d1.ShowDialog(this);
            d1.ShowDialog(this);

            var d2 = new Dialog2();

            d2.ShowDialog(this);

            MessageBox.Show("Clicked button 4 1st.", "", MessageBoxButtons.OKCancel);
            MessageBox.Show("Clicked button 4 2nd.", "", MessageBoxButtons.OKCancel);

            label5.Text = "Onz";
        }