程序双击运行正常,放入自启动,开机时错误
注册表写入如下键和键值:   
 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] 
  "MyClock "= "C:\\DiskTop   Clock.exe "   
 其实,改到[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]也是一样不行.   
 程序编译运行都没有问题,就是在开机时自启动会出错,同样,用超级兔子的启动管理中的 "执行 "按扭也会出此错误,但双击执行就正常,将快捷方式放入 "启动 "菜单也正常.   
 不明白是什么地方的问题.   
 附部分出错信息如下:   
 有关调用实时(JIT)调试而不是此对话框的详细信息, 
 请参见此消息的结尾。   
 **************   异常文本   **************  
System.ArgumentException:   参数无效。 
          在   System.Drawing.Bitmap..ctor(String   filename) 
          在   DateTime1.Form1.Form1_Load(Object   sender,   EventArgs   e) 
          在   System.Windows.Forms.Form.OnLoad(EventArgs   e) 
          在   System.Windows.Forms.Form.OnCreateControl() 
          在   System.Windows.Forms.Control.CreateControl(Boolean   fIgnoreVisible) 
          在   System.Windows.Forms.Control.CreateControl() 
          在   System.Windows.Forms.Control.WmShowWindow(Message&   m) 
          在   System.Windows.Forms.Control.WndProc(Message&   m) 
          在   System.Windows.Forms.ScrollableControl.WndProc(Message&   m) 
          在   System.Windows.Forms.ContainerControl.WndProc(Message&   m) 
          在   System.Windows.Forms.Form.WmShowWindow(Message&   m) 
          在   System.Windows.Forms.Form.WndProc(Message&   m) 
          在   System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&   m) 
          在   System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&   m) 
          在   System.Windows.Forms.NativeWindow.Callback(IntPtr   hWnd,   Int32   msg,   IntPtr   wparam,   IntPtr   lparam)     
 归结一下: 
 1.这个调试器是什么,如何打开? 
 2.开机时执行的shell,以及超级兔子执行的shell,跟双击运行有什么不同? 
 3.本程序这个开机出错是怎么回事? 
------解决方案--------------------猜测 
 你根据文件名创建图像,写得是相对路径,双击文件名正确,启动项或超级兔兔,启动路径不是本程序路径,所以出错。解决用绝对路径创建bitmap