[Mono-list] Inheriting from System.Windows.Forms.TextBox

Jonathan Pobst monkey at jpobst.com
Thu Nov 20 00:05:16 EST 2008


I don't understand F#, but if you are trying to reference a method 
called ChangeBackColor on TextBoxBase, there is no such method.

Jonathan

Jon Harrop wrote:
> Following the thread about compatibility, I thought I'd test some code using 
> the F# distribution for Mono. I tried my Sudoku solver and found a problem 
> partway though.
> 
> Specifically, I can inherit from TextBox on .NET but not under Mono:
> 
>> #r "System.Windows.Forms.dll";;
> 
> --> Referenced '/usr/local/lib/mono/2.0/System.Windows.Forms.dll'
> 
>> type A() =
>     inherit System.Windows.Forms.TextBox();;
> 
>   type A() =
>   -----^^
> 
> stdin(5,6): error FS0191: No implementation was given 
> for 'TextBoxBase.ChangeBackColor(System.Drawing.Color backColor) : 
> System.Drawing.Color'.
> 
> Any ideas why?
> 



More information about the Mono-list mailing list