Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding TextBox to form property
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00761829
Message ID:
00762304
Views:
20
Cathi,

I added set and get to PortNumber and now it works. ???

Thanks again,
Dan

>Hi Dan,
>
>Now I understand your question. I reread your original question and I should have figured it out. Just change your syntax to the following:
>
>
>textBox1.DataBindings.Add(new Binding("text", this, "PortNumber"));
>
>
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform