Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding TextBox to form property
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00761829
Message ID:
00762149
Vues:
18
Cathi,

Thanks for answering. I don't think I made it clear what my intentions were. I want to bind the text box to a property of the form. No dataset is involved. I'm sure I've done this before (at least I think I have) but I can't find the code or remember how.

Thanks,
Dan

>Hi Dan,
>
>The syntax is the typically the following:
>
>
>textBox1.DataBindings.Add("Text",MyDataSet,"MyTable.PortNumber");
>
>
>>Can anyone help me with a problem of binding a textBox to a form property?
>>
>>I have:
>>
>>textBox1.Bindings.Add(new Binding("text", this, "PortNumber"));
>>
>>I does not seem to work. I've done it before but I can't remember how.
>>
>>Thanks,
>>Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform