[Mono-list] EditBox.ForeColor
eschneider at schneidersoft.com
eschneider at schneidersoft.com
Tue Mar 3 18:23:38 EST 2009
Hello,
The EditBox.ForeColor get/set is called before the constructor?
I think it's because I shadow the ForeColor property...
This does not happen in windows?
Thanks,
Eric
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.NullReferenceException: Object
reference not set to an instance of an object
at SchneiderSoft.UIControls.EditBox.get_ForeColor () [0x00000]
at System.Windows.Forms.Document..ctor (System.Windows.Forms.TextBoxBase
owner) [0x000ab] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
\System.Windows.Forms\TextControl.cs:267
at System.Windows.Forms.TextBoxBase..ctor () [0x000a2] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
\System.Windows.Forms\TextBoxBase.cs:118
at System.Windows.Forms.TextBox..ctor () [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\build\common\Consts.cs:1
at SchneiderSoft.UIControls.EditBox..ctor () [0x00000]
at (wrapper remoting-invoke-with-check)
SchneiderSoft.UIControls.EditBox:.ctor ()
at SchneiderSoft.UIControls.FieldInput.CreateEditBox () [0x00000]
at SchneiderSoft.UIControls.FieldInput..ctor () [0x00000]
at (wrapper remoting-invoke-with-check)
SchneiderSoft.UIControls.FieldInput:.ctor ()
at TestApp.FormRuleTesting.InitializeComponent () [0x00000]
at (wrapper remoting-invoke-with-check)
TestApp.FormRuleTesting:InitializeComponent ()
at TestApp.FormRuleTesting..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) TestApp.FormRuleTesting:.ctor ()
at TestApp.MainButtons.ShowRules () [0x00000]
at (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00057] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\corlib\System.Reflect
ion\MonoMethod.cs:159
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00071] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\corlib\System.Reflect
ion\MonoMethod.cs:169
at System.Reflection.MethodBase.Invoke (System.Object obj,
System.Object[] parameters) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\corlib\System.Reflect
ion\MethodBase.cs:111
at SchneiderSoft.AbstractInterfaces.MethodInvoker.Invoke () [0x00000]
at SchneiderSoft.UIControls.Button.InternalRaiseCommandInitiate
(System.Object sender, IEventArgs e) [0x00000]
at TestApp.FormMain.ListButtons_SelectionCompleted (System.Object sender,
IEventArgs e) [0x00000]
at SchneiderSoft.UIControls.VisualList.OnSelectionCompleted () [0x00000]
at SchneiderSoft.UIControls.VisualList.CheckSelectionCompleted ()
[0x00000]
at (wrapper remoting-invoke-with-check)
SchneiderSoft.UIControls.VisualList:CheckSelectionCompleted ()
at SchneiderSoft.UIControls.VisualList.VisualList_MouseClick
(System.Object sender, System.Windows.Forms.MouseEventArgs e) [0x00000]
at (wrapper delegate-invoke)
System.Windows.Forms.MouseEventHandler:invoke_void__this___object_MouseEvent
Args (object,System.Windows.Forms.MouseEventArgs)
at System.Windows.Forms.Control.OnMouseClick
(System.Windows.Forms.MouseEventArgs e) [0x0001c] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
\System.Windows.Forms\Control.cs:6338
at System.Windows.Forms.Control.HandleClick (Int32 clicks,
System.Windows.Forms.MouseEventArgs me) [0x0005d] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
\System.Windows.Forms\Control.cs:1844
at System.Windows.Forms.Control.WmLButtonUp
(System.Windows.Forms.Message& m) [0x00074] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
\System.Windows.Forms\Control.cs:5594
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x0017c] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
\System.Windows.Forms\Control.cs:5332
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
\System.Windows.Forms\Control.cs:234
at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
\System.Windows.Forms\Control.cs:215
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
IntPtr wParam, IntPtr lParam) [0x00085] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\Managed.Windows.Forms
\System.Windows.Forms\NativeWindow.cs:242
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090303/05006643/attachment.html
More information about the Mono-list
mailing list