[Mono-bugs] [Bug 334409] Keyboard: latin chr doesn't work in a winform textbox

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 19 08:27:04 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=334409#c11





--- Comment #11 from Andy Hume <andyhume32 at yahoo.co.uk>  2007-10-19 06:27:03 MST ---
Zorks for ,e. :-) Woops, french keyboard layout: Works for me.

Can I suggest that you download the Suse VM image from
http://mono-project.com/Downloads and check that it works as you expect there. 
Then compare the settings between the two Linux installations.


Here a little diagnostic sample and my results:
[[
using System.Windows.Forms;
using System.Drawing;

class TextBoxForm : Form
{
        static void Main()
        {
                Application.Run(new TextBoxForm());
        }

        TextBoxForm()
        {
                this.Text = "TextBoxForm";
                // Display the count of chars in the textbox
                TextBox tbCount = new TextBox();
                tbCount.ReadOnly = true;
                tbCount.TabIndex = 1;
                tbCount.Font = new Font(tbCount.Font.FontFamily, 14f);
                tbCount.Dock = DockStyle.Top;
                this.Controls.Add(tbCount);
                // *The* textbox:
                TextBox tb = new TextBox();
                tb.TabIndex = 0;
                tb.Font = new Font(tb.Font.FontFamily, 14f);
                tb.Dock = DockStyle.Top;
                tb.TextChanged += delegate {
                        tbCount.Text = tb.Text.Length.ToString();
                };
                this.Controls.Add(tb);
                //
        }
}
]]

1. Compile with: gmcs /pkg:dotnet TextBoxForm.cs
2. Run with: mono TextBoxForm.exe
3. With French keyboard layout (selected in 'control centre' etc), type every
key on the top line. See:
²&é"'(-è_çà)=
count=13
Screenshot attached.
4. Same but with Shift held-down. See:
~1234567890°+
count=13

What are your results when you run step 3?  What count do you get?


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list