你到底是要自己编程序中的窗体放到最前面,还是要调用其他程序的窗体啊?
若是将一个窗体提到最前面,可以将那个窗体的TopMost=True然后再TopMost=False,窗体就到最前面了。
若是将一个窗体提到最前面,可以将那个窗体的TopMost=True然后再TopMost=False,窗体就到最前面了。
解决方案 »
- 各位哥!问一个C#的网络传输问题。代码很少!帮我看下好吗??
- TabControlEx 控件有误 无法在 DLL“user32.dll”中找到名为“FindWindowGraphicsEx”的入口点。
- 窗体按钮事件,触发事件后关闭窗体并刷新父窗体
- 门诊处方录入的那个DATAGRIDVIEW是怎么实现的
- 求求.....判断当前用户是不是管理员的代码.....在线=的
- C# 远程监控问题,还有隐藏进程?
- 看了这篇文章,我觉得学编程也是不能死抠语法,高手们觉得是不是?
- win32中承载WPF的DLL,不能显示问题
- DetailView 编辑时 在哪里添加判断条件
- CSource网站地址
- GridView 边框如何设置?
- 影院售票管理系统-售票管理的代码给我改成影院售票管理系统-订票管理帮帮忙
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Windows;
using System.Runtime.InteropServices;namespace findwindow
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
[DllImport("user32.dll ", EntryPoint = "FindWindow ")]
private void Form1_Load(object sender, EventArgs e)
{
IntPtr HWND cc;//在这里会出现"应输入;这个提示"
::findwindow(null,"QQ用户登陆");//在findwindow前面的::这里会提示"应输入标识符"
if(cc|=null)
{
}
} private void button1_Click(object sender, EventArgs e)
{
}
}
}
我是不明白这个findwindow怎么用?帮下忙呀
若是将一个窗体提到最前面,可以将那个窗体的TopMost=True然后再TopMost=False,窗体就到最前面了