Computers/Language 2012. 9. 6. 20:24

C# - 윈도우 폼에서 팝업 윈도우 만들기


http://www.codeproject.com/Questions/231247/How-to-create-a-Popup-Window-in-Csharp-in-Windows 


Let's say you called your popup window class "PopupWindow". You created it by right-clicking on your project in project explorer and chosing "Add new Windows Form". Then you added a text box and an "Ok"-Button.
 
You also added a property to your form so that you can later gain access to the data the user entered in the text box.

public class PopupWindow
{
    public string EnteredText
    {
        get
        {
            return( textBox.Text );
        }
    }
}
Now you use your new class like this:
PopupWindow popup = new PopupWindow();
 
popup.ShowDialog();
 
string userEnteredText = popup.EnteredText;
 
popup.Dispose();


http://www.google.co.kr/#hl=ko&newwindow=1&output=search&sclient=psy-ab&q=c%23+popup+windows+forms&oq=c%23+popup+window&gs_l=hp.1.2.0l3j0i30l7.54540.59334.1.65363.15.13.0.2.2.0.162.1397.8j5.13.0...0.0...1c.1.Hd3MqMjvi6s&psj=1&bav=on.2,or.r_gc.r_pw.r_qf.&fp=e34e93afbf654886&biw=1280&bih=933



posted by 털보네i
: