Then I would say give your control an appropriate name, one that you know
won't clash with another, and then add the control to the Controls
collection of the container (Form I assume). You can lookup the control in
the collection, retrieve a reference to it, and then set the text. The code
at the link below presents a few methods to do this. It's in VB.Net but
should be easily translated.
http://dotnet.mvps.org/dotnet/faqs/?...eindex&lang=en
--
Tim Wilson
..Net Compact Framework MVP
"Gelios" <ge****@rbcmail.ru> wrote in message
news:d3**********@gavrilo.mtu.ru...
Tim Wilson wrote: One way to do this would be to scope the TextBox to the Form instead of
the method.
I know this way, but unfortunately it is not acceptable, because I have
a lot of controls which will placed to from related on various
conditions. (This is why I don't show real code, it has a lot of lines)