要求:撰寫一個Winform應用程式,內容自選
我們只學了一點點,不會搞,求大佬幫忙

uj5u.com熱心網友回復:
private void button1_Click(object sender, EventArgs e){
listBox1.Items.Add(textBox1.Text + "--" + textBox2.Text);
}
private void button2_Click(object sender, EventArgs e)
{
listBox1.Items.RemoveAt(3);
}
private void button3_Click(object sender, EventArgs e)
{
switch (textBox1.Text)
{
case "張三": textBox2.Text = "18956324017"; break;
case "李四": textBox2.Text = "14045689203"; break;
case "王五": textBox2.Text = "15632478952"; break;
case "何六": textBox2.Text = "13978542016"; break;
}
}
private void button4_Click(object sender, EventArgs e)
{
switch (textBox1.Text)
{
case "張三": listBox1.Items.RemoveAt(0); listBox1.Items.Add(textBox1.Text + "--" + textBox2.Text); break;
case "李四": listBox1.Items.RemoveAt(3); listBox1.Items.Add(textBox1.Text + "--" + textBox2.Text); break;
case "王五": listBox1.Items.RemoveAt(2); listBox1.Items.Add(textBox1.Text + "--" + textBox2.Text); break;
case "何六": listBox1.Items.RemoveAt(1); listBox1.Items.Add(textBox1.Text + "--" + textBox2.Text); break;
}
}
uj5u.com熱心網友回復:
去資源里隨便下一個,現在畢業季,都是萌新uj5u.com熱心網友回復:
網上找個原始碼改改uj5u.com熱心網友回復:
自選,直接選個messagebox.show hello world,完事uj5u.com熱心網友回復:
那我可能是不想要分數了??
uj5u.com熱心網友回復:
幫另一個學校做的一個畢業設計,你可以參考一下,可以給你部分源代碼SQL資料庫,C#

轉載請註明出處,本文鏈接:https://www.uj5u.com/net/149659.html
標籤:C#
上一篇:CAD二次開發讀取角度旋轉問題
下一篇:iis部署時提示這個處理程式“ScriptHandlerFactory”在其模塊串列中有一個錯誤模塊“ManagedPipelineHandler
