C#实现qq抖动窗口代码

zshhtkj 2009-05-06 01:13:39
各位高手:
跪求!!我想用C#实现qq抖动窗口。给详细讲解一下代码。谢谢!
...全文
1534 56 打赏 收藏 转发到动态 举报
写回复
用AI写文章
56 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq563240913 2010-03-27
  • 打赏
  • 举报
回复
学习了。。。要点击Form1然后抖动from2..这个你点FORM1给个信号给FORM2接收下然后执行抖动就好啦,
sfgicdgv 2010-03-27
  • 打赏
  • 举报
回复
学习了!~~顶
yao2004jessica 2010-03-27
  • 打赏
  • 举报
回复
CSDN上面抢人很多啊
zhouhang122594520 2010-03-27
  • 打赏
  • 举报
回复
学习下 呵呵……
chenshuwei520 2010-03-27
  • 打赏
  • 举报
回复
很好,又跟楼主学了一点知识
兜老底 2010-03-27
  • 打赏
  • 举报
回复
呵呵。。。。。。。。是不是这样哦!
kk297173176 2010-03-27
  • 打赏
  • 举报
回复
都很有想法,顶了
jhdxhj 2009-11-22
  • 打赏
  • 举报
回复
mark
TimAzy 2009-11-22
  • 打赏
  • 举报
回复
藏龙卧虎之地,唯有CSDN。
guilangwang 2009-11-22
  • 打赏
  • 举报
回复
11楼的代码很简练,很好
zdhook 2009-11-22
  • 打赏
  • 举报
回复
API MoveWindow
dqw120 2009-11-22
  • 打赏
  • 举报
回复
int index = 0;
int count = 0;
//成员变量 index代表当前位置,count循环次数
——————————————————————————————
private void button_DouDong_Click(object sender, EventArgs e)
{
index = 0;
count = 0;
timer_Doudong.Start();
//点击 抖动 事件,触发事件
}
——————————————————————————————
private void timer_Doudong_Tick(object sender, EventArgs e)
{
//此为 timer控件,默认interval=50毫秒
switch (index)
{
case 0:
this.Location = new Point(this.Location.X, this.Location.Y + 3);
index++;
break;
case 1:
this.Location = new Point(this.Location.X + 3, this.Location.Y);
index++;
break;
case 2:
this.Location = new Point(this.Location.X - 3, this.Location.Y);
index++;
break;
case 3:
this.Location = new Point(this.Location.X, this.Location.Y - 3);
index = 0;
count++;
if (count == 4)
{
timer_Doudong.Stop();
}
break;
}
}

//你觉得呢,比不上腾讯的抖动优美,不过基本的思想已经出来,楼主可以根据此修改一下更为美化
coolio1 2009-11-22
  • 打赏
  • 举报
回复
这个窗口抖动,最好不要使用随机数。+10 -10足够了。
Op1990 2009-11-22
  • 打赏
  • 举报
回复
学习了!
程序小海 2009-11-22
  • 打赏
  • 举报
回复
xue xi!
  • 打赏
  • 举报
回复
学习了
lhy011 2009-11-22
  • 打赏
  • 举报
回复
晃晃
Taiyangchen 2009-11-22
  • 打赏
  • 举报
回复
学习了!
nixiang12 2009-11-22
  • 打赏
  • 举报
回复
工程源码
我这里有源码 你自己去下载
solszl 2009-11-22
  • 打赏
  • 举报
回复
private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = true;
}

private void timer1_Tick(object sender, EventArgs e)
{
this.Top -= 5;
for (int i = 0; i < 10000; i++)
{
for (int j = 0; j < 1000; j++)
{

}
}
this.Left -= 5;
for (int i = 0; i < 100000; i++)
{
for(int j=0;j<100;j++)
{

}
}
this.Top += 5;
for (int i = 0; i < 10000; i++)
{
for(int j=0;j<1000;j++)
{

}
}
this.Left += 5;
for (int i = 0; i < 10000; i++)
{
for (int j = 0; j < 1000; j++)
{

}
}
}
加载更多回复(35)

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