[Mono-winforms-list] Problem with TextBox

Tarasella tarasella at mail.ru
Mon Jul 20 04:41:27 EDT 2009


Hi
Some time, when I clicked left button mouse on TextBox application crached:

System.IndexOutOfRangeException: Array index is out of range.
  at System.Text.StringBuilder.get_Chars (Int32 index) [0x00000] 
  at System.Windows.Forms.TextBoxBase.SelectWord () [0x00000] 
  at System.Windows.Forms.TextBoxBase.TextBoxBase_MouseDown (System.Object
sender, System.Windows.Forms.MouseEventArgs e) [0x00000] 
  at System.Windows.Forms.Control.OnMouseDown
(System.Windows.Forms.MouseEventArgs e) [0x00000] 
  at System.Windows.Forms.Control.WmLButtonDown
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.TextBoxBase.WndProc (System.Windows.Forms.Message&
m) [0x00000] 
  at System.Windows.Forms.TextBox.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00000]

how to avoid this?

Taras Senyk

-- 
View this message in context: http://www.nabble.com/Problem-with-TextBox-tp24565910p24565910.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.



More information about the Mono-winforms-list mailing list