用C#如何实现象Office助手的功能(浮在最上层,可以任意拖动)????????? http://microsoft.com/msagent/downloads.htm可以下载Microsoft Agent的四个精灵!在创建程序的用户界面以前先导入Agent Control这个ActiveX控件。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 那东西其实就是一个被切割的怪异形状窗体;和Windows Media Player的那些皮肤是一个道理的!只不过是变换切割(有动作吗!) 还要把它定位到你的主窗体上 C#帮助里有说明!不过还是下载一个比较容易:下面是一个简单的动画窗体:using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Drawing.Drawing2D;namespace ShapedForm{/// <summary>/// Summary description for Form1./// </summary>public class Form1 : System.Windows.Forms.Form{private System.Windows.Forms.Timer timer1;private System.ComponentModel.IContainer components;private float f;public Form1(){//// Required for Windows Form Designer support//InitializeComponent();//// TODO: Add any constructor code after InitializeComponent call//}/// <summary>/// Clean up any resources being used./// </summary>protected override void Dispose( bool disposing ){if( disposing ){if (components != null) {components.Dispose();}}base.Dispose( disposing );}#region Windows Form Designer generated code/// <summary>/// Required method for Designer support - do not modify/// the contents of this method with the code editor./// </summary>private void InitializeComponent(){this.components = new System.ComponentModel.Container();this.timer1 = new System.Windows.Forms.Timer(this.components);// // timer1// this.timer1.Interval = 50;this.timer1.Tick += new System.EventHandler(this.timer1_Tick);// // Form1// this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);this.ClientSize = new System.Drawing.Size(292, 273);this.Name = "Form1";this.Text = "Form1";this.Load += new System.EventHandler(this.Form1_Load);}#endregion/// <summary>/// The main entry point for the application./// </summary>[STAThread]static void Main() {Application.Run(new Form1());}protected override void OnPaint(PaintEventArgs e) {GraphicsPath gp = new GraphicsPath();gp.AddEllipse(20,20,110,110);Matrix RotationTransform = new Matrix(1,0, 0,1,1,1); // 旋转矩形PointF TheRotationPoint = new PointF(110.0f, 110.0f); // 旋转点// 矩形旋转f度RotationTransform.RotateAt(f, TheRotationPoint); // 转换图形位置gp.Transform(RotationTransform);e.Graphics.DrawPath(Pens.Red, gp);f=f+10;// 设置区域(可见部分)this.Region=new Region(gp);}private void timer1_Tick(object sender, System.EventArgs e){this.Refresh();}private void Form1_Load(object sender, System.EventArgs e){}}} 使用MSAgent,装了.net应该就有了。 还是自己写的好 精灵控件?那东西不太Cool在说谁都 不爱穿满大街都有人穿的衣服吧? (没有恶意!)不过C#编过于复杂的 不规则窗体. 好像很慢!简单点的还好有个朋友编一个随音乐跳舞的小人简直象蜗牛(后来还是改用VC了!)便这东西如果比较复杂的!建议用VC 不是托管的阿!不然和C#的速度没什么区别! excel导入的问题 请教各位:(在平板电脑上运行的程序)我在Panel中添加了一个Panel列表,各个Panel之间有空隙,我将低层的Panel增加滚轮控制,在空隙处我可以用手拖动 有关用文本框给书数组赋值的问题 在OA系统中如何备份“上传文件”? ∵∴∵∴∵∴hide 时主窗体会闪 如何解决?? 如何将textbox的内容导出到txt或者xml文件并保存? C#中缓存和静态成员效率上有什么不同 c# 2005 的水晶报表怎么弄啊? 请问在c#中如何实现对话框功能? 帮忙看看这段程序 有谁做过移动编程的,哪里有资料可以参考俄! 如何在Form(或其他控件)上启动Word的本地编辑?
和Windows Media Player的那些皮肤是一个道理的!
只不过是变换切割(有动作吗!) 还要把它定位到你的主窗体上
C#帮助里有说明!
不过还是下载一个比较容易:下面是一个简单的动画窗体:using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Drawing.Drawing2D;namespace ShapedForm
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Timer timer1;
private System.ComponentModel.IContainer components;private float f;public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();//
// TODO: Add any constructor code after InitializeComponent call
//
}/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.timer1 = new System.Windows.Forms.Timer(this.components);
//
// timer1
//
this.timer1.Interval = 50;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(292, 273);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);}
#endregion/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}protected override void OnPaint(PaintEventArgs e)
{
GraphicsPath gp = new GraphicsPath();
gp.AddEllipse(20,20,110,110);Matrix RotationTransform = new Matrix(1,0, 0,1,1,1); // 旋转矩形
PointF TheRotationPoint = new PointF(110.0f, 110.0f); // 旋转点// 矩形旋转f度
RotationTransform.RotateAt(f, TheRotationPoint); // 转换图形位置
gp.Transform(RotationTransform);
e.Graphics.DrawPath(Pens.Red, gp);
f=f+10;// 设置区域(可见部分)
this.Region=new Region(gp);
}private void timer1_Tick(object sender, System.EventArgs e)
{
this.Refresh();
}private void Form1_Load(object sender, System.EventArgs e)
{}
}
}
不过C#编过于复杂的 不规则窗体. 好像很慢!简单点的还好
有个朋友编一个随音乐跳舞的小人简直象蜗牛(后来还是改用VC了!)
便这东西如果比较复杂的!建议用VC 不是托管的阿!
不然和C#的速度没什么区别!