Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Stop form load and hide loop


Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2003, 06:01 AM
Jelmer Jelmer is offline
Junior Contributor
 
Join Date: Feb 2003
Posts: 228
Default Stop form load and hide loop


You press a button results --> results.show

' The results of the program are showed on the screen.

But first the form results shows a other form which does som calculation for the results.

But there is some loop in the showing of the forms, if the second form hide's the first form does show the other form again because in the results form is placed:

Code:
form_activate() form_load end sub ' needed for up to date values

Is it possible to build it so that if the second form only is getting loaded/showed when it is more than 30 seconds later the form was showed before ?

Greetz,

Jelmer
Reply With Quote
  #2  
Old 05-19-2003, 06:11 AM
Robse's Avatar
Robse Robse is offline
Senior Contributor

* Expert *
 
Join Date: Sep 2002
Location: Karlsruhe, Germany
Posts: 1,319
Default

Use a timer with an interval set to 30000, and a boolean variable
to check whether the 30 second have elapsed:

Code:
Private bAllow As Boolean Private Sub Timer1_Timer() bAllow = True End Sub Private Sub Command1_Click() If bAllow Then bAllow = False Form2.Show Else MsgBox "Please wait 30 seconds between opening the form" End If End Sub
´
Just an idea...
__________________
Posting Guidelines MSDN-VB API List Use [vb]...[/vb] tags for code!
Reply With Quote
  #3  
Old 05-19-2003, 08:24 AM
Jelmer Jelmer is offline
Junior Contributor
 
Join Date: Feb 2003
Posts: 228
Default

Thnx
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form loading and unloading CookieMonster24 General 3 04-16-2003 07:52 PM
Form Load Problem Totono General 2 11-12-2001 07:54 AM
HOW DO YOU MAKE A PROGRAM GO TO DIFFERENT FORMS Bunkey23 General 6 11-07-2000 10:16 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->