niwalker() 兄请来领分!!!!!谢谢! snewxf (心疤) 兄。。代码共享出来。。大家共同学习一下嘛。:) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;namespace 不规则窗体1{ /// <summary> /// Form1 的摘要说明。 /// </summary> public class Form1 : System.Windows.Forms.Form { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.Container components = null; public Form1() { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // } /// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.BackColor = System.Drawing.Color.White; this.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("$this.BackgroundImage")));//这儿忝加一你要的图片比如说圆型。 this.ClientSize = new System.Drawing.Size(192, 96); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "Form1"; this.Text = "Form1"; this.TransparencyKey = System.Drawing.Color.White; this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseDown); this.DoubleClick += new System.EventHandler(this.Form1_DoubleClick); this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseUp); this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseMove); } #endregion /// <summary> /// 应用程序的主入口点。 /// </summary> /// private int beginX; private int beginY; private bool mousedown; [STAThread] static void Main() { Application.Run(new Form1()); } private void Form1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { this.mousedown=true; this.beginX=e.X; this.beginY=e.Y; } private void Form1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { if (this.mousedown) { this.Left+=e.X-this.beginX; this.Top+=e.Y-this.beginY; } } private void Form1_DoubleClick(object sender, System.EventArgs e) { Application.Exit(); } private void Form1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { this.mousedown=false; } }} 如何实现用openXmlPowerTools获取word2010全部的批注? 设置文件属性问题 如何触发网页的JavaScript vs2005一个提示信息,如何解决? xml操作 如何让程序延时一段时间 get set属性疑问? 关于Infragistics的SSUltraGrid控件的问题. 考验人的时候到了,求树型结构数据算法 一个字符串过长,如何换行??? 终于可以下载Windows.Net RC1了!!! 一个月的工作白做了。都是微软惹得祸?
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;namespace 不规则窗体1
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null; public Form1()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent(); //
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
} /// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
} #region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackColor = System.Drawing.Color.White;
this.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("$this.BackgroundImage")));//这儿忝加一你要的图片比如说圆型。
this.ClientSize = new System.Drawing.Size(192, 96);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "Form1";
this.Text = "Form1";
this.TransparencyKey = System.Drawing.Color.White;
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseDown);
this.DoubleClick += new System.EventHandler(this.Form1_DoubleClick);
this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseUp);
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseMove); }
#endregion /// <summary>
/// 应用程序的主入口点。
/// </summary>
///
private int beginX;
private int beginY;
private bool mousedown;
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void Form1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
this.mousedown=true;
this.beginX=e.X;
this.beginY=e.Y;
} private void Form1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
if (this.mousedown)
{
this.Left+=e.X-this.beginX;
this.Top+=e.Y-this.beginY;
}
} private void Form1_DoubleClick(object sender, System.EventArgs e)
{
Application.Exit();
} private void Form1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
this.mousedown=false;
}
}
}