本文介绍了Windows窗体 - 通过ShowDialog()方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我有一系列这样的命令: Form1 frm = new Form1(); frm.LoadData(); 布尔确认=(frm.ShowDialog()== DialogResult.OK); LoadData方法从数据库加载信息。问题是,当我调试应用程序时,它没有显示表单。 。只是 通过ShowDialog()方法,我的标志确认变为 false,因为表单没有出现。可能会发生什么? 问候。 Junior。 I have a sequence of commands like this: Form1 frm = new Form1();frm.LoadData(); Boolean confirm = (frm.ShowDialog() == DialogResult.OK); The LoadData method loads information from database. The problem is,when I was debugging the application, it doesn''t show the form. It justpass through the ShowDialog() method, and my flag confirm becomesfalse, because the form does not appear. What can be happening? Regards. Junior. 推荐答案 这篇关于Windows窗体 - 通过ShowDialog()方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-11 09:28