C
Connor T
Hi,
I posted this a while back, and got a solution but it didnt work.
The question was:
I have a form which is dynamically generated from the contents of a Database
using commands such as this:
hostform.Controls.Add(aRadio)
However, that adds the control to the top level window. I want to add them
to a panel i've created so that can do the scrolling
And the answer was:
\\\
hostform.Panel1.Controls.Add(aRadio)
///
(Assuming that the control's modifier is set to 'Friend'/'Public'/...)
However that doesnt compile.
It gives "Panel1 is not a member of System.Windows.Forms.Form
How can I fix this?
Panel1 is marked as Public...
Rgds,
Dan
I posted this a while back, and got a solution but it didnt work.
The question was:
I have a form which is dynamically generated from the contents of a Database
using commands such as this:
hostform.Controls.Add(aRadio)
However, that adds the control to the top level window. I want to add them
to a panel i've created so that can do the scrolling
And the answer was:
\\\
hostform.Panel1.Controls.Add(aRadio)
///
(Assuming that the control's modifier is set to 'Friend'/'Public'/...)
However that doesnt compile.
It gives "Panel1 is not a member of System.Windows.Forms.Form
How can I fix this?
Panel1 is marked as Public...
Rgds,
Dan