Re: Databinding panel.Height
Alan Baljeu <[email protected]> Thu, 18 Oct 2007 10:16:51 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <0de301c81191$8707bae0$1dc80ac6@CTI> |
For a minute, I thought "That explains it!". But it doesn't :-{
The sequence is
1. I resize the form
2. The form resizes the docked panel.
3. The Databinding doesn't trigger, and psm.Height doesn't get assigned.
You are right that the converse action would not work on a docked control.
Alan
> -----Original Message-----
> Alan
>
> It probably because you are using full docking - so your
> panel will resize to the form's size regardless of its own
> Height and Width settings.
>
> Cheers
> Simon
>
> -----Original Message-----
> On Behalf Of Alan Baljeu
>
> I created a Mypanel object and docked it full to a form.
> Within class Mypanel the following code is called before the
> form is shown.
>
> this.DataBindings.Add("Height", psm, "Height");
> this.DataBindings.Add("Width", psm, "Width");
>
> Shouldn't this result in psm.Height property changing
> whenever I resize the form by dragging with my mouse? It
> doesn't, and I have no idea what's at fault. Maybe these
> properties don't support databinding events?
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com