Form1.cs
上传用户:liupy888
上传日期:2022-08-10
资源大小:734k
文件大小:2k
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace Case01_3
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- Form2 myf = new Form2();
- if (radioButton1.Checked == true)
- {
- myf.Text = "自左向右滚动窗体动画效果";
- }
- else
- {
- myf.Text = "自左向右滑动窗体动画效果";
- }
- myf.Show();
- }
- private void button2_Click(object sender, EventArgs e)
- {
- Form2 myf = new Form2();
- if (radioButton1.Checked == true)
- {
- myf.Text = "自右向左滚动窗体动画效果";
- }
- else
- {
- myf.Text = "自右向左滑动窗体动画效果";
- }
- myf.Show();
- }
- private void button4_Click(object sender, EventArgs e)
- {
- Form2 myf = new Form2();
- if (radioButton1.Checked == true)
- {
- myf.Text = "自上向下滚动窗体动画效果";
- }
- else
- {
- myf.Text = "自上向下滑动窗体动画效果";
- }
- myf.Show();
- }
- private void button3_Click(object sender, EventArgs e)
- {
- Form2 myf = new Form2();
- if (radioButton1.Checked == true)
- {
- myf.Text = "自下向上滚动窗体动画效果";
- }
- else
- {
- myf.Text = "自下向上滑动窗体动画效果";
- }
- myf.Show();
- }
- private void button6_Click(object sender, EventArgs e)
- {
- Form2 myf = new Form2();
- myf.Text = "向外扩展窗体动画效果";
- myf.Show();
- }
- private void button5_Click(object sender, EventArgs e)
- {
- Form2 myf = new Form2();
- myf.Text = "淡入窗体动画效果";
- myf.Show();
- }
- }
- }