调用特殊属性对话框

IE选项:

using   System.Diagnostics;   
ProcessStartInfo   Info=new   ProcessStartInfo();   
Info.FileName   =   "inetcpl.cpl";   
Process.Start(Info);  

 

时间和日期属性对话框:

 C:\WINDOWS\system32\rundll32.exe   /d   shell32.dll,Control_RunDLL   timedate.cpl  
   
  C#代码:  
  Process   myProc   =   new   Process();  
  myProc.StartInfo.FileName   =   "cmd.exe";  
  myProc.StartInfo.UseShellExecute   =   false;  
  myProc.StartInfo.RedirectStandardInput   =   true;  
  myProc.StartInfo.CreateNoWindow   =   true;  
  myProc.Start();  
  myProc.StandardInput.WriteLine("C:\\WINDOWS\\system32\\rundll32.exe   /d   shell32.dll,Control_RunDLL   timedate.cpl");  
  myProc.StandardInput.WriteLine("exit"); 

    
  VB.net代码:  
  Public   myProc   As   Integer  
  myProc   =   Shell("C:\WINDOWS\system32\rundll32.exe   /d   shell32.dll,Control_RunDLL   timedate.cpl")  
private   void   button1_Click(object   sender,   System.EventArgs   e)  
  {  
  System.Diagnostics.Process.Start("rundll32.exe","/d   shell32.dll,Control_RunDLL   timedate.cpl");  
  }

 

posted @ 2008-10-23 11:14  Landy_di  阅读(119)  评论(0编辑  收藏  举报