[Mono-winforms-list] Patch for bugs 76857 and 76788

Jonathan S. Chambers Jonathan.Chambers at ansys.com
Sun Jan 8 11:35:18 EST 2006


Someone please approve (and close bugs if acceptable).

Thanks,
Jonathan

-----Original Message-----
From:	mono-winforms-list-bounces at lists.ximian.com on behalf of NEMO777 (sent by Nabble.com)
Sent:	Fri 12/23/2005 10:14 AM
To:	mono-winforms-list at lists.ximian.com
Cc:	
Subject:	[Mono-winforms-list] TextBox error


hi

i'm trying to run this:

using System;
using System.Drawing;
using System.Windows.Forms;

public class Form1 : Form
{
 TextBox textBox1 = new TextBox();

 public Form1()
 {
  textBox1.Location = new Point(176, 48);
  textBox1.Name = "textBox1";
  textBox1.Size = new Size(112, 20);
  textBox1.Text = "";

  Controls.Add(textBox1);
 }

 static void Main() 
 {
  Application.Run(new Form1());
 }
}


"mcs /r:System.Windows.Forms /r:System.Drawing x.cs" runs clean, but when I try to run the exe i get this:

Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 14:35:24]
Keyboard: United States keyboard layout (phantom key version)
Gtk colorscheme read

Unhandled Exception: System.ArgumentException: '0' is not a valid value for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'
in <0x000a7> System.Windows.Forms.ScrollBar:SetValue (Int32 value)
in <0x00146> System.Windows.Forms.ScrollBar:UpdatePos (Int32 newPos, Boolean update_thumbpos)
in <0x00057> System.Windows.Forms.ScrollBar:set_Maximum (Int32 value)
in (wrapper remoting-invoke-with-check) System.Windows.Forms.ScrollBar:set_Maximum (int)
in <0x001f1> System.Windows.Forms.TextBoxBase:CalculateScrollBars ()
in <0x0000a> System.Windows.Forms.TextBoxBase:document_HeightChanged (System.Object sender, System.EventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x00350> System.Windows.Forms.Document:RecalculateDocument (System.Drawing.Graphics g, Int32 start, Int32 end, Boolean optimize)
in <0x00017> System.Windows.Forms.Document:RecalculateDocument (System.Drawing.Graphics g)
in <0x00026> System.Windows.Forms.Document:owner_HandleCreated (System.Object sender, System.EventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x00023> System.Windows.Forms.Control:OnHandleCreated (System.EventArgs e)
in <0x0000d> System.Windows.Forms.TextBoxBase:OnHandleCreated (System.EventArgs e)
in <0x0000d> System.Windows.Forms.TextBox:OnHandleCreated (System.EventArgs e)
in <0x000e4> System.Windows.Forms.Control:CreateHandle ()
in <0x0000a> System.Windows.Forms.TextBoxBase:CreateHandle ()
in <0x00029> System.Windows.Forms.Control:CreateControl ()
in <0x0007b> System.Windows.Forms.Control:OnVisibleChanged (System.EventArgs e)
in <0x00182> System.Windows.Forms.Control:ChangeParent (System.Windows.Forms.Control new_parent)
in (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:ChangeParent (System.Windows.Forms.Control)
in <0x001a9> System.Windows.Forms.Control+ControlCollection:Add (System.Windows.Forms.Control value)
in <0x000fd> Form1:.ctor ()
in (wrapper remoting-invoke-with-check) Form1:.ctor ()
in <0x00018> Form1:Main ()

I use mono-1.1.12.1 and libgdiplus-1.1.11 and Gentoo Linux.
i'm new here and can some one just tell mi why this happens, is it because i've got something wrong or is it a bug... or just MWF isn't working yet with TextBox's

Bye
--
Sent from the Mono - WinForms forum at Nabble.com:
http://www.nabble.com/TextBox-error-t797793.html#a2076284





-------------- next part --------------
A non-text attachment was scrubbed...
Name: ComboBox.diff
Type: application/octet-stream
Size: 1651 bytes
Desc: ComboBox.diff
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20060108/82f16351/ComboBox.obj


More information about the Mono-winforms-list mailing list