http://bugzilla.novell.com/show_bug.cgi?id=597582
http://bugzilla.novell.com/show_bug.cgi?id=597582#c0 Summary: Cannot make form controls visible via invoke Classification: Mono Product: Mono: Class Libraries Version: 2.6.x Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Critical Priority: P5 - None Component: Windows.Forms AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: Customer Blocker: --- I want to make certain controls visible on a form after certain events have happened. I use BackgroundWorker to avoid the treading issues but the controls never appear on the form. I set a breakpoint on setLogonValues and it does break and each of lines in that function are executed, but they never show on the form. This works in Windows but not in Linux. ..... BackgroundWorker bw = new BackgroundWorker (); bw.RunWorkerCompleted += setLogonValues; bw.RunWorkerAsync (); } private void setLogonValues (object sender, RunWorkerCompletedEventArgs e) { labLogOn.Visible = true; txtStudentID.Visible = true; btnLogOn.Visible = true; labStatus.Text = ""; txtStudentID.Text = ""; txtStudentID.Focus (); } I've also tried: txtStudentID.Invoke ((MethodInvoker)delegate { txtStudentID.Visible = true; }); Finally, I've also tried forgetting the invoke or BackgroundWorker and just setting txtStudentID.Visible = true; I didn't get an error but the textbox control didn't show either. But that doesn't work either. I posted this on the Mono forum and it was suggested that I report as bug. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
