using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms;namespace WindowsApplication216 { public partial class Form1 : Form { Form F = new Form();
fm.Show();
这样可以
不知道lz是不是这个意思???
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace WindowsApplication216
{
public partial class Form1 : Form
{
Form F = new Form();
public Form1()
{
InitializeComponent(); F.TopMost = true;
F.Show(); this.Activated += new EventHandler(Form1_Activated);
} void Form1_Activated(object sender, EventArgs e)
{
F.Focus();
}
}
}
比如想让别人的调用我的窗体显示出来,我不想让他在没有关闭我的窗体前做其他的事情,我有不能保证别人调我的窗体一定是ShowDialog的,所以请教一下各位如和才能不用ShowDialog实现ShowDialog的效果。 是WinForm窗体应用程序
只有关闭子窗口才能进行其他操作,但是不用ShowDialog