https://bugzilla.novell.com/show_bug.cgi?id=332409

           Summary: SendKeys unhandled exception if no active control
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: ---


The following code

Form a = new Form();
a.Show();
System.Windows.Forms.SendKeys.SendWait("a");


will cause the following exception:

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at System.Windows.Forms.SendKeys.SendInput () [0x00015] in
/home/usuario/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/SendKeys.cs:310
 
  at System.Windows.Forms.SendKeys.Send (System.String keys) [0x00006] in
/home/usuario/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/SendKeys.cs:325
 
  at System.Windows.Forms.SendKeys.SendWait (System.String keys) [0x0000c] in
/home/usuario/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/SendKeys.cs:331
 
  at Program.Main () [0x00000]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to