|
-
Feb 6th, 2007, 05:50 PM
#1
Thread Starter
Addicted Member
[RESOLVED] [2005] Form Binding
Is it possible to bind a form's controls to a class? So if they change the form it updates the class data or vice versa?
-
Feb 6th, 2007, 06:45 PM
#2
Frenzied Member
Re: [2005] Form Binding
I'm not sure, but I think you can make a Form a property of a class, and if you use the form for that instance, any changes in that form could be used whichever way you want within that instance.
-
Feb 6th, 2007, 06:48 PM
#3
Thread Starter
Addicted Member
Re: [2005] Form Binding
 Originally Posted by benmartin101
I'm not sure, but I think you can make a Form a property of a class, and if you use the form for that instance, any changes in that form could be used whichever way you want within that instance.
That is an interesting idea. I will try that at a later date.
VB Code:
txtAddr1.DataBindings.Add("Text", myObject, "Client.ClientAddress.Addr1")
I think that should add the binding after the fact. But I keep getting an error at run time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|