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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Scott LyslePosted Apr 4, 2007, 6:43 PM
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
cdogPosted Apr 4, 2007, 6:17 PM
Scott LyslePosted Apr 4, 2007, 5:33 PM
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