I'm so lost. This has to be the 20th attempt at writing this
posting.
* I have a form with various controls.
* I have an object with associated properties
(accessible with get/set type of interface).
* I'd like to have the controls manipulate the
properties of the object.
Is there a way to avoid manually coding event handlers for each
of control on the form to do this?
In order to modify the (DataBindings)/Text property of say, a
textBox in the form design view I have to add data source to my
solution. Doing so gives me an option to select an 'object' as
the data source, but then I'm given only a selection of class
definitions.
How am I supposed to do this? What should I be Googling to give
me an inkling of clue?
- Jamie
Hi,
> I'm so lost. This has to be the 20th attempt at writing this posting.
>
[quoted text clipped - 11 lines]
> gives me an option to select an 'object' as the data source, but then I'm
> given only a selection of class definitions.
So use the class DataSource to setup the bindings with the Designer. Note
that it will also put a BindingSource on the Form, then at runtime do:
YourBindingSource.DataSource = yourObject;
HTH,
Greetings
> How am I supposed to do this? What should I be Googling to give me an
> inkling of clue?
>
> - Jamie
Jamie Risk - 27 Oct 2006 14:55 GMT
This was what I was exactly what I needed. A thousand thanks.
- Jamie
p.s. Now I've got my answer, I'm going to try and figure out
where I missed it in the documentation.
>> I'm so lost. This has to be the 20th attempt at writing this posting.
>>
[quoted text clipped - 19 lines]
> HTH,
> Greetings
Otis Mukinfus - 28 Oct 2006 18:44 GMT
>This was what I was exactly what I needed. A thousand thanks.
>
[quoted text clipped - 26 lines]
>> HTH,
>> Greetings
If you want the bound objects to be editable they will need to use the IEditable
and INotifyPropertyChanged interfaces. Check the help on those two
interfaces...
Good luck with your project,
Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Otis Mukinfus - 28 Oct 2006 18:49 GMT
>This was what I was exactly what I needed. A thousand thanks.
>
[quoted text clipped - 26 lines]
>> HTH,
>> Greetings
AW Shoot, Jamie!
I should have said IEditableOject in my previous post. I make that mistake all
the time ;o)
Good luck with your project,
Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com