Click here to Skip to main content
15,888,030 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to create popup window with editable textbox(in popup window)..............in checkbox list check one checkbox then show editable popup window.........then which ever type in textox the data to be add in database table........

What I have tried:

not trying........................................................................................................................................
Posted
Updated 15-Jul-18 13:58pm
Comments
Richard MacCutchan 14-Jul-18 9:54am    
First create a form that will be the pop up window. Then add an event handler to the checkbox. The rest will be as per your design.

1 solution

Something I found by googling and choosing the first result:
C#
public void ShowMyDialogBox()
{
   Form2 testDialog = new Form2();

   // Show testDialog as a modal dialog and determine if DialogResult = OK.
   if (testDialog.ShowDialog(this) == DialogResult.OK)
   {
      // Read the contents of testDialog's TextBox.
      this.txtResult.Text = testDialog.TextBox1.Text;
   }
   else
   {
      this.txtResult.Text = "Cancelled";
   }
   testDialog.Dispose();
}

Link to solution: https://stackoverflow.com/questions/10797774/messagebox-with-input-field
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900