[Mono-winforms-list] application crashes on pressing ALT, Arrow keys

Jijesh incubator125 at hotmail.com
Thu Jul 23 10:31:39 EDT 2009


Hi Everyone.

I have developed a small dataentry winforms application in c#. But the
application is getting closed while pressing Arrow keys just after pressing
ALT key in text boxes. It is not happening if we press any keys other than
ALT. I am  getting the following exception as well:

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
  at System.Windows.Forms.MenuTracker.ProcessKeys
(System.Windows.Forms.Message& msg, Keys keyData) [0x00000] 
  at System.Windows.Forms.Menu.ProcessCmdKey (System.Windows.Forms.Message&
msg, Keys keyData) [0x00000] 
  at System.Windows.Forms.Control.ProcessCmdKey
(System.Windows.Forms.Message& msg, Keys keyData) [0x00000] 
  at System.Windows.Forms.TextBoxBase.ProcessCmdKey
(System.Windows.Forms.Message& msg, Keys keyData) [0x00000] 
  at System.Windows.Forms.Control.InternalPreProcessMessage
(System.Windows.Forms.Message& msg) [0x00000] 
  at System.Windows.Forms.Control.PreProcessMessage
(System.Windows.Forms.Message& msg) [0x00000] 
  at System.Windows.Forms.Control.PreProcessControlMessageInternal
(System.Windows.Forms.Message& msg) [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:PreProcessControlMessageInternal
(System.Windows.Forms.Message&)
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
mainForm) [0x00000] 
  at DETool.Forms.LoginForm.Main () [0x00000]

mono version: 2.0.1-4
operating system : ubuntu 9.0.4


Thanks in advance
Jijesh

-- 
View this message in context: http://www.nabble.com/application-crashes-on-pressing-ALT%2CArrow-keys-tp24627006p24627006.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.



More information about the Mono-winforms-list mailing list