如何使用可编辑文本框创建弹出窗口(在弹出窗口中) [英] How to create popup window with editable textbox(in popup window)

查看:433
本文介绍了如何使用可编辑文本框创建弹出窗口(在弹出窗口中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用可编辑的文本框创建弹出窗口(在弹出窗口中)..............在复选框列表中选中一个复选框,然后显示可编辑的弹出窗口.........然后在textox中键入要添加到数据库表中的数据........



我尝试了什么:



没有尝试................................ .................................................. .................................................. ....

解决方案

我通过谷歌搜索并选择第一个结果找到的东西:

  public   void  ShowMyDialogBox()
{
Form2 testDialog = Form2();

// 将testDialog显示为模态对话框并确定DialogResult = OK。
if (testDialog.ShowDialog( this )== DialogResult.OK)
{
// 阅读testDialog的TextBox的内容。
this .txtResult.Text = testDialog.TextBox1.Text;
}
其他
{
.txtResult .Text = 已取消;
}
testDialog.Dispose();
}



解决方案链接: https://stackoverflow.com/questions/10797774/messagebox-with-input-field


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........................................................................................................................................

解决方案

Something I found by googling and choosing the first result:

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


这篇关于如何使用可编辑文本框创建弹出窗口(在弹出窗口中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