I tried create each form on a Thread, but the form doesn´t show up when I call 
t.start()..... any ideas ?




________________________________
From: Theraot <[email protected]>
To: "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" <[email protected]>
Sent: Tue, May 18, 2010 4:12:58 AM
Subject: [DotNetDevelopment] Re: Form1 blocking florm2 on C#

Hi,

You got a case there...
Try using this: 
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.suspendlayout.aspx
and this 
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.resumelayout.aspx

By the way... if this is so critical... why to creating each form on a
thread? You know only the thread that creates a form or a control can
modify it, and the you (as most do) create them on the same thread, of
course they will interfere... but the idea is that GUI operations to
be as inexpensive as possible.

Theraot.

On 17 mayo, 14:57, Renato <[email protected]> wrote:
> Hi, I am with a problem in my code.
> I have two forms, form1 and form2, form 2 has a datagridview that every 13 
> seconds, it is atualized by sql
> server information. My class for a search on sql server is executed in a 
> thread, but even so, when the form2 is updating, the form1 stays
> blocked and I can´t put some informations on form1 window, someone know what 
> can I do for the form2 do not interfere on
> form1 ?
>
> Thanks,
> Renato



      

Reply via email to