第
第
public partial class Form
{
private string _username;
private string _password;
public string UserName
{
get
{
return _username;
}
set
{
_username=value;
}
}
public string Password
{
get
{
return _password;
}
set
{
_password=value;
}
}
}
第
在Form
private void button
{
Form
myForm
myForm
DialogResult result= myForm
if(result==DialogResult
{
comboBox
comboBox
}
}
要充分演示上述功能
第
private Form
{
textBox
textBox
}
第
private void textBox
{
this
}
private void textBox
{
this
}
From:http://tw.wingwit.com/Article/program/net/201311/12151.html