示例#1
0
        void AddLog(string str)
        {
            Label l = new Label();

            l.Location = new Point(6, 4 + 12 * LogPanel.Controls.Count);
            l.AutoSize = true;
            l.Name     = "L" + LogPanel.Controls.Count;
            l.Size     = new System.Drawing.Size(0, 12);
            l.TabIndex = 0;
            l.Text     = str;
            LogPanel.Controls.Add(l);
            LogPanel.ScrollControlIntoView(l);
        }