Are you minimizing your application when you display the loading dialog?
Another option would be to utilize a status bar on your main dialog and
update it from the loading threading using a delegate.

...Glenn
On Wed, Oct 15, 2008 at 8:16 AM, LeandroAB <[EMAIL PROTECTED]> wrote:

>
> Hi everyone,
>
> I´m programming an application win forms and in some parts of my
> application I have a strong processing module, and I´ve decided do
> make a loading screen.
>
> So, i´ve done it:
>
>
>      Private Sub ShowLoading()
>        Dim frmBlank As New frmBlank
>        frmBlank.Cursor = Cursors.WaitCursor
>        frmBlank.Show()
>        Dim frmLoading As New frmLoading
>        frmLoading.ShowDialog()
>      End Sub
>
>      Private Sub StartLoadingThread()
>        thread = New Threading.Thread(AddressOf ShowLoading)
>        thread.Start()
>      End Sub
>
>      Private Sub StopLoadingThread()
>        thread.Abort()
>      End Sub
>
>
>
> But, the problems appear, when i abort the thread, the loading form
> closes, as it have to close, but the whole application minimizes.
>
> I´m using the form in a Class Library, and it start maximized. THe
> whole think works as it have to work perfectly, but the problem is the
> application minimize.
>
> Thanks everyone!
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment

You may subscribe to group Feeds using a RSS Feed Reader to stay upto date 
using following url  

<a href="http://feeds.feedburner.com/DotNetDevelopment";> 
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---

Reply via email to