Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Form Binding

  1. #1

    Thread Starter
    Addicted Member Daystar's Avatar
    Join Date
    Dec 2006
    Location
    Pahrump, NV
    Posts
    132

    Resolved [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?

  2. #2
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    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.

  3. #3

    Thread Starter
    Addicted Member Daystar's Avatar
    Join Date
    Dec 2006
    Location
    Pahrump, NV
    Posts
    132

    Re: [2005] Form Binding

    Quote 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:
    1. 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
  •  



Click Here to Expand Forum to Full Width