如题目就象QQ隐藏在任务栏。当有什么信息更新时,有一个提示框提醒用户(客户端的。不是网站上的)请各位指教!
解决方案 »
- 如何把textbox里的路径传递给外部调用的EXE程序
- 界面:如何使用SplitContainer实现界面的伸展
- 在c#wpf里若要将程序打包成安装文件怎么把程序里的.wav文件也打包进去
- 如何在c#中的treeview的节点前加个"+"的图标
- 散个分,庆祝我完成了个小程序。常识题题库系统-个人知识学习辅助系统
- 如何让C#的winform窗口不能被拖大拖小?
- 如何得到排序后的DataGrid中某一行得信息?
- 高难度的问题,各位大侠请帮忙啊
- 新手 请各位帮忙!先谢了!!
- C#里面有没有像VB下的FormatPercent()样的方法?
- 图片上传中的改变图片大小的问题??急急~
- 已知xml文件中一个节点,怎么把这个节点删除?
[email protected]
謝謝
[email protected]
[email protected]
[email protected]
我也学习。发我一份
谢谢
麻烦楼主也发我份,谢谢
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
2. 工具栏右键-选择项-.net fw组件-选择-找到那个choicontrols.dll,确定
3. 所有的控件都会出现在工具栏里了。把choimessage拖过去就可以了。
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace SoundClew
{
public partial class Form6 : Form
{
public Form6(string sMess)
{
InitializeComponent();
this.textBox1.Text = sMess;
} private int heightMax, widthMax;
public int HeightMax
{
set
{
heightMax = value;
}
get
{
return heightMax;
}
} public int WidthMax
{
set
{
widthMax = value;
}
get
{
return widthMax;
}
} public void ScrollShow()
{
this.Width = widthMax;
this.Height = 0;
this.Show();
this.timer1.Enabled = true;
} public int StayTime = 6000;
private void ScrollUp()
{
if (Height < heightMax)
{
this.Height += 3;
this.Location = new Point(this.Location.X, this.Location.Y - 3);
}
else
{
this.timer1.Enabled = false;
this.timer2.Enabled = true;
}
} private void ScrollDown()
{
if (Height > 3)
{
this.Height -= 3;
this.Location = new Point(this.Location.X, this.Location.Y + 3);
}
else
{
this.timer3.Enabled = false;
this.Close();
}
} private void timer1_Tick(object sender, System.EventArgs e)
{
ScrollUp();
} private void timer2_Tick(object sender, System.EventArgs e)
{
timer2.Enabled = false;
timer3.Enabled = true;
} private void timer3_Tick(object sender, System.EventArgs e)
{
ScrollDown();
} private void Form6_Load(object sender, EventArgs e)
{
Screen[] screens = Screen.AllScreens;
Screen screen = screens[0];//获取屏幕变量
this.Location = new Point(screen.WorkingArea.Width - widthMax - 20, screen.WorkingArea.Height - 34);//WorkingArea为Windows桌面的工作区
this.timer2.Interval = StayTime;
} }
麻烦楼主也发我份,谢谢
我已經收到你的郵件了
[email protected]
邮箱[email protected]
谢谢啦~~~
谢谢楼主了。
方便的话,给我也传一份。:)