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

Jon Harrop jon at ffconsultancy.com
Wed Nov 19 20:36:52 EST 2008


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?

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e


More information about the Mono-list mailing list