[Mono-bugs] [Bug 332409] New: SendKeys unhandled exception if no active control
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Oct 9 21:35:08 EDT 2007
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: mono-bugs at ximian.com
ReportedBy: equistango at gmail.com
QAContact: mono-bugs at ximian.com
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.
More information about the mono-bugs
mailing list