Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Six states custom command buttons
Message
From
20/04/2002 09:23:10
 
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00647185
Message ID:
00647199
Views:
15
This message has been marked as the solution to the initial question of the thread.
First, one advice: post question only in one thread. This will allow us follow this thread and answer your questions much easy.

Put on your form CheckBox and change it style to Graphical. Use following properties:

Picture (picture in normal state);
Disabled picture (picture when CheckBox is disabled);
Down picture (picture when CheckBox is checked (in graphical style - when it's down)).

In your case, catch these mouse events:

MouseDown (user press some mouse button. You can discover button using button parameter);
MouseMove (user moves mouse over CheckBox);
MouseUp (user releases some mouse button).

In these events set described picture properties with needed pictures, using LoadPicture() function.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform