Dear Good Guys,
I need your help. Please help me.
I am very confused as how to use the command WITH with C#NET2008. but in VB.NET this is how I used it:
With me.ListBoxCust
.ColumnWidth = this.ListBoxCust.Width
.DisplayMember = "Companyname"
.ValueMember ="CustomerID"
.DataSource = DS.Tables("Cust");
End With
-------------------------------------------------
How to use it in C#NEt2008?
Loading
Sam HobbsPosted Oct 12, 2010, 11:35 PM
Lennie KuahPosted Oct 12, 2010, 11:20 PM
The reason I am asking for using "With" to avoid repeating the name of the Object to improve the speed of coding
Sam HobbsPosted Oct 12, 2010, 10:57 PM