Re: Databinding panel.Height
"Hewitt, Simon C. (Contractor)" <[email protected]> Thu, 18 Oct 2007 05:21:36 +0100
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <CF362B9DFA7D2544934516DFA1459AEC01FD7062@BP1XEUEX709-C.bp1.ad.bp.com> |
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=20 -----Original Message----- From: Discussion relating to the specifics of the C# and Managed C++ languages [mailto:[email protected]] On Behalf Of Alan Baljeu Sent: 17 October 2007 16:14 To: [email protected] Subject: [DOTNET-CX] Databinding panel.Height 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? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This list is hosted by DevelopMentor=AE http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com