Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding Textbox to a Class Property
Message
 
To
01/06/2004 12:35:27
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00908931
Message ID:
00908959
Views:
25
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
Map
View

Click here to load this message in the networking platform