在一牛:hbxtlhx(平民百姓) 的帮助和指点以及遍查资料后,总算基本解决了这次遇到的问题。问题需求:在程序A中调用程序B,并且在适当的时机按B上的一个按钮(tabcontrol->groupbox->button),不得改变B程序的代码。解决流程:首先上网查资料,发现要使用API函数using System.Runtime.InteropServices;[DllImport("user32.dll")] public static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);[DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern IntPtr PostMessage(IntPtr hwnd, i阅读全文>
发表于 @ 2007年03月06日 14:31:00|评论(loading...)|收藏