April 6th, 2012, 02:36 PM
Find control or check if control exists
So I wanted to make a program where you can add a textbox or what ever for stuff.
The code typed in the textbox is also a part of result in the results.
But if the control doesn't exists, than the result is NOT related to the textbox.
If the control does exists, than the result is related to the textbox.
My question now is, how to check if a textbox (or a control, no matter which) does exists.
I thought about something like this:
But this one doesn't work.
I also tried this:
This one does neither work.
if (textBox1 == NULL)
I got one simple solution, and that is the findControl stuff.
But I only can find those for VB or C#.
So someone got me a better solution or can explain the C# findControl stuff to me?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.