Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I want -write protected checkbox, -refresh the datagrid
Message
 
À
12/11/1999 22:51:04
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00290859
Message ID:
00290895
Vues:
27
> I use VB 6.0, how to I write protect the checkbox?
>the checkbox have no locked property, is it?
>if set the enabled to false, can I change the disable color?

The easiest way is to place your check box inside a frame (that you can make borderless) and then set the Frame's Enabled property to false.

>another question, I use a datagrid on the form, and a set of text box.
>when the user select a record on datagrid, the textboxes show the record too. I allow the user edit the record on the textboxes only, not on the datagrid.
>How I code? so that when user typing on the textboxes, the datagrid reflect the changed immediately.
>Eg. -User type "abc", datagrid display "abc"
> -User press one more key so that "abcd", datagrid display "abcd" at once.
One way is to update your recordset on every keypress (maybe in the Change event) but it is very time consuming and what about if the users want to cancel his operation?
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform