Bill,
Simple example:
on Form1 (calling form)
private void button1_Click(object sender, System.EventArgs e)
{
Form2 f2 = new Form2();
if (f2.ShowDialog() == DialogResult.OK)
{
MessageBox.Show(f2.PW);
}
}
on Form2 (prompt/dialog form)
public string PW
{
get
{
return textBox1.Text;
}
}
On Form2 set the DialogResult properties of your buttons to the
appropriate values (OK, Cancel, etc.) so they set the ShowDialog()
return value and close the close the form.
-Dan Shanyfelt
"Bill Yin" <yi********@yahoo.com.cn.discuss> wrote in message news:<##**************@TK2MSFTNGP11.phx.gbl>...
javascript-- prompt
C# -- ????
I want pop a winform for inputting my password before submitting