• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1285
  • Last Modified:

HourGlass in VB .NET

Hello experts,

does somebody can explain to me how I could change MousePointer at VB.NET run time like in VB6

MousePointer=...

Thanks!
0
svemir
Asked:
svemir
  • 5
  • 4
  • 2
1 Solution
 
Brian CroweCommented:
me.cursor = cursors.waitcursor
0
 
cyberdevil67Commented:
as BriCrowe as stated.
0
 
svemirAuthor Commented:
But it sets cursor for selected control. I need it for whole application.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
cyberdevil67Commented:
Actual it depends on where you place the code.

If you want it for the entire application, under what circumstances do you set it.

me is the current object your in, so if you need to set the cursor in the main MDI form then place the code there.
0
 
svemirAuthor Commented:
OK, I think it works. What else could I do to prevent user input at the same time?
0
 
cyberdevil67Commented:
Pretty much that but it also depnds on your application, Multi form, MDI etc.

One form loading another, the possibilities are endless.
0
 
svemirAuthor Commented:
OK,
how bad is Me.Enabled = False ? because I usually use that.
0
 
cyberdevil67Commented:
That only enables or disables controls.

Like I said it depends on what your trying to do, and what your application consists off.
0
 
svemirAuthor Commented:
Let me explain,

I have multiple Forms under one MDIForm. Each Form contain some Inputs which triger different mathematical calculations. Some of them are stored in different DLLs written during the past 30 years. Also some of them performs Iterations which could be time consuming (e.g. more than 10 seconds). If user raise event which another input before previous action finish final result will be invalid.

That is what I want to prevent.
0
 
cyberdevil67Commented:
Then your best bet is to show the form as a Dialog and it will wait until the Ok or Cancel is returned, but in the form you will also need to set this in the properties to be returned.
0
 
Brian CroweCommented:
LMAO
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 5
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now