我在C#是一個初學者,所以它不是鼓勵我看到你對我的基本問題否決...味精BOX概率在C#
這是一個按鈕在消息框中的結果顯示我的從我的BD中選擇。
我得到的錯誤:參數「2」:無法從「對象」到「串」, 參數轉換成「3」:無法從「對象」轉換爲「System.Windows.Forms.MessageBoxButtons」
感謝幫助我!
private void Button1Click(object sender, EventArgs e)
{
thisConnection.Open();
SqlCommand thisCommand = thisConnection.CreateCommand();
thisCommand.CommandText = "Select id_Client,numéro_Teléphone from Clients";
SqlDataReader thisreader = thisCommand.ExecuteReader();
while (thisreader.Read())
{
MessageBox.Show(thisreader["id_Client"],thisreader["numéro_Teléphone"]);
}
thisreader.Close();
thisConnection.Close();
}
不知道爲什麼這是獲取DV'd。他先試了一下,然後發佈了他的代碼和錯誤消息。不能要求別的。 :) –