[Mono-dev] Winforms breakages under 1.2.3
Paul
paul at all-the-johnsons.co.uk
Sun Jan 28 18:58:45 EST 2007
Hi,
I have an application built under VS.NET which runs fine. The code is
supported happily in Mono (there is nothing in it which causes it to
bork on compiling)
I've hit the following problems
(Under both Linux and Win32)
Number 1 - password properties.
===============================
password properties on a text box are broken.
I have the following code
this.tb_password.Enabled = false;
// set up the name and position
this.tb_password.PasswordChar = (char)'*';
Under 1.2.2, this would result in the tb_password textbox having all *'s
inside, under 1.2.3, it's plain text.
Number 2. Resources problems
============================
Images set using global::progname.Properties.Resources.filename are not
being recognised under 1.2.3 - not sure if they are under 1.2.2 (not
tested this sort of code before). Works fine under VS.NET.
Number 3. AboutBox1 dialog - Linux only
=======================================
The HelpMenuAbout_Click event (raised from clicking on a menu item)
looks like this
private void HelpMenuAbout_Click(object s, EventArgs e)
{
AboutBox1 frm = new AboutBox1();
frm.Show(this);
}
Under VS.NET and Mono 1.2.3 (Win32), this works. Under Linux this gives
System.NullReferenceException: Object reference not set to an instance
of an object
at System.Windows.Forms.XplatUIX11.SetIcon (System.Windows.Forms.Hwnd
hwnd, System.Drawing.Icon icon) [0x00000]
at System.Windows.Forms.XplatUIX11.SetIcon (IntPtr handle,
System.Drawing.Icon icon) [0x00000]
at System.Windows.Forms.XplatUI.SetIcon (IntPtr handle,
System.Drawing.Icon icon) [0x00000]
at System.Windows.Forms.Form.set_ShowIcon (Boolean value) [0x00000]
at UMA.AboutBox1.InitializeComponent () [0x00000]
at UMA.AboutBox1..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) UMA.AboutBox1:.ctor ()
at UMA.UMA.HelpMenuAbout_Click (System.Object s, System.EventArgs e)
[0x00000]
at (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e)
[0x00000]
at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e)
[0x00000]
at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e,
ToolStripItemEventType met) [0x00000]
at (wrapper remoting-invoke-with-check)
System.Windows.Forms.ToolStripItem:FireEvent
(System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
at System.Windows.Forms.ToolStrip.OnMouseUp
(System.Windows.Forms.MouseEventArgs mea) [0x00000]
at System.Windows.Forms.ToolStripDropDown.OnMouseUp
(System.Windows.Forms.MouseEventArgs mea) [0x00000]
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&
m) [0x00000]
at System.Windows.Forms.ScrollableControl.WndProc
(System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.ToolStrip.WndProc
(System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.ToolStripDropDown.WndProc
(System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
IntPtr wParam, IntPtr lParam) [0x00000]
-=-=-
Personally, the resources problem is the biggest killer to date. I'm
happy to BZ these if needs be.
TTFN
Paul
--
"Mmmmmmmm....Shakira geschmiert mit schokolade" sagt Homer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070128/4f125062/attachment.bin
More information about the Mono-devel-list
mailing list