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=81804 --- shadow/81804 2007-06-04 14:37:46.000000000 -0400 +++ shadow/81804.tmp.14123 2007-06-04 14:37:46.000000000 -0400 @@ -0,0 +1,68 @@ +Bug#: 81804 +Product: Mono: Class Libraries +Version: 1.0 +OS: other +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: DataGridView Style.Format = "d" exits application + +To reproduce, + +run the code. + +Observed: + +application exits without any message + +using System; +using System.Windows.Forms; + +public class CalendarColumn : DataGridViewColumn { + public CalendarColumn() + : base(new CalendarCell()) { + } + + public class CalendarCell : DataGridViewTextBoxCell { + + public CalendarCell() + : base() { + // this line exits application: + this.Style.Format = "d"; + } + + public class Form1 : Form { + private DataGridView dataGridView1 = new DataGridView(); + + public static void Main() { + try { + Application.Run(new Form1()); + } + catch (Exception e) { + MessageBox.Show(e.ToString()); + } + } + + public Form1() { + //this.dataGridView1.Dock = DockStyle.Fill; + this.Controls.Add(this.dataGridView1); + this.Load += new EventHandler(Form1_Load); + //this.Text = "DataGridView calendar column demo"; + } + + private void Form1_Load(object sender, EventArgs e) { + CalendarColumn col = new CalendarColumn(); + this.dataGridView1.Columns.Add(col); + } + } + } +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
