Help!!!C#的控制台程序,如何隐藏控制台??? RT!请教! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 哎,我知道VC的如何实现,你看能不能直接跳到入口点而不经过main,VC中就是这样做的。 [DllImport("user32.dll", SetLastError = true)]static extern int FindWindow(string lpClassName, string lpWindowName);[DllImport("user32.dll")]static extern bool ShowWindow(int hWnd, int nCmdShow);public static void Main(string[] args){string formName = @"""G:\VS.Net\Console\bin\Release\ConsoleApp.exe""";int h = FindWindow("ConsoleWindowClass",formName);ShowWindow(h,0);} process.StartInfo.FileName = @"ConsoleApplication1.exe"; process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;process.Start(); Process p = new Process();p.StartInfo.FileName = "ConsoleApplication1.exe";p.StartInfo.CreateNoWindow = true; 关于griddataview单元格输入验证的问题 怎样让webbrowser怎用户不可用 c#上传文件放在数据库中好,还是放在文件夹下好? ASP.NET分层 如何把表明通过参数传到sql语句里? 实现ftp上文件拖放 菜的要哭系列1:关于DataGrid…… 我快疯了,试验了到1点半,竟然找不到WINFORM的DATAGRID的更新数据源的方法!!!!要多少分给多少分!!! C#中修改一个XML文件的其中一个Element的问题。(等待中......) 如何用C#改音频文件的采样率? 请教Dev.v3 XtraGrid问题,急! DevEx中的GridControl控件的双击行的问题
static extern int FindWindow(string lpClassName, string lpWindowName);[DllImport("user32.dll")]
static extern bool ShowWindow(int hWnd, int nCmdShow);public static void Main(string[] args)
{
string formName = @"""G:\VS.Net\Console\bin\Release\ConsoleApp.exe""";
int h = FindWindow("ConsoleWindowClass",formName);
ShowWindow(h,0);
}
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.Start();
p.StartInfo.FileName = "ConsoleApplication1.exe";
p.StartInfo.CreateNoWindow = true;