[ create a new paste ] login | about

Link: http://codepad.org/5GQln5Cp    [ raw code | output | fork ]

C, pasted on Apr 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
List<TextBox> list = new List<TextBox>();
        Size size = new Size(30, 30);

        private void panelListArray_Paint(object sender, PaintEventArgs e)
        {
            int x = 30;
            int y = 45;
            for (int i = 0; i <= 9; i++)
            {
                TextBox textbox = new TextBox();
                textbox.Location = new Point(x + i * size.Width, y);
                textbox.Multiline = true;
                textbox.Size = size;
                textbox.TextAlign = HorizontalAlignment.Center;
                panelListArray.Controls.Add(textbox);
                list.Add(textbox);
            }
        }


Output:
1
2
3
Line 1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
Line 2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'size'
Line 4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'


Create a new paste based on this one


Comments: