Conversion form previous VS

Z

Zach

In the past converted an application written in an old (<2005) VS to VS
2005. Of the application I would like to change the layout. But it would
appear that layout issues were fixed during the conversion. Whatever I do,
I cannot change the layout. Even if I put in a line to change the background
colour of a form to pink nothing happens. What is in the constructor has no
influence on the lay out. What can I do to overcome this problem? It would
be too much work to completely rewrite the application.

Zach.
 
J

Jeff Johnson

In the past converted an application written in an old (<2005) VS to VS
2005. Of the application I would like to change the layout. But it would
appear that layout issues were fixed during the conversion. Whatever I
do, I cannot change the layout. Even if I put in a line to change the
background colour of a form to pink nothing happens. What is in the
constructor has no influence on the lay out. What can I do to overcome
this problem? It would be too much work to completely rewrite the
application.

Is this a Windows Forms application? If so, there should be a region titled
"Windows Form Designer generated code" or something similar. If the form
isn't totally packed with controls, post the code from that region here.
Indicate which line you added/changed to try to change the background color.
 
Z

Zach

Zach said:
In the past converted an application written in an old (<2005) VS to VS
2005. Of the application I would like to change the layout. But it would
appear that layout issues were fixed during the conversion. Whatever I
do, I cannot change the layout. Even if I put in a line to change the
background colour of a form to pink nothing happens. What is in the
constructor has no influence on the lay out. What can I do to overcome
this problem? It would be too much work to completely rewrite the
application.

Zach.

#region Windows Form Designer generated code

