public ListBoxExam()
    {
        listBox1 = new ListBox();
        checkedListBox1 = new CheckedListBox();
        txt_info = new TextBox();

        listBox1.Parent = this;
        listBox1.SetBounds(10, 10, 50, 100);
        listBox1.SelectedIndexChanged += new EventHandler(SelectedIndexChanged);
        checkedListBox1.Parent = this;
        checkedListBox1.SetBounds(70, 10, 50, 100);
        checkedListBox1.SelectedIndexChanged += new EventHandler(SelectedIndexChanged);

        txt_info.Parent = this;
        txt_info.SetBounds(10, 120, 300, 120);
        txt_info.Multiline = true;

        for (int i = 0; i < str1.Length; i++)
            listBox1.Items.Add(str1[i]);

        for (int j = 0; j < str2.Length; j++)
            checkedListBox1.Items.Add(str2[j]);
    }