Exemplo n.º 1
0
        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
                };
            // 
            // txtUserTwitter
            // 
            txtUserTwitter = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "Twitter:",
                    Location = new Point(363, 170),
                    Name = "txtUserTwitter",
                    Size = new Size(301, 20),
                    TabIndex = 18
                };

            // 
            // txtUserWebAdress
            // 
            txtUserWebAdress = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "Web address:",
                    Location = new Point(363, 144),
                    Name = "txtUserWebAdress",
                    Size = new Size(301, 20),
                    TabIndex = 17
                };

            // 
            // txtUserSkype
            // 
            txtUserSkype = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "Skype:",
                    Location = new Point(363, 118),
                    Name = "txtUserSkype",
                    Size = new Size(301, 20),
                    TabIndex = 16
                };
            // 
            // txtUserEmail
            // 
            txtUserEmail = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "email:",
                    Location = new Point(363, 92),
                    Name = "txtUserEmail",
                    Size = new Size(301, 20),
                    TabIndex = 15
                };

            // 
            // txtUserMobile
            // 
            txtUserMobile = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "Mobile:",
                    Location = new Point(363, 66),
                    Name = "txtUserMobile",
                    Size = new Size(301, 20),
                    TabIndex = 14
                };

            // 
            // txtUserPhone
            // 
            txtUserPhone = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "Phone:",
                    Location = new Point(363, 40),
                    Name = "txtUserPhone",
                    Size = new Size(301, 20),
                    TabIndex = 13
                };

            // 
            // txtUserCountry
            // 
            txtUserCountry = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "Country:",
                    Location = new Point(5, 247),
                    Name = "txtUserCountry",
                    Size = new Size(301, 20),
                    TabIndex = 12
                };

            // 
            // txtUserZip
            // 
            txtUserZip = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "Zip/Postal Code:",
                    Location = new Point(5, 221),
                    Name = "txtUserZip",
                    Size = new Size(301, 20),
                    TabIndex = 11
                };

            // 
            // txtUserState
            // 
            txtUserState = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "State/Province:",
                    Location = new Point(5, 195),
                    Name = "txtUserState",
                    Size = new Size(301, 20),
                    TabIndex = 10
                };

            // 
            // txtUserCity
            // 
            txtUserCity = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "City:",
                    Location = new Point(5, 169),
                    Name = "txtUserCity",
                    Size = new Size(301, 20),
                    TabIndex = 9
                };

            // 
            // txtUserStreet
            // 
            txtUserStreet = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "Street:",
                    Location = new Point(5, 66),
                    Multiline = true,
                    Name = "txtUserStreet",
                    Size = new Size(301, 97),
                    TabIndex = 8
                };

            // 
            // txtUserName
            // 
            txtUserName = new NoLabelTextBox
                {
                    Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                    ForeColor = SystemColors.InactiveCaption,
                    LabelText = "User Name:",
                    Location = new Point(6, 40),
                    Name = "txtUserName",
                    Size = new Size(301, 20),
                    TabIndex = 7
                };

            this.groupCustomer.Controls.Add(this.txtCustomerCountry);
            this.groupCustomer.Controls.Add(this.txtCustomerZip);
            this.groupCustomer.Controls.Add(this.txtCustomerState);
            this.groupCustomer.Controls.Add(this.txtCustomerCity);
            this.groupCustomer.Controls.Add(this.txtCustomerStreet);
            this.groupCustomer.Controls.Add(this.txtCustomerName);

            this.groupUserDetails.Controls.Add(this.txtUserTwitter);
            this.groupUserDetails.Controls.Add(this.txtUserWebAdress);
            this.groupUserDetails.Controls.Add(this.txtUserSkype);
            this.groupUserDetails.Controls.Add(this.txtUserEmail);
            this.groupUserDetails.Controls.Add(this.txtUserMobile);
            this.groupUserDetails.Controls.Add(this.txtUserPhone);
            this.groupUserDetails.Controls.Add(this.txtUserCountry);
            this.groupUserDetails.Controls.Add(this.txtUserZip);
            this.groupUserDetails.Controls.Add(this.txtUserState);
            this.groupUserDetails.Controls.Add(this.txtUserCity);
            this.groupUserDetails.Controls.Add(this.txtUserStreet);
            this.groupUserDetails.Controls.Add(this.txtUserName);

        }
