C#-多表單上下頁功能
以Form2為例
//上一頁
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
//下一頁
private void button2_Click(object sender, EventArgs e)
{
Form3 f3 = new Form3();
f3.Owner = this;
f3.ShowDialog();
}
//上一頁
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
//下一頁
private void button2_Click(object sender, EventArgs e)
{
Form3 f3 = new Form3();
f3.Owner = this;
f3.ShowDialog();
}
留言
張貼留言