|
-
Jul 19th, 2023, 08:09 AM
#1
Thread Starter
Hyperactive Member
Should I use "Invoke" for this goal?
Hi. Due to running a bunch of try catches, wmi and Performance counters, A form load event will take a lot of time to be done. (Like a massive loop) I'm already using BackgroundWorker for other purposes but I assume that Form load event is better to take a tangible visual.
I only want to set Me.Cursor = Cursors.Wait or Me.UseWaitCursor = True . (By the way, What are the differences between these two? What should I use)
Then reset it to default only for user to understand the app is still responding and PC is not "hang". Unfortunately 2 mentioned ways were tried and no waiting cursors occurred. I read somewhere BeginInvoke (And EndInvoke) can make this happen, but how?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|