Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27199

Form Freezez While it Loads, How to Create A BG Worker/Splash Screen While Waiting?

$
0
0
My Project is a Web Scrapper that uses httpwebrequest and requires users to Login first and right after the user is logged in it will start the scrapping process. But the problem is that as soon as I click on the LOGIN button it will stop from there and simply freeze untill the scarpping is done. I think thats very normal. I have used many methods out there from BG Workers and Timers, but I havnt managed to get the correct answer yet. Right now I am using a simple "DoEvents Method" with a Label and a Loading Cursor:

Code:

Label33.Text = "Loading, Please Wait..."
Me.Cursor = Cursors.WaitCursor
Application.DoEvents()

I was wondering if there is a better way to create a BG Worker or use another form as Splash Screen that could show up "without FREEZING" and simply show a Loading Process while my MAIN form is loading and until it is finished loading.?

I really hope I could get a solution for this. Thanks a lot in advance

Viewing all articles
Browse latest Browse all 27199

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>