protected void Button1_Click(object sender, EventArgs e) { userControl1.Visible = !userControl1.Visible; }
Window win = new Window(); UserControl1 eDoc = new UserControl1(); win.Content = eDoc; win.Title = "User Control1"; win.Show();
myOwnControl userControl1 = new myOwnControl (); this.Controls.Add(userControl1);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)