[Mono-list] OnAutoSizeChanged(EventArgs) missing?
Jonathan Pobst
monkey at jpobst.com
Fri Mar 30 09:14:38 EDT 2007
That method should be available as of mono 1.2.3. If you are using an
earlier version, please upgrade to at least that, if not a copy from
SVN. Winforms 2.0 is under heavy development and new methods are
implemented every week.
Good luck!
Jon
damoun.h. wrote:
> I've been trying to get third party components working with mono and i was
> able to get a very simple program that just loaded the component to execute
> correctly.
>
> However when I tried running a more advanced program that uses a few more
> features from the component I get the following error about
> System.Windows.Forms.Control::OnAutoSizeChanged(EventArgs) missing
>
> Can anyone please help me out?
>
> The runtime error:
>
> admin at linux-sky:~/Desktop/RichCellEditor/bin/Debug> mono *.exe
>
> ** (Xceed.Grid.Samples.RichCellEditors.exe:4125): WARNING **: Missing method
> System.Windows.Forms.Control::OnAutoSizeChanged(EventArgs) in assembly
> /usr/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll,
> referenced in assembly
> /home/admin/Desktop/RichCellEditor/bin/Debug/Xceed.Editors.dll
>
> Unhandled Exception: System.MissingMethodException: Method not found:
> 'System.Windows.Forms.Control.OnAutoSizeChanged'.
> at <0x00000> <unknown method>
> at System.Windows.Forms.TextBoxBase.set_AutoSize (Boolean value) [0x00000]
> at Xceed.Editors.TextBoxArea.set_AutoSize (Boolean value) [0x00000]
> at Xceed.Editors.TextBoxArea..ctor () [0x00000]
> at (wrapper remoting-invoke-with-check) Xceed.Editors.TextBoxArea:.ctor ()
> at Xceed.Editors.WinTextBoxBase.CreateTextBoxArea () [0x00000]
> at Xceed.Editors.WinTextBoxBase.InitializeTextBoxArea () [0x00000]
> at Xceed.Editors.WinTextBoxBase.DefaultInitialize () [0x00000]
> at Xceed.Editors.WinTextBoxBase..ctor (System.Type callerType) [0x00000]
> at Xceed.Editors.WinTextBox..ctor (System.Type callerType,
> EnhancedBorderStyle borderStyle) [0x00000]
> at (wrapper remoting-invoke-with-check) Xceed.Editors.WinTextBox:.ctor
> (System.Type,Xceed.Editors.EnhancedBorderStyle)
> at Xceed.Grid.Editors.TextEditor..ctor () [0x00000]
> at Xceed.Grid.Samples.RichCellEditors.CreateTextBoxes () [0x00000]
> at Xceed.Grid.Samples.RichCellEditors.CreateGridData () [0x00000]
> at Xceed.Grid.Samples.RichCellEditors.InitializeGrid () [0x00000]
> at Xceed.Grid.Samples.RichCellEditors.RichCellEditors_Load (System.Object
> sender, System.EventArgs e) [0x00000]
> at (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_object_EventArgs
> (object,System.EventArgs)
> at System.Windows.Forms.UserControl.OnLoad (System.EventArgs e) [0x00000]
> at System.Windows.Forms.UserControl.OnCreateControl () [0x00000]
> at System.Windows.Forms.Control.CreateControl () [0x00000]
> at (wrapper remoting-invoke-with-check)
> System.Windows.Forms.Control:CreateControl ()
> at System.Windows.Forms.Control.CreateControl () [0x00000]
> at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00000]
> at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000]
> at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000]
> at (wrapper remoting-invoke-with-check)
> System.Windows.Forms.Control:set_Visible (bool)
> at System.Windows.Forms.Application.RunLoop (Boolean Modal,
> System.Windows.Forms.ApplicationContext context) [0x00000]
> at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
> mainForm) [0x00000]
> at Xceed.Grid.Samples.DemoStarter.StartDemo () [0x00000]
> at Xceed.Grid.Samples.MainEntry.Main () [0x00000]
>
>
> Thanks,
> Damoun.H.
More information about the Mono-list
mailing list