private void SendBtn_Click(object sender, EventArgs e) { string message = this.SendBox.Text; SendBox.AppendText("work"); SendBox.Clear(); Label labmsg = new Label(); labmsg.AutoSize = true; labmsg.Text = user + ": " + message; MessageBox.Show(labmsg.Text); DisplayPanel.Controls.Add(labmsg); DisplayPanel.ScrollControlIntoView(labmsg); }