using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace XyZ { public partial class UserControl1 : UserControl { public UserControl1() { InitializeComponent(); } private void UserControl1_Load(object sender, EventArgs e) { } private void textBox1_TextChanged(object sender, EventArgs e) { } } }
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace XyZ { public partial class CustomerInvoice : Form { public CustomerInvoice() { InitializeComponent(); } private void toolStripButton1_Click(object sender, EventArgs e) { panel1.Controls.Clear(); UserControl1 ust2 = new UserControl1(); panel1.Controls.Add(ust2); } private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { } private void panel1_Paint(object sender, PaintEventArgs e) { } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)