点击TreeView结点,打开WinForm窗口后,焦点又回到了TreeView所在窗口,怎么让新打开的窗口获得焦点? 在TreeView的AfterSelect、MouseUp、NodeMouseClick、Click事件中都试了,都不行。执行代码:Form2 f = new Form2();f.Show();晕了!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不可能吧,实在不行.showdialog(); NodeMouseClick触发后估计有执行了其他东西,这得跳出这个堆栈显示窗体。一个BT的方式:加一个计时器,通过激活计时器打开窗体。private void timer1_Tick(object sender, EventArgs e){ timer1.Enabled = false; Form form = new Form(); form.Show();}private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e){ timer1.Interval = 1; timer1.Enabled = true;} C# Quartz.net CronExpressionString问题 错误分析,大家帮个忙啊 引用Microsoft.DirectX.AudioVideoPlayback 实现播放视频文件时出现问题。请高手解决。谢谢先 ActiveReport打印问题求教!用A3的纸横向打印,无论如何都要多打一张白纸出来(预览时有那条红线)? 基于EXCEL的WEB报表输出组件 菜鸟问题,加载控件,请看过来 StringFormat中 自动换行怎么实现? 如何初始化存储过程,用C#语言写! 正则表达式 操作符重载。 C#用户控件的事件处理问题? 如何操作我的程序的另一个实例(进程)?
实在不行.showdialog();
private void timer1_Tick(object sender, EventArgs e)
{
timer1.Enabled = false;
Form form = new Form();
form.Show();
}private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
timer1.Interval = 1;
timer1.Enabled = true;
}