View Single Post
  #10 (permalink)  
Old 09-04-2007, 11:24 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hello,

To show a modal dialog use .showdialog

Code:
public string Show()
{
  frmInputBox.ShowDialog();
 
  return StringTypedByUser;
}
And to close your InputBox...

Code:
private void btnOK_Click(System.Object sender, System.EventArgs e) 
{
  frmInputBox.Close();
}
__________________
Dimitris Zacharakis
http://www.terracom.gr

Last edited by dzt : 09-04-2007 at 11:33 AM.
Reply With Quote