protected void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new
System.ComponentModel.ComponentResourceManager(typeof(InvoiceForm));
this.textBox17 = new System.Windows.Forms.TextBox();
this.textBox15 = new System.Windows.Forms.TextBox();
this.textBox7 = new System.Windows.Forms.TextBox();
this.textBox6 = new System.Windows.Forms.TextBox();
this.textBox5 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.listBox1 = new System.Windows.Forms.ListBox();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.listBox2 = new System.Windows.Forms.ListBox();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.listBox3 = new System.Windows.Forms.ListBox();
this.listBox4 = new System.Windows.Forms.ListBox();
this.label15 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.label19 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.label21 = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.label24 = new System.Windows.Forms.Label();
this.label25 = new System.Windows.Forms.Label();
this.button5 = new System.Windows.Forms.Button();
this.label16 = new System.Windows.Forms.Label();
this.button4 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button9 = new System.Windows.Forms.Button();
this.button10 = new System.Windows.Forms.Button();
this.textBox12 = new System.Windows.Forms.TextBox();
this.panel1 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.textBox38 = new System.Windows.Forms.TextBox();
this.textBox37 = new System.Windows.Forms.TextBox();
this.panel5 = new System.Windows.Forms.Panel();
this.textBox11 = new System.Windows.Forms.TextBox();
this.panel7 = new System.Windows.Forms.Panel();
this.textBox16 = new System.Windows.Forms.TextBox();
this.label23 = new System.Windows.Forms.Label();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.textBox8 = new System.Windows.Forms.TextBox();
this.textBox9 = new System.Windows.Forms.TextBox();
this.textBox10 = new System.Windows.Forms.TextBox();
this.label33 = new System.Windows.Forms.Label();
this.textBox31 = new System.Windows.Forms.TextBox();
this.textBox33 = new System.Windows.Forms.TextBox();
this.textBox34 = new System.Windows.Forms.TextBox();
this.textBox35 = new System.Windows.Forms.TextBox();
this.textBox36 = new System.Windows.Forms.TextBox();
this.textBox13 = new System.Windows.Forms.TextBox();
this.textBox32 = new System.Windows.Forms.TextBox();
this.textBox29 = new System.Windows.Forms.TextBox();
this.textBox28 = new System.Windows.Forms.TextBox();
this.textBox26 = new System.Windows.Forms.TextBox();
this.textBox20 = new System.Windows.Forms.TextBox();
this.textBox21 = new System.Windows.Forms.TextBox();
this.textBox22 = new System.Windows.Forms.TextBox();
this.textBox24 = new System.Windows.Forms.TextBox();
this.textBox25 = new System.Windows.Forms.TextBox();
this.textBox30 = new System.Windows.Forms.TextBox();
this.panel6 = new System.Windows.Forms.Panel();
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
this.panel5.SuspendLayout();
this.panel7.SuspendLayout();
this.panel6.SuspendLayout();
this.SuspendLayout();
//
// textBox17
//
this.textBox17.BackColor = System.Drawing.Color.GhostWhite;
this.textBox17.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox17.Location = new System.Drawing.Point(520, 426);
this.textBox17.MaxLength = 5;
this.textBox17.Name = "textBox17";
this.textBox17.Size = new System.Drawing.Size(40, 20);
this.textBox17.TabIndex = 2;
this.textBox17.TextAlign =
System.Windows.Forms.HorizontalAlignment.Center;
this.textBox17.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.keypressed17);
//
// textBox15
//
this.textBox15.BackColor = System.Drawing.Color.GhostWhite;
this.textBox15.BorderStyle =
System.Windows.Forms.BorderStyle.None;
this.textBox15.Location = new System.Drawing.Point(-32, 12);
this.textBox15.Multiline = true;
this.textBox15.Name = "textBox15";
this.textBox15.ScrollBars =
System.Windows.Forms.ScrollBars.Both;
this.textBox15.Size = new System.Drawing.Size(576, 124);
this.textBox15.TabIndex = 0;
//
// textBox7
//
this.textBox7.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.textBox7.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox7.Location = new System.Drawing.Point(104, 128);
this.textBox7.MaxLength = 30;
this.textBox7.Name = "textBox7";
this.textBox7.ReadOnly = true;
this.textBox7.Size = new System.Drawing.Size(156, 20);
this.textBox7.TabIndex = 5;
//
// textBox6
//
this.textBox6.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.textBox6.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox6.Location = new System.Drawing.Point(80, 124);
this.textBox6.Name = "textBox6";
this.textBox6.ReadOnly = true;
this.textBox6.Size = new System.Drawing.Size(176, 20);
this.textBox6.TabIndex = 12;
//
// textBox5
//
this.textBox5.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.textBox5.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox5.Location = new System.Drawing.Point(80, 100);
this.textBox5.Name = "textBox5";
this.textBox5.ReadOnly = true;
this.textBox5.Size = new System.Drawing.Size(176, 20);
this.textBox5.TabIndex = 11;
//
// textBox4
//
this.textBox4.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.textBox4.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox4.Location = new System.Drawing.Point(80, 76);
this.textBox4.Name = "textBox4";
this.textBox4.ReadOnly = true;
this.textBox4.Size = new System.Drawing.Size(176, 20);
this.textBox4.TabIndex = 10;
//
// textBox3
//
this.textBox3.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.textBox3.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox3.Location = new System.Drawing.Point(80, 52);
this.textBox3.Name = "textBox3";
this.textBox3.ReadOnly = true;
this.textBox3.Size = new System.Drawing.Size(176, 20);
this.textBox3.TabIndex = 9;
//
// textBox2
//
this.textBox2.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.textBox2.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox2.Location = new System.Drawing.Point(80, 28);
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
this.textBox2.Size = new System.Drawing.Size(176, 20);
this.textBox2.TabIndex = 8;
//
// textBox1
//
this.textBox1.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox1.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox1.Location = new System.Drawing.Point(80, 4);
this.textBox1.MaxLength = 30;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(176, 20);
this.textBox1.TabIndex = 7;
//
// listBox1
//
this.listBox1.BackColor = System.Drawing.Color.GhostWhite;
this.listBox1.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.listBox1.Location = new System.Drawing.Point(16, 212);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(256, 184);
this.listBox1.TabIndex = 0;
this.listBox1.SelectedIndexChanged += new
System.EventHandler(this.listBox1_SelectedIndexChanged);
//
// label7
//
this.label7.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.label7.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.ForeColor = System.Drawing.Color.Black;
this.label7.Location = new System.Drawing.Point(4, 148);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(60, 16);
this.label7.TabIndex = 6;
this.label7.Text = "Telephone";
//
// label6
//
this.label6.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.label6.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.ForeColor = System.Drawing.Color.Black;
this.label6.Location = new System.Drawing.Point(4, 128);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(76, 16);
this.label6.TabIndex = 5;
this.label6.Text = "Country";
//
// label5
//
this.label5.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.label5.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.ForeColor = System.Drawing.Color.Black;
this.label5.Location = new System.Drawing.Point(4, 104);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(76, 16);
this.label5.TabIndex = 4;
this.label5.Text = "City";
//
// label4
//
this.label4.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.label4.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.Black;
this.label4.Location = new System.Drawing.Point(4, 80);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(76, 16);
this.label4.TabIndex = 3;
this.label4.Text = "PO Box";
//
// label3
//
this.label3.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.label3.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.Black;
this.label3.Location = new System.Drawing.Point(4, 56);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(76, 16);
this.label3.TabIndex = 2;
this.label3.Text = "Street";
//
// label2
//
this.label2.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.label2.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.Black;
this.label2.Location = new System.Drawing.Point(4, 32);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(76, 20);
this.label2.TabIndex = 1;
this.label2.Text = "Company";
//
// label1
//
this.label1.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.label1.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Black;
this.label1.Location = new System.Drawing.Point(4, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(72, 16);
this.label1.TabIndex = 0;
this.label1.Text = "Name";
//
// listBox2
//
this.listBox2.BackColor = System.Drawing.Color.GhostWhite;
this.listBox2.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.listBox2.Location = new System.Drawing.Point(304, 212);
this.listBox2.Name = "listBox2";
this.listBox2.Size = new System.Drawing.Size(256, 184);
this.listBox2.TabIndex = 1;
this.listBox2.SelectedIndexChanged += new
System.EventHandler(this.listBox2_SelectedIndexChanged);
//
// label8
//
this.label8.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.ForeColor = System.Drawing.Color.Black;
this.label8.Location = new System.Drawing.Point(12, 8);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(152, 16);
this.label8.TabIndex = 28;
this.label8.Text = "Invoice date";
//
// label9
//
this.label9.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.ForeColor = System.Drawing.Color.Black;
this.label9.Location = new System.Drawing.Point(12, 32);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(152, 16);
this.label9.TabIndex = 29;
this.label9.Text = "Shipment date";
//
// label10
//
this.label10.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.ForeColor = System.Drawing.Color.Black;
this.label10.Location = new System.Drawing.Point(12, 56);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(152, 16);
this.label10.TabIndex = 30;
this.label10.Text = "Invoice number";
//
// label11
//
this.label11.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.ForeColor = System.Drawing.Color.Black;
this.label11.Location = new System.Drawing.Point(12, 80);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(152, 16);
this.label11.TabIndex = 31;
this.label11.Text = "Your order number";
//
// label12
//
this.label12.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label12.ForeColor = System.Drawing.Color.Black;
this.label12.Location = new System.Drawing.Point(12, 104);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(152, 16);
this.label12.TabIndex = 32;
this.label12.Text = "Your reference";
//
// label13
//
this.label13.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label13.ForeColor = System.Drawing.Color.Black;
this.label13.Location = new System.Drawing.Point(596, 76);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(136, 16);
this.label13.TabIndex = 7;
this.label13.Text = "Lines on page 1";
//
// label14
//
this.label14.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label14.ForeColor = System.Drawing.Color.Black;
this.label14.Location = new System.Drawing.Point(596, 128);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(136, 16);
this.label14.TabIndex = 8;
this.label14.Text = "Lines from top";
//
// listBox3
//
this.listBox3.BackColor = System.Drawing.Color.GhostWhite;
this.listBox3.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.listBox3.Location = new System.Drawing.Point(8, 164);
this.listBox3.Name = "listBox3";
this.listBox3.Size = new System.Drawing.Size(240, 80);
this.listBox3.TabIndex = 5;
this.listBox3.SelectedIndexChanged += new
System.EventHandler(this.listBox3_SelectedIndexChanged);
//
// listBox4
//
this.listBox4.BackColor = System.Drawing.Color.GhostWhite;
this.listBox4.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.listBox4.Location = new System.Drawing.Point(8, 276);
this.listBox4.Name = "listBox4";
this.listBox4.Size = new System.Drawing.Size(240, 80);
this.listBox4.TabIndex = 7;
this.listBox4.SelectedIndexChanged += new
System.EventHandler(this.listBox4_SelectedIndexChanged);
//
// label15
//
this.label15.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.label15.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label15.ForeColor = System.Drawing.Color.Black;
this.label15.Location = new System.Drawing.Point(510, 410);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(56, 16);
this.label15.TabIndex = 18;
this.label15.Text = "Times unit";
this.label15.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter;
//
// button1
//
this.button1.BackColor = System.Drawing.Color.Lavender;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.ForeColor = System.Drawing.Color.Black;
this.button1.Location = new System.Drawing.Point(88, 4);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(68, 36);
this.button1.TabIndex = 1;
this.button1.Text = "Add line";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new
System.EventHandler(this.button1_Click);
//
// label19
//
this.label19.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label19.ForeColor = System.Drawing.Color.Black;
this.label19.Location = new System.Drawing.Point(16, 196);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(68, 16);
this.label19.TabIndex = 13;
this.label19.Text = "Addresses";
this.label19.TextAlign =
System.Drawing.ContentAlignment.MiddleLeft;
//
// label20
//
this.label20.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label20.ForeColor = System.Drawing.Color.Black;
this.label20.Location = new System.Drawing.Point(308, 196);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(76, 16);
this.label20.TabIndex = 17;
this.label20.Text = "Products";
this.label20.TextAlign =
System.Drawing.ContentAlignment.MiddleLeft;
//
// label21
//
this.label21.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label21.ForeColor = System.Drawing.Color.Black;
this.label21.Location = new System.Drawing.Point(12, 146);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(190, 16);
this.label21.TabIndex = 2;
this.label21.Text = "Accounts receivable account";
this.label21.TextAlign =
System.Drawing.ContentAlignment.MiddleLeft;
//
// label22
//
this.label22.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label22.ForeColor = System.Drawing.Color.Black;
this.label22.Location = new System.Drawing.Point(12, 258);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(188, 16);
this.label22.TabIndex = 6;
this.label22.Text = "Sales revenue account";
this.label22.TextAlign =
System.Drawing.ContentAlignment.MiddleLeft;
//
// label24
//
this.label24.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label24.ForeColor = System.Drawing.Color.Black;
this.label24.Location = new System.Drawing.Point(12, 8);
this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(168, 14);
this.label24.TabIndex = 0;
this.label24.Text = "Our conditions of payment";
this.label24.TextAlign =
System.Drawing.ContentAlignment.MiddleLeft;
//
// label25
//
this.label25.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label25.ForeColor = System.Drawing.Color.Black;
this.label25.ImageAlign =
System.Drawing.ContentAlignment.MiddleLeft;
this.label25.Location = new System.Drawing.Point(16, 448);
this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(76, 12);
this.label25.TabIndex = 14;
this.label25.Text = "Invoice Text";
this.label25.TextAlign =
System.Drawing.ContentAlignment.MiddleCenter;
//
// button5
//
this.button5.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button5.Font = new System.Drawing.Font("Microsoft Sans
Serif", 9F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button5.ForeColor = System.Drawing.Color.Black;
this.button5.Location = new System.Drawing.Point(736, 16);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(96, 44);
this.button5.TabIndex = 23;
this.button5.Text = "Save";
this.button5.UseVisualStyleBackColor = false;
this.button5.Click += new
System.EventHandler(this.button5_Click);
//
// label16
//
this.label16.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label16.ForeColor = System.Drawing.Color.Black;
this.label16.Location = new System.Drawing.Point(596, 154);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(136, 16);
this.label16.TabIndex = 9;
this.label16.Text = "Left hand margin";
//
// button4
//
this.button4.BackColor = System.Drawing.Color.Lavender;
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button4.ForeColor = System.Drawing.Color.Black;
this.button4.Location = new System.Drawing.Point(172, 4);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(68, 36);
this.button4.TabIndex = 2;
this.button4.Text = "Finalize";
this.button4.UseVisualStyleBackColor = false;
this.button4.Click += new
System.EventHandler(this.button4_Click);
//
// button6
//
this.button6.BackColor = System.Drawing.Color.Lavender;
this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button6.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button6.ForeColor = System.Drawing.Color.Black;
this.button6.Location = new System.Drawing.Point(766, 576);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(68, 36);
this.button6.TabIndex = 0;
this.button6.Text = "Book";
this.button6.UseVisualStyleBackColor = false;
this.button6.Click += new
System.EventHandler(this.button6_Click);
//
// button7
//
this.button7.BackColor = System.Drawing.Color.Lavender;
this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button7.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button7.ForeColor = System.Drawing.Color.Black;
this.button7.Location = new System.Drawing.Point(4, 4);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(68, 36);
this.button7.TabIndex = 0;
this.button7.Text = "Add heading";
this.button7.UseVisualStyleBackColor = false;
this.button7.Click += new
System.EventHandler(this.button7_Click);
//
// button8
//
this.button8.BackColor = System.Drawing.Color.Lavender;
this.button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button8.ForeColor = System.Drawing.Color.Black;
this.button8.Location = new System.Drawing.Point(352, 410);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(68, 36);
this.button8.TabIndex = 19;
this.button8.Text = "Remove ";
this.button8.UseVisualStyleBackColor = false;
this.button8.Click += new
System.EventHandler(this.button8_Click);
//
// button9
//
this.button9.BackColor = System.Drawing.Color.Lavender;
this.button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button9.ForeColor = System.Drawing.Color.Black;
this.button9.Location = new System.Drawing.Point(436, 410);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(68, 36);
this.button9.TabIndex = 20;
this.button9.Text = "Clear all";
this.button9.UseVisualStyleBackColor = false;
this.button9.Click += new
System.EventHandler(this.button9_Click);
//
// button10
//
this.button10.BackColor = System.Drawing.Color.Lavender;
this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button10.ForeColor = System.Drawing.Color.Black;
this.button10.Location = new System.Drawing.Point(256, 4);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(68, 36);
this.button10.TabIndex = 3;
this.button10.Text = "Print";
this.button10.UseVisualStyleBackColor = false;
this.button10.Click += new
System.EventHandler(this.button10_Click);
//
// textBox12
//
this.textBox12.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox12.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox12.Location = new System.Drawing.Point(8, 90);
this.textBox12.MaxLength = 120;
this.textBox12.Multiline = true;
this.textBox12.Name = "textBox12";
this.textBox12.Size = new System.Drawing.Size(240, 40);
this.textBox12.TabIndex = 3;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.GhostWhite;
this.panel1.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.textBox15);
this.panel1.Location = new System.Drawing.Point(16, 464);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(544, 148);
this.panel1.TabIndex = 15;
//
// panel3
//
this.panel3.Controls.Add(this.button10);
this.panel3.Controls.Add(this.button4);
this.panel3.Controls.Add(this.button1);
this.panel3.Controls.Add(this.button7);
this.panel3.Location = new System.Drawing.Point(12, 406);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(328, 42);
this.panel3.TabIndex = 3;
//
// textBox38
//
this.textBox38.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox38.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox38.Location = new System.Drawing.Point(204, 250);
this.textBox38.Name = "textBox38";
this.textBox38.ReadOnly = true;
this.textBox38.Size = new System.Drawing.Size(44, 20);
this.textBox38.TabIndex = 7;
this.textBox38.TextAlign =
System.Windows.Forms.HorizontalAlignment.Center;
this.textBox38.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.numbersCheck);
//
// textBox37
//
this.textBox37.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox37.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox37.Location = new System.Drawing.Point(204, 138);
this.textBox37.Name = "textBox37";
this.textBox37.ReadOnly = true;
this.textBox37.Size = new System.Drawing.Size(44, 20);
this.textBox37.TabIndex = 6;
this.textBox37.TextAlign =
System.Windows.Forms.HorizontalAlignment.Center;
this.textBox37.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.numbersCheck);
//
// panel5
//
this.panel5.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.panel5.Controls.Add(this.textBox11);
this.panel5.Controls.Add(this.textBox1);
this.panel5.Controls.Add(this.textBox2);
this.panel5.Controls.Add(this.textBox3);
this.panel5.Controls.Add(this.textBox4);
this.panel5.Controls.Add(this.textBox5);
this.panel5.Controls.Add(this.textBox6);
this.panel5.Controls.Add(this.label1);
this.panel5.Controls.Add(this.label2);
this.panel5.Controls.Add(this.label3);
this.panel5.Controls.Add(this.label4);
this.panel5.Controls.Add(this.label5);
this.panel5.Controls.Add(this.label6);
this.panel5.Controls.Add(this.label7);
this.panel5.Location = new System.Drawing.Point(16, 16);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(256, 176);
this.panel5.TabIndex = 0;
//
// textBox11
//
this.textBox11.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.textBox11.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox11.Location = new System.Drawing.Point(80, 148);
this.textBox11.Name = "textBox11";
this.textBox11.ReadOnly = true;
this.textBox11.Size = new System.Drawing.Size(44, 20);
this.textBox11.TabIndex = 14;
//
// panel7
//
this.panel7.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.panel7.Controls.Add(this.textBox12);
this.panel7.Controls.Add(this.label21);
this.panel7.Controls.Add(this.listBox3);
this.panel7.Controls.Add(this.textBox16);
this.panel7.Controls.Add(this.label24);
this.panel7.Controls.Add(this.label23);
this.panel7.Controls.Add(this.listBox4);
this.panel7.Controls.Add(this.label22);
this.panel7.Controls.Add(this.checkBox1);
this.panel7.Controls.Add(this.textBox37);
this.panel7.Controls.Add(this.textBox38);
this.panel7.Location = new System.Drawing.Point(584, 188);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(252, 364);
this.panel7.TabIndex = 22;
//
// textBox16
//
this.textBox16.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox16.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox16.Location = new System.Drawing.Point(8, 24);
this.textBox16.MaxLength = 120;
this.textBox16.Multiline = true;
this.textBox16.Name = "textBox16";
this.textBox16.Size = new System.Drawing.Size(240, 36);
this.textBox16.TabIndex = 1;
this.textBox16.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.keypressed);
//
// label23
//
this.label23.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.label23.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label23.ForeColor = System.Drawing.Color.Black;
this.label23.Location = new System.Drawing.Point(12, 72);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(204, 16);
this.label23.TabIndex = 4;
this.label23.Text = "Credit note text";
this.label23.TextAlign =
System.Drawing.ContentAlignment.MiddleLeft;
//
// checkBox1
//
this.checkBox1.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.checkBox1.CheckAlign =
System.Drawing.ContentAlignment.MiddleCenter;
this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.checkBox1.Font = new System.Drawing.Font("Microsoft Sans
Serif", 9.75F, System.Drawing.FontStyle.Bold,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.checkBox1.ForeColor = System.Drawing.Color.Black;
this.checkBox1.Location = new System.Drawing.Point(226, 64);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(20, 20);
this.checkBox1.TabIndex = 2;
this.checkBox1.UseVisualStyleBackColor = false;
//
// textBox8
//
this.textBox8.BackColor = System.Drawing.Color.Beige;
this.textBox8.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox8.Location = new System.Drawing.Point(520, 390);
this.textBox8.Name = "textBox8";
this.textBox8.ReadOnly = true;
this.textBox8.Size = new System.Drawing.Size(20, 20);
this.textBox8.TabIndex = 24;
this.textBox8.TextAlign =
System.Windows.Forms.HorizontalAlignment.Center;
//
// textBox9
//
this.textBox9.BackColor = System.Drawing.Color.Beige;
this.textBox9.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox9.Location = new System.Drawing.Point(540, 390);
this.textBox9.Name = "textBox9";
this.textBox9.ReadOnly = true;
this.textBox9.Size = new System.Drawing.Size(20, 20);
this.textBox9.TabIndex = 25;
this.textBox9.TextAlign =
System.Windows.Forms.HorizontalAlignment.Center;
//
// textBox10
//
this.textBox10.BackColor = System.Drawing.Color.Beige;
this.textBox10.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox10.Location = new System.Drawing.Point(500, 390);
this.textBox10.Name = "textBox10";
this.textBox10.ReadOnly = true;
this.textBox10.Size = new System.Drawing.Size(20, 20);
this.textBox10.TabIndex = 26;
this.textBox10.TextAlign =
System.Windows.Forms.HorizontalAlignment.Center;
//
// label33
//
this.label33.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label33.ForeColor = System.Drawing.Color.Black;
this.label33.Location = new System.Drawing.Point(596, 102);
this.label33.Name = "label33";
this.label33.Size = new System.Drawing.Size(136, 16);
this.label33.TabIndex = 28;
this.label33.Text = "Lines on page 2 etc.";
//
// textBox31
//
this.textBox31.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox31.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox31.Location = new System.Drawing.Point(304, 162);
this.textBox31.MaxLength = 30;
this.textBox31.Name = "textBox31";
this.textBox31.Size = new System.Drawing.Size(256, 20);
this.textBox31.TabIndex = 33;
//
// textBox33
//
this.textBox33.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox33.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox33.Location = new System.Drawing.Point(788, 76);
this.textBox33.MaxLength = 2;
this.textBox33.Name = "textBox33";
this.textBox33.Size = new System.Drawing.Size(44, 20);
this.textBox33.TabIndex = 34;
this.textBox33.TextAlign =
System.Windows.Forms.HorizontalAlignment.Center;
this.textBox33.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.numbersCheck);
//
// textBox34
//
this.textBox34.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox34.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox34.Location = new System.Drawing.Point(788, 102);
this.textBox34.MaxLength = 2;
this.textBox34.Name = "textBox34";
this.textBox34.Size = new System.Drawing.Size(44, 20);
this.textBox34.TabIndex = 35;
this.textBox34.TextAlign =
System.Windows.Forms.HorizontalAlignment.Center;
this.textBox34.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.numbersCheck);
//
// textBox35
//
this.textBox35.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox35.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox35.Location = new System.Drawing.Point(788, 128);
this.textBox35.MaxLength = 2;
this.textBox35.Name = "textBox35";
this.textBox35.Size = new System.Drawing.Size(44, 20);
this.textBox35.TabIndex = 36;
this.textBox35.TextAlign =
System.Windows.Forms.HorizontalAlignment.Center;
this.textBox35.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.numbersCheck);
//
// textBox36
//
this.textBox36.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox36.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox36.Location = new System.Drawing.Point(788, 154);
this.textBox36.MaxLength = 2;
this.textBox36.Name = "textBox36";
this.textBox36.Size = new System.Drawing.Size(44, 20);
this.textBox36.TabIndex = 37;
this.textBox36.TextAlign =
System.Windows.Forms.HorizontalAlignment.Center;
this.textBox36.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.numbersCheck);
//
// textBox13
//
this.textBox13.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox13.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox13.Location = new System.Drawing.Point(4, 128);
this.textBox13.MaxLength = 19;
this.textBox13.Name = "textBox13";
this.textBox13.Size = new System.Drawing.Size(93, 20);
this.textBox13.TabIndex = 11;
//
// textBox32
//
this.textBox32.BackColor = System.Drawing.Color.GhostWhite;
this.textBox32.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox32.Location = new System.Drawing.Point(104, 56);
this.textBox32.MaxLength = 30;
this.textBox32.Name = "textBox32";
this.textBox32.Size = new System.Drawing.Size(156, 20);
this.textBox32.TabIndex = 2;
this.textBox32.TextChanged += new
System.EventHandler(this.textBox32_TextChanged);
this.textBox32.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.numbersCheck);
//
// textBox29
//
this.textBox29.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox29.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox29.Location = new System.Drawing.Point(4, 80);
this.textBox29.MaxLength = 19;
this.textBox29.Name = "textBox29";
this.textBox29.Size = new System.Drawing.Size(93, 20);
this.textBox29.TabIndex = 9;
//
// textBox28
//
this.textBox28.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox28.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox28.Location = new System.Drawing.Point(4, 56);
this.textBox28.MaxLength = 19;
this.textBox28.Name = "textBox28";
this.textBox28.Size = new System.Drawing.Size(93, 20);
this.textBox28.TabIndex = 8;
this.textBox28.MouseEnter += new
System.EventHandler(this.textbox_MouseEnter);
//
// textBox26
//
this.textBox26.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox26.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox26.Location = new System.Drawing.Point(4, 32);
this.textBox26.MaxLength = 19;
this.textBox26.Name = "textBox26";
this.textBox26.Size = new System.Drawing.Size(93, 20);
this.textBox26.TabIndex = 7;
//
// textBox20
//
this.textBox20.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox20.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox20.Location = new System.Drawing.Point(4, 8);
this.textBox20.MaxLength = 19;
this.textBox20.Name = "textBox20";
this.textBox20.Size = new System.Drawing.Size(93, 20);
this.textBox20.TabIndex = 6;
//
// textBox21
//
this.textBox21.BackColor = System.Drawing.Color.GhostWhite;
this.textBox21.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox21.Location = new System.Drawing.Point(104, 8);
this.textBox21.MaxLength = 30;
this.textBox21.Name = "textBox21";
this.textBox21.Size = new System.Drawing.Size(156, 20);
this.textBox21.TabIndex = 0;
//
// textBox22
//
this.textBox22.BackColor = System.Drawing.Color.GhostWhite;
this.textBox22.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox22.Location = new System.Drawing.Point(104, 32);
this.textBox22.MaxLength = 30;
this.textBox22.Name = "textBox22";
this.textBox22.Size = new System.Drawing.Size(156, 20);
this.textBox22.TabIndex = 1;
//
// textBox24
//
this.textBox24.BackColor = System.Drawing.Color.GhostWhite;
this.textBox24.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox24.Location = new System.Drawing.Point(104, 80);
this.textBox24.MaxLength = 30;
this.textBox24.Name = "textBox24";
this.textBox24.Size = new System.Drawing.Size(156, 20);
this.textBox24.TabIndex = 3;
//
// textBox25
//
this.textBox25.BackColor = System.Drawing.Color.GhostWhite;
this.textBox25.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox25.Location = new System.Drawing.Point(104, 104);
this.textBox25.MaxLength = 30;
this.textBox25.Name = "textBox25";
this.textBox25.Size = new System.Drawing.Size(156, 20);
this.textBox25.TabIndex = 4;
//
// textBox30
//
this.textBox30.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(206)))),
((int)(((byte)(206)))), ((int)(((byte)(206)))));
this.textBox30.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox30.Location = new System.Drawing.Point(4, 104);
this.textBox30.MaxLength = 19;
this.textBox30.Name = "textBox30";
this.textBox30.Size = new System.Drawing.Size(93, 20);
this.textBox30.TabIndex = 10;
//
// panel6
//
this.panel6.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.panel6.Controls.Add(this.textBox13);
this.panel6.Controls.Add(this.textBox32);
this.panel6.Controls.Add(this.textBox29);
this.panel6.Controls.Add(this.textBox28);
this.panel6.Controls.Add(this.textBox26);
this.panel6.Controls.Add(this.textBox20);
this.panel6.Controls.Add(this.textBox21);
this.panel6.Controls.Add(this.textBox22);
this.panel6.Controls.Add(this.textBox24);
this.panel6.Controls.Add(this.textBox25);
this.panel6.Controls.Add(this.textBox30);
this.panel6.Controls.Add(this.textBox7);
this.panel6.Location = new System.Drawing.Point(300, 8);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(264, 148);
this.panel6.TabIndex = 6;
//
// InvoiceForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
//this.BackColor =
System.Drawing.Color.FromArgb(((int)(((byte)(219)))),
((int)(((byte)(219)))), ((int)(((byte)(200)))));
this.BackColor = System.Drawing.Color.Pink;
this.ClientSize = new System.Drawing.Size(850, 628);
this.ControlBox = false;
this.Controls.Add(this.textBox36);
this.Controls.Add(this.textBox35);
this.Controls.Add(this.textBox34);
this.Controls.Add(this.textBox33);
this.Controls.Add(this.textBox31);
this.Controls.Add(this.textBox10);
this.Controls.Add(this.textBox9);
this.Controls.Add(this.textBox8);
this.Controls.Add(this.textBox17);
this.Controls.Add(this.label33);
this.Controls.Add(this.panel7);
this.Controls.Add(this.panel6);
this.Controls.Add(this.panel5);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel1);
this.Controls.Add(this.label16);
this.Controls.Add(this.button5);
this.Controls.Add(this.label25);
this.Controls.Add(this.label20);
this.Controls.Add(this.label19);
this.Controls.Add(this.label15);
this.Controls.Add(this.label14);
this.Controls.Add(this.label13);
this.Controls.Add(this.listBox2);
this.Controls.Add(this.listBox1);
this.Controls.Add(this.button8);
this.Controls.Add(this.button9);
this.Controls.Add(this.button6);
this.ForeColor = System.Drawing.Color.Black;
this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon =
((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "InvoiceForm";
this.ShowInTaskbar = false;
this.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScreen;
this.Load += new System.EventHandler(this.InvoiceForm_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.panel7.ResumeLayout(false);
this.panel7.PerformLayout();
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();

}
#endregion
 
Z

Zach

Zach said:
#region Windows Form Designer generated code

protected void InitializeComponent()
{
<snipped>
}
#endregion
If I change the background color of the InvoiceForm to pink nothing happens
/ color isn't changed.
 
Z

Zach

Peter Duniho said:
That doesn't mean anything. You haven't explained _how_ you "change the
background color". Heck, you didn't even tell us what file the code you
posted came from.

Apologies -- I attempted to respond to the question.
As far as the code you posted goes, the more recent versions of Visual
Studio use partial classes and put the Designer-generated code into a
separate .Designer.cs file.

Yes, my current VS does that.
I haven't tried it, but I suppose it's
possible if the code you posted is still in the original .cs file the


--> Designer simply can't deal with that.

-->The code was converted by the later VS

If that's the case, then the
easiest solution may be to simply create a whole new control and then
copy/paste the existing code over to the .cs files for the new control
(with your custom code going in the main file and the Designer-generated
code going in the .Designer.cs file).

Yes, OK, I was hoping that there might be a simple solution that I was
being blind for.

Thank you Pete,

Zach.
 
Z

Zach

Peter Duniho said:
That doesn't mean anything. You haven't explained _how_ you "change the
background color". Heck, you didn't even tell us what file the code you
posted came from.

As far as the code you posted goes, the more recent versions of Visual
Studio use partial classes and put the Designer-generated code into a
separate .Designer.cs file. I haven't tried it, but I suppose it's
possible if the code you posted is still in the original .cs file the
Designer simply can't deal with that. If that's the case, then the
easiest solution may be to simply create a whole new control and then
copy/paste the existing code over to the .cs files for the new control
(with your custom code going in the main file and the Designer-generated
code going in the .Designer.cs file).

Pete

Pete,

I should like to add that during the same period in the past I wrote another
program, that was also converted to a later version of VS, a VS version in
which the formatting is put into a separate file. When I change display
colors in that application I don't encounter any problems at all. So there
must be some way to fix the problem, other than exporting the formatting
code.

Zach.
 
Z

Zach

Peter Duniho said:
There's nothing anyone here can tell you, given how vague the information
you've provided is.

As for whether the one project proves that the other can be made to work
the way you want, we also don't have enough information to validate that
claim.

Obviously the projects are different, otherwise you wouldn't have the
problem in the one in the first place. Until you know exactly how they
are different, you cannot make a claim that the one that doesn't work can
be changed to behave in the same way as the one that doesn't work, never
mind a claim that the change can be made without copying the code to an
entirely new control instance.

Fact is, you haven't even explained what you mean by "change the
background color", never mind do we have an explanation of why it's
possible to do so in one project and not in another. Without knowing why
it doesn't work, it's not possible to state with certainty that it can be
made to work as you want. Maybe it can, but maybe it can't.

Copying the code should take you all of three minutes, including the
process of creating the new control class and deleting the old class after
the code's been copied and renaming the new class. If you spend more time
than that trying to figure out the actual problem and how to resolve it,
you've wasted your time.

Pete

Yes, you are right Pete. Thank you.

Zach.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top