Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
With...end with in C# ?
Message
 
To
03/11/2005 14:10:17
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01064849
Message ID:
01065136
Views:
20
LMAO that is true, no dim in C#, you can do this in C#:
Button b = MyDataStructure.GetButton(44)
b.Text = "Hello"
b.BackColor = Color.Blue
>>I think the authors of the article suggested something like this in C#:
>
>I don't think so ... since when is "Dim" a valid C# statement? <g>
>
>~~Bonnie
>
>
>>I think the authors of the article suggested something like this in C#:
>>
>>Dim b as Button = MyDataStructure.GetButton(44)
>>b.Text = "Hello"
>>b.BackColor = Color.Blue
>>
>>to do the same thing as this in VB:
>>
>>With MyDataStructure.GetButton(44)
>>  .Text = "Hello"
>>  .BackColor = Color.Blue
>>End With
>>
>>
>>
>>
>>>Neil,
>>>
>>>That doesn't show *how* to do with/endwith in C# ... it explains why the C# Team did not include the with/endwith capability in C#.
>>>
>>>~~Bonnie
>>>
>>>
>>>
>>>>Holger,
>>>>
>>>>The link below is directly from the C# team and shows you how to do with..endwith in C#.
>>>>
>>>>http://www.gotdotnet.com/team/csharp/learn/columns/ask.aspx#with
>>>>
>>>>Regards
>>>>Neil
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform