PC Review


Reply
Thread Tools Rate Thread

c# BGW and create mdi child

 
 
mero
Guest
Posts: n/a
 
      19th 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
 
 
 
 
Chris Tacke, MVP
Guest
Posts: n/a
 
      20th Jul 2009
Windows CE doesn't support MDI anyway, so I have no idea how it would have
worked in the first place.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com

"mero" <(E-Mail Removed)> wrote in message
news:e894b13e-068a-4178-b8dd-(E-Mail Removed)...
> 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
how to create a MDI child form in VS3 michael fienstien Microsoft Dot NET 2 6th Oct 2006 01:55 AM
cannot create a child list Agnes Microsoft VB .NET 1 30th Jul 2004 02:43 PM
Can't Create Child List Phaneendra Microsoft Dot NET Compact Framework 1 14th Oct 2003 12:17 AM
trying to create a child domain BD Microsoft Windows 2000 Active Directory 0 12th Sep 2003 05:04 AM
Re: Can't create child domain Eric Burke [MSFT] Microsoft Windows 2000 Active Directory 0 8th Aug 2003 06:13 PM


Features
 

Advertising
 

Newsgroups
 


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