private void InitializeCustomControls() { // // txtCustomerCountry // _txtCustomerCountry = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "Country:", Location = new Point(5, 255), Name = "txtCustomerCountry", Size = new Size(301, 20), TabIndex = 6 }; // // txtCustomerZip // _txtCustomerZip = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "Zip/Postal Code:", Location = new Point(5, 229), Name = "txtCustomerZip", Size = new Size(301, 20), TabIndex = 5 }; // // txtCustomerState // _txtCustomerState = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "State/Province:", Location = new Point(5, 203), Name = "txtCustomerState", Size = new Size(301, 20), TabIndex = 4 }; // // txtCustomerCity // _txtCustomerCity = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "City:", Location = new Point(5, 177), Name = "txtCustomerCity", Size = new Size(301, 20), TabIndex = 3 }; // // txtCustomerStreet // _txtCustomerStreet = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "Street:", Location = new Point(5, 74), Multiline = true, Name = "txtCustomerStreet", Size = new Size(301, 97), TabIndex = 2 }; // // txtCustomerName // _txtCustomerName = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "Customer name:", Location = new Point(6, 48), Name = "txtCustomerName", Size = new Size(301, 20), TabIndex = 0 }; groupCustomer.Controls.Add(_txtCustomerCountry); groupCustomer.Controls.Add(_txtCustomerZip); groupCustomer.Controls.Add(_txtCustomerState); groupCustomer.Controls.Add(_txtCustomerCity); groupCustomer.Controls.Add(_txtCustomerStreet); groupCustomer.Controls.Add(_txtCustomerName); }
private void InitializeCustomControls() { // // txtCustomerCountry // _txtCustomerCountry = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "Country:", Location = new Point(5, 255), Name = "txtCustomerCountry", Size = new Size(301, 20), TabIndex = 6 }; // // txtCustomerZip // _txtCustomerZip = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "Zip/Postal Code:", Location = new Point(5, 229), Name = "txtCustomerZip", Size = new Size(301, 20), TabIndex = 5 }; // // txtCustomerState // _txtCustomerState = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "State/Province:", Location = new Point(5, 203), Name = "txtCustomerState", Size = new Size(301, 20), TabIndex = 4 }; // // txtCustomerCity // _txtCustomerCity = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "City:", Location = new Point(5, 177), Name = "txtCustomerCity", Size = new Size(301, 20), TabIndex = 3 }; // // txtCustomerStreet // _txtCustomerStreet = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "Street:", Location = new Point(5, 74), Multiline = true, Name = "txtCustomerStreet", Size = new Size(301, 97), TabIndex = 2 }; // // txtCustomerName // _txtCustomerName = new NoLabelTextBox { Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic), ForeColor = SystemColors.InactiveCaption, LabelText = "Customer name:", Location = new Point(6, 48), Name = "txtCustomerName", Size = new Size(301, 20), TabIndex = 0 }; groupCustomer.Controls.Add(_txtCustomerCountry); groupCustomer.Controls.Add(_txtCustomerZip); groupCustomer.Controls.Add(_txtCustomerState); groupCustomer.Controls.Add(_txtCustomerCity); groupCustomer.Controls.Add(_txtCustomerStreet); groupCustomer.Controls.Add(_txtCustomerName); }