求高手解答,麻烦各位朋友了 我想实现类似于QQ提示新闻的小窗口在右下角托盘处显示出来,我自己做了一个窗体,但是有谁知道怎么在程序中移动窗体的位置吗?可不可以让窗体在指定的地方显示呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果只是想实现这个托盘的功能 是有控件的 notifyicon之类 已经用了,但是要出提示框,里面要显示HTML的东西 利用Visual C#实现任务栏通知窗口 http://tech.sina.com.cn/s/2006-08-30/09021110614.shtml 这是我做的一个类似QQ消息的窗体,你可以参考下!不知道你要的是不是这样的!using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace MoveWindow{ public partial class frmMessage : Form { Point pt = new Point(); public frmMessage() { InitializeComponent(); } private void frmMessage_Load(object sender, EventArgs e) { pt.X = Screen.PrimaryScreen.Bounds.X + Screen.PrimaryScreen.Bounds.Width-this.Width; pt.Y = Screen.PrimaryScreen.Bounds.Y + Screen.PrimaryScreen.Bounds.Height; this.Location = pt; timer1.Start(); } private void timer1_Tick(object sender, EventArgs e) { if (Location.Y > Screen.FromControl(this).WorkingArea.Height - this.Height) { pt.Y -= 2; Location = pt; } else { return; } } }} 我用socket做二进制流的局域网文件传送出了bug XP机器上安装了vs2008,在form上添加一个水晶报表控件。 急求!如何在指定文件夹创建文件 fileupload的使用 C#中long和Int64有何不同? Form的ControlBox属性为false时的怪问题 winForm专用群QQ群:148745 {0}是什么意思? 难题啊 C#中如何判断一个变量是不是整数型?就象VB里的:IsNumeric() 如何用子窗口做登陆界面,一子窗口调用另一子窗口??? 如何把html代码转换word文件,用C#语言。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace MoveWindow
{
public partial class frmMessage : Form
{
Point pt = new Point(); public frmMessage()
{
InitializeComponent();
} private void frmMessage_Load(object sender, EventArgs e)
{
pt.X = Screen.PrimaryScreen.Bounds.X + Screen.PrimaryScreen.Bounds.Width-this.Width;
pt.Y = Screen.PrimaryScreen.Bounds.Y + Screen.PrimaryScreen.Bounds.Height;
this.Location = pt;
timer1.Start();
} private void timer1_Tick(object sender, EventArgs e)
{
if (Location.Y > Screen.FromControl(this).WorkingArea.Height - this.Height)
{
pt.Y -= 2;
Location = pt;
}
else
{
return;
}
}
}
}