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?
C#NET2008 Coding using WITH
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sam HobbsRank #108 · 20.5K reputationPosted Oct 12, 2010, 6:57 PM EDT
Lennie Kuah25 reputationPosted Oct 12, 2010, 7:20 PM EDT
The reason I am asking for using "With" to avoid repeating the name of the Object to improve the speed of coding
Sam HobbsRank #108 · 20.5K reputationPosted Oct 12, 2010, 7:35 PM EDT