473,394 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 2493
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dp | last post by:
I am new to VB.NET and I have a simple question. How do I show a form from a command button click event? The code I have below is not working. I am trying to show the form frmAgent. What am I...
4
by: Tonya | last post by:
Hi, Does anyone have any example of how i can manage forms in my application?? I want to be able to reference my form instances that are currently open from other forms. why cant i open...
4
by: Marc | last post by:
When I add controls to a form and run the .exe under Win XP, the outline of the form displays first and then the controls on the form. The .exe works fine but the initial show looks like the...
5
by: me | last post by:
I have a Class Library that contains a Form and several helper classes. A thread gets created that performs processing of data behind the scenes and the Form never gets displayed (it is for debug...
10
by: DFS | last post by:
I'm sure this has been discussed before, but I'm too tired to hunt for it. I have a survey table containing questions with different answer scales. Some are 1 to 5, others are A,B,C, etc. I show...
8
by: CJack | last post by:
hy, I have an mdi application, i create a child form and I want to know when a button is pressed while that child form is loaded. I have this code: private void frmTestBaby_KeyUp(object sender,...
3
by: Kimelia | last post by:
I want to create something like wizard, which will ask one question and proceed to the next question. So, it's like showing Form A (Question 1), then when the user press "Next" button, I want to...
4
by: Miguel Dias Moura | last post by:
Hello, i created an ASP.net / VB page with a really big form. Now i want to create 4 pages and in each one i will place 1/4 of the big form. The last page will send all the form values by...
5
by: smhaig | last post by:
In a vb 6 app in the activate event I was able to do some testing and if something failed, I was able to exit the form and return to the caller form. I have tried everything and searched web but...
2
by: Totti | last post by:
Hi everybody, VB.6 - I am working on a project that is actually a college application, this is the first time i use VB and i am using VB-6 some of the reader who tried to help me in the past told...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.