[Mono-bugs] [Bug 597582] New: Cannot make form controls visible via invoke
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Apr 17 11:46:15 EDT 2010
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: mono-bugs at lists.ximian.com
ReportedBy: velocedge at hotmail.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list