471,851 Members | 999 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,851 software developers and data experts.

Form show question

I want to have a form named 'frmUpdating' that pops up on a clients
screen while a loop is cycling and disapears when the loop ends.

The 'frmUpdating' form has a real cool animation on it and it starts
running immediately after it is shown. It loops indefinately.

What I want to be able to do is have this form show up on the first
cycle of the loop and then exit after the loop exits.

How should I tackle this problem?
Nov 21 '05 #1
5 2459
before the 'for' statement - show the form
and
after the 'next' statement - unload the form

"Peter" <pe***@mclinn.com> wrote in message
news:dc**************************@posting.google.c om...
I want to have a form named 'frmUpdating' that pops up on a clients
screen while a loop is cycling and disapears when the loop ends.

The 'frmUpdating' form has a real cool animation on it and it starts
running immediately after it is shown. It loops indefinately.

What I want to be able to do is have this form show up on the first
cycle of the loop and then exit after the loop exits.

How should I tackle this problem?

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.752 / Virus Database: 503 - Release Date: 9/3/2004
Nov 21 '05 #2
VJ
Peter... Might not be as simple as just show and hide... Please check into
threading, to show animation on the popup form.

see this topic of disscussion...

"Form communication run time..." on 8/31/2004

VJ

"Peter" <pe***@mclinn.com> wrote in message
news:dc**************************@posting.google.c om...
I want to have a form named 'frmUpdating' that pops up on a clients
screen while a loop is cycling and disapears when the loop ends.

The 'frmUpdating' form has a real cool animation on it and it starts
running immediately after it is shown. It loops indefinately.

What I want to be able to do is have this form show up on the first
cycle of the loop and then exit after the loop exits.

How should I tackle this problem?

Nov 21 '05 #3
When I use this code I recieve the following error:
It is invalid to start a second message loop on a single thread. Use
Application.RunDialog or Form.ShowDialog instead.

Is there a way around this?
Nov 21 '05 #4
Alright, I have read the info on thread pool and want to see if I got this right.

I could create a Proceedure Named RunGif().
In this proceedure setup my looping animation.

So from my main thread Public Sub Main()
I would call on this proceedure RunGif() like this..."

threadpool.queUserWorkitem(new waitcallback(addressof RubnGif)

Is it possible then to kill this thread manually?
Nov 21 '05 #5
* pe***@mclinn.com (Peter) scripsit:
When I use this code I recieve the following error:
It is invalid to start a second message loop on a single thread. Use
Application.RunDialog or Form.ShowDialog instead.


Are you attempting to call 'Application.Run(...)' more than once? Like
the message above says, you can only call this method once. After doing
that, you can instantiate forms and call their 'Show' or 'ShowDialog'
methods.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by dp | last post: by
4 posts views Thread by Tonya | last post: by
4 posts views Thread by Marc | last post: by
10 posts views Thread by DFS | last post: by
5 posts views Thread by smhaig | last post: by
2 posts views Thread by Totti | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.