View Single Post
  #1 (permalink)  
Old February 22nd, 2008, 10:24 AM
peterasimpson peterasimpson is offline
Authorized User
Join Date: Nov 2005
Location: , , United Kingdom.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default Show Form2, only then run Routine1

I was wondering how can I press Button1 in VB.NET 2005 and get my software to 1st show Form2 and then run Routine1, but only run Routone1 after Form2 is shown on the screen.

1. Show Form2
2. Run a Routine1.

The problem I'm having is that when I press Button1 it runs 1 & 2 but shows Form2 after it has finished processing Routine1.

Actually Form2 is an animated timer that says 'Please wait, processing your data'. Routine1 is 4 very complicated cross table SQL queries that takes about 9 seconds to complete.

I basically want to show Form2 then run Routine1 on one button press and not two button presses.

Any help would be greatful as it does not matter how much I try, Form2 only ever shows 9 seconds after I press Button1. 9 seconds is the amount of time it takes to process the SQL queries.

Thank you for any help in advance.
Simplicity is the key
Reply With Quote