【原创】【Code for fun】让.net WinForm TabControl控件具有简单而有趣的滑动切换效果 滑动器 标签c#切换动画 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 下载看看,在win8测试过没有啊? 请问TabControl的各个页面背景能透明吗?这样可以看到winform窗体的图片背景 请问TabControl的各个页面背景能透明吗?这样可以看到winform窗体的图片背景 就像手机桌面的感觉,有一个整体的背景图跟着滑动 说真的做的很好,但是在微软已经流行的wpf和sliverlight上实现非常简单 这种动态的切换效果,在WPF里应该要容易实现些 可以学习一下,然后看看有没有可以应用到WPF的思想 public partial class Form1 : Form { public Form1() { InitializeComponent(); } int x = 12; int y = 12; private void button1_Click(object sender, EventArgs e) { this.timer1.Enabled = true; } private void timer1_Tick(object sender, EventArgs e) { x+=5; y+=5; this.panel1.Location = new System.Drawing.Point(x, y); if(x==100) { timer1.Enabled = false; } } } 是用Timer做的吗?如果移动效果 改为随时间的增加移动的步长也跟着增加 该怎么做呢 ?? timer的关闭问题 .NET Compact Framework 怎么抗锯齿? 这个减法为什么不对?谢谢先 怎么IIS添加 Framework 3.5版本 c#中datagrid怎样使用checkbox CheckBoxList更新数据问题? c#怎么自定义控件继承Panel 急!!DataSet的Update问题!! 有很多radioButton,选中一个时,怎么将他的名字传到textbox中显示 数字签名的问题 14001错误,应用程序配置不正确,重新安装可能解决这个问题 关于水晶报表的问题
下载看看,在win8测试过没有啊?
就像手机桌面的感觉,有一个整体的背景图跟着滑动
{
public Form1()
{
InitializeComponent();
}
int x = 12;
int y = 12;
private void button1_Click(object sender, EventArgs e)
{
this.timer1.Enabled = true;
} private void timer1_Tick(object sender, EventArgs e)
{
x+=5;
y+=5;
this.panel1.Location = new System.Drawing.Point(x, y);
if(x==100)
{
timer1.Enabled = false;
}
}
}