社区
C#
帖子详情
右下角缓缓上升的小窗体怎么做?
gadev
2009-04-19 09:08:04
右下角缓缓上升的小窗体怎么做?
web或者winform
请教 ,
谢谢
...全文
223
15
打赏
收藏
右下角缓缓上升的小窗体怎么做?
右下角缓缓上升的小窗体怎么做? web或者winform 请教 , 谢谢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
15 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
major
2009-04-20
打赏
举报
回复
如果是web程序的话,有一个控件叫popupwin,可以直接使用的
下载地址:http://download.csdn.net/down/909593/a464108502
only_lonely
2009-04-20
打赏
举报
回复
很好狠强大,
pennymay
2009-04-20
打赏
举报
回复
强, 学习了!
deyter
2009-04-20
打赏
举报
回复
mark
zgke
2009-04-20
打赏
举报
回复
WinForm
private void button1_Click(object sender, EventArgs e)
{
Form2 _Form = new Form2();
_Form.Size = new Size(100, 100);
int _X = Screen.PrimaryScreen.Bounds.Width - _Form.Size.Width;
int _Y = SystemInformation.WorkingArea.Height - _Form.Size.Height;
_Form.StartPosition = FormStartPosition.Manual;
_Form.Location = new Point(_X, _Y);
//AnimateWindow. | AnimateWindow.AW_VER_NEGATIVE
AnimateWindow(_Form.Handle, 1000, AnimateWindowEmu.AW_SLIDE | AnimateWindowEmu.AW_VER_NEGATIVE);
_Form.Show();
}
/// <summary>
/// 窗体显示方式
/// </summary>
public enum AnimateWindowEmu
{
AW_HOR_POSITIVE = 0x0001,//从左向右显示
AW_HOR_NEGATIVE = 0x0002,//从右向左显示
AW_VER_POSITIVE = 0x0004,//从上到下显示
AW_VER_NEGATIVE = 0x0008,//从下到上显示
AW_CENTER = 0x0010,//从中间向四周
AW_HIDE = 0x10000, //隐蔽
AW_ACTIVATE = 0x20000,//普通显示
AW_SLIDE = 0x40000, //显示
AW_BLEND = 0x80000,//透明渐变显示
}
[DllImport("user32.dll")]
public static extern bool AnimateWindow(IntPtr hwnd, int dwTime, AnimateWindowEmu dwFlags);
clxsl_huang
2009-04-20
打赏
举报
回复
[Quote=引用 2 楼 wuyq11 的回复:]
通过DIV实现弹出。
参考
[/Quote]
试了一下很好用。
jhdxhj
2009-04-20
打赏
举报
回复
顶
happychou
2009-04-20
打赏
举报
回复
学习了。。
gadev
2009-04-20
打赏
举报
回复
有空试试,谢谢
zhangjianliang01
2009-04-20
打赏
举报
回复
明白了,不在一个文件中需要加上相应的文件名,哎
zhangjianliang01
2009-04-20
打赏
举报
回复
[Quote=引用 9 楼 zgke 的回复:]
WinForm
private void button1_Click(object sender, EventArgs e)
{
Form2 _Form = new Form2();
_Form.Size = new Size(100, 100);
int _X = Screen.PrimaryScreen.Bounds.Width - _Form.Size.Width;
int _Y = SystemInformation.WorkingArea.Height - _Form.Size.Height;
_Form.StartPosition = FormStartPosition.Ma…
[/Quote]
怎么不能使用啊,加上using System.Runtime.InteropServices;后 有错误 说:
当前上下文中不存在名称“AnimateWindow”
当前上下文中不存在名称“AnimateWindowEmu”
聖少俊
2009-04-19
打赏
举报
回复
学习
yangqidong
2009-04-19
打赏
举报
回复
winform可以
在Form_Load里面,设置this.Top=Screen.PrimaryScreen.WorkingArea.Height
再使用定时器每隔一定时间减小窗体Top属性,直到this.Top==Screen.PrimaryScreen.WorkingArea.Height-this.Height
wuyq11
2009-04-19
打赏
举报
回复
通过DIV实现弹出。
参考
love001game
2009-04-19
打赏
举报
回复
javascript
winform
窗体
在桌面
右下角
显示(任务栏上方)
一:创建
右下角
进行显示的
窗体
二:在启动页面添加以下属性 下面428对应
右下角
显示
窗体
的长,251对应
窗体
的宽 int x = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width - 428; int y = System.Windows.Forms.Screen.PrimaryScreen.WorkingAr...
C# winform实现
窗体
最小化时显示到(桌面
右下角
)系统托盘
用C#开发winform桌面程序时,程序启动后,默认是显示在桌面而且在任务栏中有对应的图标。有的时候,需要在程序最小行后,将程序图标仅仅显示在系统托盘,不在任务栏中显示。 这时,我们需要用到winform控件NotifyIcon,此控件用于运行时期间在 windows 任务栏右侧的通知区域显示图标。实现
窗体
最小化时显示到(桌面
右下角
)系统托盘的步骤如下: 1. 新建
窗体
,将NotifyIcon控件拖放到
窗体
上 2. 设置NotifyIcon控件的Icon属性,Icon的值是显示在系统托盘的图标(和
窗体
的
WPF-设置
窗体
显示在
右下角
private void Button_Click(object sender, RoutedEventArgs e) { Win_Display_Position win = new Win_Display_Position(); //显示在
右下角
double xpos = this.Left+this...
C# winform
窗体
在桌面
右下角
显示(任务栏上方)
举例要在form2中打开form3
窗体
,在
右下角
显示。 form2中写: form3 form=new form3(); form.show(); 在from3自动生成代码中写: public Form3() { InitializeComponent(); int x =
C#
窗体
最小化到
右下角
托盘的方法
用VC实现过最小化到
右下角
托盘,相比较而言C#更方便直观,主要有以下几个步骤:1. 添加一个notifyIcon 控件notifyIcon的ICON图标设置成想显示的图标2. 增加
窗体
的最小化事件 //点击最小化到托盘 private void Form1_SizeChanged(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Minimiz
C#
111,126
社区成员
642,541
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章