is it possible to convert obj into textbox - read inside TIA - 07-02-2004 , 06:43 PM
Why not just try it instead of wasting bandwidth?
Re: is it possible to convert obj into textbox - read inside TIA - 07-03-2004 , 02:30 AM
Are you asking: is it possible to take a string and use it to identify an
object that you want to create, and create that object?
Take a look at System.Reflection
<CobraStrikes (AT) al (DOT) com> wrote
RE: is it possible to convert obj into textbox - read inside TIA - 07-03-2004 , 10:58 AM
Hi CobraStrikes (AT) al (DOT) com,
I think you need to modify your code a bit.
string strA = "Hello ";
string strB = "World";
obj = "textbox" + strA + strB;
textBox1.Text = obj.ToString();
1) You need to have textBox1.Text instead of just textBox1, as you want to make TextBox to display it.
2) You need to cast the object to string.
Correct me if i am wrong. Can i use reflection to achieve it? Thanks.
Chua Wen Ching
"CobraStrikes (AT) al (DOT) com" wrote:
|Thread Tools||Search this Thread|