Anyone have any idea what this is doing in VB?
txtEnvironmentalIssues.Text = .environmentalIssues
txtConformingUse.Text = .conformingUse
if so what is the C# equvelant?
Anyone have any idea what this is doing in VB?
txtEnvironmentalIssues.Text = .environmentalIssues
txtConformingUse.Text = .conformingUse
if so what is the C# equvelant?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Scott LysleRank #49 · 31K reputationPosted Apr 4, 2007, 1:33 PM EDT
e.g.,
Say you had a class called DogsAndCats with two string properties, MyDog and MyCat. In an application you create an instance of the class DogsAndCats; in VB, you can access the members like so.
Dim DandC = new DogsAndCats()
DandC.MyDog = "Charlie"
DandC.MyCat = "Moofin"
Now say you have two textboxes, txtDog and txtCat. You could populate them like this:
With DandC
cdog37 reputationPosted Apr 4, 2007, 2:17 PM EDT
Scott LysleRank #49 · 31K reputationPosted Apr 4, 2007, 2:43 PM EDT
that looks like it was taken out of a with block and whatever object "with" was is being used to set a textbox text property.
e.g.,
Say you had a class called DogsAndCats with two string properties, MyDog and MyCat. In an application you create an instance of the class DogsAndCats; in VB, you can access the members like so.
Dim DandC = new DogsAndCats()
DandC.MyDog = "Charlie"
DandC.MyCat = "Moofin"
Now say you have two textboxes, txtDog and txtCat. You could populate them like this:
With DandC
txtDog.Text = .MyDog
txtCat.Text = .MyCat
End With