一个窗体调另一个另一个exe中的窗体 两窗体执行一样的动作 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 查一下进程间通信的东西,相信很容易解决GBY(google,baidu,yahoo)是你最好的老师~ findwidnow查找句柄[DllImport ( "user32.dll", EntryPoint = "FindWindow", SetLastError = true )]private static extern IntPtr FindWindow( string lpClassName, string lpWindowName );[DllImport ( "user32.dll", EntryPoint = "FindWindowEx", SetLastError = true )]private static extern IntPtr FindWindowEx( IntPtr hwndParent, uint hwndChildAfter, string lpszClass, string lpszWindow );[DllImport ( "user32.dll", EntryPoint = "SendMessage", SetLastError = true, CharSet = CharSet.Auto )]private static extern int SendMessage( IntPtr hwnd, uint wMsg, int wParam, int lParam );[DllImport ( "user32.dll", EntryPoint = "SetForegroundWindow", SetLastError = true )]private static extern void SetForegroundWindow( IntPtr hwnd )const uint BM_CLICK = 0xF5; IntPtr hwndCalc = FindWindow ( null, "" ); if ( hwndCalc != IntPtr.Zero ) { } 用api 找窗体句柄 然后传参 告诉他要做什么。。 求CSDN的各位大神帮我看看 c#中tcp应用编程,连接超时,如时设置超过一定时间就抛出异常 C#怎样把窗体控件四个角变成椭圆? 使用OleDbDataAdapter和OleDbCommandBuilder更新Access表的问题 遇到一条史上(个人)最长警告,哪位大牛帮我解读下? 水晶报表的客户端(winform) 使用vs2005创建数据源时出错…… c#调用dephi的dll问题,传入值总是不对?? PropertyGrid 急救,高手请进! 用c#怎么吧数据导入Excel 中 C# 获取受保护的word标签值 一个简单的关于winform中app.config的问题
GBY(google,baidu,yahoo)是你最好的老师~
[DllImport ( "user32.dll", EntryPoint = "FindWindow", SetLastError = true )]
private static extern IntPtr FindWindow( string lpClassName, string lpWindowName );
[DllImport ( "user32.dll", EntryPoint = "FindWindowEx", SetLastError = true )]
private static extern IntPtr FindWindowEx( IntPtr hwndParent, uint hwndChildAfter, string lpszClass, string lpszWindow );
[DllImport ( "user32.dll", EntryPoint = "SendMessage", SetLastError = true, CharSet = CharSet.Auto )]
private static extern int SendMessage( IntPtr hwnd, uint wMsg, int wParam, int lParam );
[DllImport ( "user32.dll", EntryPoint = "SetForegroundWindow", SetLastError = true )]
private static extern void SetForegroundWindow( IntPtr hwnd )
const uint BM_CLICK = 0xF5;
IntPtr hwndCalc = FindWindow ( null, "" );
if ( hwndCalc != IntPtr.Zero )
{ }