public void linkUser_Click(object sender, EventArgs e)
{
if (personPanel.Controls != null)
{
foreach (RadioButton items in personPanel.Controls)
{
new AllUsers().allPersonPanel.Controls.Add(((RadioButton)items));
//string str = (((RadioButton)items)).Text;
//MessageBox.Show(str);
}
AllUsers all = new AllUsers();
all.Show();
Please how do I add controls from one panel on a form to another panel in another form? I use the messageBox to troubleshoot this and it pulls the text into it but when I add it directly to the to the allPersonPanel in the AllUsers form it does not appear, what should I do?

New Topic/Question
Reply




MultiQuote




|