Form1 ¿¡¼ ¹öÆ°À» Ŭ¸¯ÇÏ¸é ´Ü¼øÈ÷ Form2À» ShowDialog½Ãŵ´Ï´Ù.
½ÇÇàÁßÀÎ ÇÁ·Î±×·¥ È®ÀÎÇÏ¸é ¿©·¯°³ÀÇ ÇÁ·Î±×·¥À» º¸ÀÔ´Ï´Ù.
Çϳª·Î º¸ÀÌ°Ô ÇÏ·Á¸é ÄÚµùÀ» ¾î¶»°Ô ÇØ¾ß Çմϱî?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace DeviceApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form2 form = new Form2();
form.ShowDialog();
}
}
} ̵̧:
|