I was wondering if there is a command in C# which I can use like with command in Delphi?
with command
// like this : with(textbox1) { .text=\"some text as
No but depending on what you are trying to do, the following would work:
TextBox t = textbox1; t.text="some text as text of text box"; t.tag=1231;