Changing Cursor of Button

ICeMaN_179

Member
Joined
Oct 18, 2002
Messages
7
Location
UK
I have made a program that is a simple game, where the user has 3 tries to guess a randomly generated number between 1 and 10, once all 3 tries have been used it displays THE END and sets:

[VB]
ButGo.enabled = False
TXTInVal.enabled = False
[/code]

once these are set i want the cursor for those objects to change to the block cursor (circle with a line through it),

how can this be done ?
 
Code:
Button1.Cursor = Cursors.No

Note that this wont work if the button is disabled. I dont think Windows permits setting custom cursors on disabled windows.
 
I dont think youd want to change the cursor for those buttons anyway. As long as they look disabled, that should alert the user that they cant be selected.

-Nerseus
 
Back
Top