PC Review


Reply
Thread Tools Rate Thread

BGW and creating mdi child

 
 
mero
Guest
Posts: n/a
 
      20th Jul 2009
Hello, i have problem ... I create simple thread and want to create
mdi child, but i have error that this method is not thread-safe. So i
change simple thread to background worker - but now when I create mdi
child by BGW, child window is white and it hang up whole aplication.
What can I do wrong ?

Code:
public void create_children(MDIParent m, string s)
{
formChild.MdiParent = m;
formChild.Text = s;
formChild.Visible = true;
formChild.Show();
}
Also i can add that create children is called when i get message from
net - and geting messages is in while loop ( while isconnected ) -
maybe this is not good for creating mdi child ?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: DNS issues after creating a child Zone Ace Fekay [MVP] Microsoft Windows 2000 DNS 5 26th Jul 2005 09:35 AM
Problems Creating New Child Domain Will Microsoft Windows 2000 Active Directory 4 24th Jul 2005 04:33 AM
Creating child forms? jay Microsoft C# .NET 3 11th Jul 2004 09:26 PM
Creating Child Domain Cahya Microsoft Windows 2000 Active Directory 2 2nd Mar 2004 09:39 PM
Creating Child Records fh721@aol.com Microsoft Access Forms 4 29th Oct 2003 12:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:24 AM.