#region Dynamically Added Controls private void addChkItem(string pnType) { int leftOffset = 7; int topOffset = 6; if (pnType == "Add-On") // Bundle Panel { // Create textbox for Qty CheckBox chkAddItem = new CheckBox(); // Position textbox on screen chkAddItem.Left = leftOffset; chkAddItem.Top = topOffset + AddOnRows * VERTICAL_OFFSET; // Set the size of the textbox chkAddItem.Width = 15; chkAddItem.Height = 14; // Name the new control chkAddItem.Name = "chkAddItem" + AddOnRows; //txtQtyBundle.Text = txtQtyBundle.Name; // Mark control for deletion chkAddItem.Tag = "Dispose"; chkAddItem.Enabled = true; pnAddOn.Controls.Add(chkAddItem); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)