Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Six states custom command buttons
Message
De
20/04/2002 09:23:10
 
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00647185
Message ID:
00647199
Vues:
16
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?...

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform