Hi Bonnie
There is some sample code in the original message.//DEFINE class Address
If you just create a new form with a textbox and define the Address class as show.
Thanks
Gary
public class Address {
public String Street, City, State, Zip;
public int Amount;
}
public class WinForm : System.Windows.Forms.Form
{
///
/// Required designer variable.
///
//Create Class Address property
private System.Windows.Forms.TextBox tbStreet;
public string Street;
.
.
.
private void InitializeComponent()
{
//Initialize Address object
this.tbStreet = new System.Windows.Forms.TextBox();
this.oAddress = new Address();
this.tbStreet.DataBindings.Add("Text", oAddress,"Street");
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only