T
Tom
Can someone please explain the non-working aspect of binding to Width?
See code below.
Thanks !!
-- Tom
===================================================
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
public class FormParent : Form
{
[STAThread]
public static void Main()
{
Application.EnableVisualStyles();
Application.Run(new FormParent());
}
FormParent()
{
Text = "The Parent Form";
Form FormChild = new Form();
FormChild.Text = "The Child Form";
FormChild.Show();
// The following works!!
FormChild.DataBindings.Add("Size", this, "Size");
// The following does NOT!
//FormChild.DataBindings.Add("Width", this, "Width");
}
}
See code below.
Thanks !!
-- Tom
===================================================
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
public class FormParent : Form
{
[STAThread]
public static void Main()
{
Application.EnableVisualStyles();
Application.Run(new FormParent());
}
FormParent()
{
Text = "The Parent Form";
Form FormChild = new Form();
FormChild.Text = "The Child Form";
FormChild.Show();
// The following works!!
FormChild.DataBindings.Add("Size", this, "Size");
// The following does NOT!
//FormChild.DataBindings.Add("Width", this, "Width");
}
}