[Mono-winforms-list] GetPositionFromCharIndex
Jonathan Pobst
monkey at jpobst.com
Thu May 10 16:22:28 EDT 2007
That method has not been implemented yet. You will either have to code
around it, implement the method in Mono yourself, or wait for it to be
implemented.
I would suggest running MoMA on your app. It will tell you exactly
which methods you may be using that have not been implemented yet in
Mono, as this may not be the only one.
http://www.mono-project.com/MoMA
Good luck!
Jon
monkeyx wrote:
> I am having some problems getting GetPositionFromCharIndex to work on Mono
> 1.2.3 and libgdiplus 1.2.3
> Tested issue on Ubuntu 7.04 and Suse 10.2 using even built sources on Centos
> 5 all give same error.
>
> I have shown code and crash error below, has anyone else seen this error or
> advise me on how I can help fix it!
>
> if (e.KeyCode == Keys.OemPeriod && e.Shift == true)
>
> {
>
>
>
> index = richTextBox1.SelectionStart;
>
> // This line appears to be causing crash
>
> pt = richTextBox1.GetPositionFromCharIndex(index);
>
> pt.X += richTextBox1.Location.X;
>
> pt.Y += richTextBox1.Location.Y;
>
>
>
> lstboxEdit.Location = pt;
>
>
>
> lstboxEdit.Visible = true;
>
> }
>
> This is summary of crash error
> ** (lpOED.exe:6904): WARNING **: Missing method
> System.Windows.Forms.TextBoxBase::GetPositionFromCharIndex(int) in assembly
> /usr/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll,
> referenced in assembly /media/MightyDrive/lpOED.exe
> System.MissingMethodException: Method not found:
> 'System.Windows.Forms.TextBoxBase.GetPositionFromCharIndex'.
> at <0x00000> <unknown method>
More information about the Mono-winforms-list
mailing list