Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=79066 --- shadow/79066 2006-08-14 20:13:18.000000000 -0400 +++ shadow/79066.tmp.25182 2006-08-15 03:35:42.000000000 -0400 @@ -26,6 +26,39 @@ the Items property. The first element's text (in the UI) should change from "Previous value" to "New value". Modifying the element _before_ creating the handle appears to work correctly. Also, other methods related to member access (Add, Insert) work just fine. + +------- Additional Comments From [EMAIL PROTECTED] 2006-08-15 03:35 ------- +// Sample code +using System.Windows.Forms; +using System.Drawing; + +public class TestForm : Form +{ + static void Main () + { + Application.Run (new TestForm ()); + } + + public TestForm () + { + ComboBox cb = new ComboBox (); + cb.Location = new Point (5, 5); + cb.Items.Add ("Previous value"); + cb.SelectedIndex = 0; + cb.Parent = this; + + Button button = new Button (); + button.Location = new Point (5, 50); + button.Size = new Size (90, 30); + button.Text = "Modify element"; + button.Parent = this; + button.Click += delegate + { + cb.Items [0] = "New value"; // Modify the first element + }; + } +} + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
