Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control names show on runnning form.
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00462875
Message ID:
00462999
Vues:
9
>In foxpro, at design time, the control name of a textbox or editbox
>shows in the control. Then at runtime the control is blank. This is great!
>However in vb, the control name at design time also shows at run time.
>This is because the name shown at design time is the characters in the
>"text" property. So I have to remove all of them, and then the form
>is harder to work with at design time because the names are missing.
>I can also set the control "text" property to blank at run time but
>this requires additional code. Is there something that I'm missing
>that would make this work like vfp?

This is the way VB is done.

One way to change it should be to add this to your form_load event:
Private Sub Form_Load()
Dim x As Control

    For Each x In Me.Controls
        If TypeName(x) = "TextBox" Then x.Text = ""
    Next
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform