473,378 Members | 1,510 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,378 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 2490
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.