[Mono-winforms-list] child form sometimes does not appear on ShowDialog (about 30%)
tsai
tsai at pinnacle.com.tw
Thu May 7 05:05:27 EDT 2009
openSUSE 11.1, (mono -V svn version 2.5 r132544 2009/04/24)attached file Bug_ShowDialog.rar is vs2005 solution source file1.open openSUSE -> GNOME Terminal
2.cd /home/test/Desktop
3.mono Bug_ShowDialog.exe
4.click ChildForm button (sometimes ChildForm does not appear, program CRASH)
5.click ChildForm close button
1. parent form inherit from Form
private void button1_Click(object sender, EventArgs e)
{
ChildFm form = new ChildFm();
form.Owner = this;
form.Text = form.ClientSize.Width + ":" + form.ClientSize.Height +
form.StartPosition.ToString() +
form.Location.X + ":" + form.Location.Y +
form.ShowInTaskbar + ":" + form.TopMost;
form.ShowDialog(); // sometimes program CRASH
form.Dispose();
form = null;
}
2. bgForm inherit from Form
public bgForm()
{
InitializeComponent();
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
}
3. child form inherit from bgForm
public ChildFm()
{
InitializeComponent();
this.ControlBox = false;
this.FormBorderStyle = FormBorderStyle.None;
this.Location = new Point(200, 200);
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090507/62f59309/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bug_ShowDialog.rar
Type: application/octet-stream
Size: 21605 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090507/62f59309/attachment-0001.obj
More information about the Mono-winforms-list
mailing list