Changing Cursor of Button

ICeMaN_179

Newcomer
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:

Visual Basic:
ButGo.enabled = False
TXTInVal.enabled = False

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 ?
 
Visual Basic:
Button1.Cursor = Cursors.No

Note that this won't work if the button is disabled. I don't think Windows permits setting custom cursors on disabled windows.
 
I don't think you'd want to change the cursor for those buttons anyway. As long as they look disabled, that should alert the user that they can't be selected.

-Nerseus
 
Back
Top