Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题:模拟完成后会弹出“保存对话框”。单击 Windows 任务栏中的“主程序”时,“主程序”和“保存对话框”都应位于其他打开的窗口之上。现在只显示“主程序”,而“保存对话框”隐藏在后台,必须最小化所有窗口才能看到它。如何解决这个问题?
调用 ShowDialog 方法使您将 FileDialog 保存为模态对话框
saveFileDialog1.ShowDialog();