//注意在工程上添加系统引用System.Drawing 否则System点不出Drawing来。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using DevComponents.DotNetBar;
namespace TaskBarFloatWnd{ public partial class Form1 : Office2007Form { public Form1() { InitializeComponent(); }
private void button1_Click(object sender, EventArgs e) {
TaskBarWnd taskWnd = new TaskBarWnd(); System.Drawing.Rectangle r = System.Windows.Forms.Screen.GetWorkingArea(taskWnd); taskWnd.Location = new System.Drawing.Point(r.Right - taskWnd.Width, r.Bottom - taskWnd.Height); taskWnd.Show(); } }}