Exemplo n.º 2
0
        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
            };
            //
            // txtUserTwitter
            //
            txtUserTwitter = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "Twitter:",
                Location  = new Point(363, 170),
                Name      = "txtUserTwitter",
                Size      = new Size(301, 20),
                TabIndex  = 18
            };

            //
            // txtUserWebAdress
            //
            txtUserWebAdress = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "Web address:",
                Location  = new Point(363, 144),
                Name      = "txtUserWebAdress",
                Size      = new Size(301, 20),
                TabIndex  = 17
            };

            //
            // txtUserSkype
            //
            txtUserSkype = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "Skype:",
                Location  = new Point(363, 118),
                Name      = "txtUserSkype",
                Size      = new Size(301, 20),
                TabIndex  = 16
            };
            //
            // txtUserEmail
            //
            txtUserEmail = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "email:",
                Location  = new Point(363, 92),
                Name      = "txtUserEmail",
                Size      = new Size(301, 20),
                TabIndex  = 15
            };

            //
            // txtUserMobile
            //
            txtUserMobile = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "Mobile:",
                Location  = new Point(363, 66),
                Name      = "txtUserMobile",
                Size      = new Size(301, 20),
                TabIndex  = 14
            };

            //
            // txtUserPhone
            //
            txtUserPhone = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "Phone:",
                Location  = new Point(363, 40),
                Name      = "txtUserPhone",
                Size      = new Size(301, 20),
                TabIndex  = 13
            };

            //
            // txtUserCountry
            //
            txtUserCountry = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "Country:",
                Location  = new Point(5, 247),
                Name      = "txtUserCountry",
                Size      = new Size(301, 20),
                TabIndex  = 12
            };

            //
            // txtUserZip
            //
            txtUserZip = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "Zip/Postal Code:",
                Location  = new Point(5, 221),
                Name      = "txtUserZip",
                Size      = new Size(301, 20),
                TabIndex  = 11
            };

            //
            // txtUserState
            //
            txtUserState = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "State/Province:",
                Location  = new Point(5, 195),
                Name      = "txtUserState",
                Size      = new Size(301, 20),
                TabIndex  = 10
            };

            //
            // txtUserCity
            //
            txtUserCity = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "City:",
                Location  = new Point(5, 169),
                Name      = "txtUserCity",
                Size      = new Size(301, 20),
                TabIndex  = 9
            };

            //
            // txtUserStreet
            //
            txtUserStreet = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "Street:",
                Location  = new Point(5, 66),
                Multiline = true,
                Name      = "txtUserStreet",
                Size      = new Size(301, 97),
                TabIndex  = 8
            };

            //
            // txtUserName
            //
            txtUserName = new NoLabelTextBox
            {
                Font      = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Italic),
                ForeColor = SystemColors.InactiveCaption,
                LabelText = "User Name:",
                Location  = new Point(6, 40),
                Name      = "txtUserName",
                Size      = new Size(301, 20),
                TabIndex  = 7
            };

            this.groupCustomer.Controls.Add(this.txtCustomerCountry);
            this.groupCustomer.Controls.Add(this.txtCustomerZip);
            this.groupCustomer.Controls.Add(this.txtCustomerState);
            this.groupCustomer.Controls.Add(this.txtCustomerCity);
            this.groupCustomer.Controls.Add(this.txtCustomerStreet);
            this.groupCustomer.Controls.Add(this.txtCustomerName);

            this.groupUserDetails.Controls.Add(this.txtUserTwitter);
            this.groupUserDetails.Controls.Add(this.txtUserWebAdress);
            this.groupUserDetails.Controls.Add(this.txtUserSkype);
            this.groupUserDetails.Controls.Add(this.txtUserEmail);
            this.groupUserDetails.Controls.Add(this.txtUserMobile);
            this.groupUserDetails.Controls.Add(this.txtUserPhone);
            this.groupUserDetails.Controls.Add(this.txtUserCountry);
            this.groupUserDetails.Controls.Add(this.txtUserZip);
            this.groupUserDetails.Controls.Add(this.txtUserState);
            this.groupUserDetails.Controls.Add(this.txtUserCity);
            this.groupUserDetails.Controls.Add(this.txtUserStreet);
            this.groupUserDetails.Controls.Add(this.txtUserName);
        }