Re: Can't get form controls to show

Stifu <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
This sounds like a bug.

What you're doing is supposed to work, according to this:
http://mono-project.com/FAQ:_Winforms#My_multithreaded_application_crashes_or_locks_up

Feel free to file a bug report with a test case.


Steve Ricketts wrote:
> 
> 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; });
> 
> 
> But that doesn't work either.  What am I doing wrong?
> 
> sr
> 

-- 
View this message in context: http://n4.nabble.com/Can-t-get-form-controls-to-show-tp2014166p2014203.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.