private void button2_Click(object sender, EventArgs e) { if (button2.Text != "") { JA_QuestionList list = new JA_QuestionList { 問題 = textBox1.Text, 回答 = "", 創建時間 = DateTime.Now }; Question Newquestion = new Question { OrderID = this.OrderID, UserID = Cls_JA_Member.UserID, Question1 = textBox1.Text, CreateDate = DateTime.Now }; Cls_JA_Member.AddQuestion(OrderID, Newquestion); this.flowLayoutPanel2.Controls.Add(list); this.flowLayoutPanel2.ScrollControlIntoView(list); } }