怎样弹出提示窗口

wobone 2009-03-09 01:35:01
我做了一个定单管理,c/s和b/s结构的都有,我想达到以下效果:
当有顾客下了新的定单后有可以弹出一个提示窗口:
b/s的弹出一个页面什么的,要在桌面的最表层.
c/s的也可以弹出一个框提示,或者像qq一样那样的提示.

...全文
181 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq603284891 2009-03-09
  • 打赏
  • 举报
回复
我是赖学习大!学了顶了!!!
wobone 2009-03-09
  • 打赏
  • 举报
回复
ok,就改几个属性的问题..谢谢了..
wobone 2009-03-09
  • 打赏
  • 举报
回复
这个可以,实现平滑的效果...但是,消息窗体出现后是在任务栏中有最小化的提示,只有点击后才出现,怎样让它
出现时不在任务栏,而且,出现在左面的最上层列?
wobone 2009-03-09
  • 打赏
  • 举报
回复
这个可以,实现平滑的效果...但是,消息窗体出现后是在任务栏中有最小化的提示,只有点击后才出现,怎样让它
出现时不在任务栏,而且,出现在左面的最上层列?
whowhen21 2009-03-09
  • 打赏
  • 举报
回复
给点解释哦:

int x = Convert.ToInt32(SystemInformation.WorkingArea.Width) - 365;//365是程序Width属性
int y = Convert.ToInt32(SystemInformation.WorkingArea.Height);
int temp = Convert.ToInt32(SystemInformation.WorkingArea.Height);
//这几句是获取虚拟屏幕的大小,然后刚好在右下角出现。 OK,就这些啦


whowhen21 2009-03-09
  • 打赏
  • 举报
回复
给楼主点代码参考,我的是WinForm的:
整个一个程序的代码都有了,就是模仿QQ消息一样的哈:


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace QQMessage
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int x = Convert.ToInt32(SystemInformation.WorkingArea.Width) - 365;
int y = Convert.ToInt32(SystemInformation.WorkingArea.Height);
int temp = Convert.ToInt32(SystemInformation.WorkingArea.Height);

private void timer1_Tick(object sender, EventArgs e)
{
this.Location = new Point(x, temp);
temp -= 3;
if (temp <= (y - 278))
{
timer1.Stop();
}
}

private void Form1_Load(object sender, EventArgs e)
{
this.Location = new Point(x, temp);
}
}
}

cja03 2009-03-09
  • 打赏
  • 举报
回复
就是一个Form,用计时器设置它的Top,它就一点一点地上来了。
the_pain 2009-03-09
  • 打赏
  • 举报
回复
up

111,126

社区成员

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

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

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