[VS2005,Framework 2.0]
Hi all,

I'm building a form dynamically and although the Form is showing fine
none of the controls are showing. As an attempt to find out what the
problem is I'm trying to force the Visible property to true on each
control but to my surprise the code below does _not_ change the
Visible property.

Any clues or comments appreciated.

FYI: All controls show in the debugger and all other properties I'm
setting (like Text, Width, Height) are set OK and I can see them on
through the debugger.

using win = System.Windows.Forms;
//...
            win.Form winForm = tsk.asWinTask;
            foreach (win.Control c in winForm.Controls)
            {
                c.Visible = true;
            }
//...





Yahoo! Groups Links

Reply via email to