为啥不出皮肤了
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace CallCenter
{
public partial class Table : Form
{
public Table()
{
InitializeComponent();
this.skinEngine1.SkinFile = "RealOne.ssk";
} private Point mouseOffset; //记录鼠标指针的坐标
private bool isMouseDown = false; //记录鼠标按键是否按下
///---------------添加三个关于鼠标的事件 private void Table_MouseUp(object sender, MouseEventArgs e)
{
// 修改鼠标状态isMouseDown的值
// 确保只有鼠标左键按下并移动时,才移动窗体
if (e.Button == MouseButtons.Left)
{
isMouseDown = false;
}
}private void Table_MouseMove(object sender, MouseEventArgs e)
{
if (isMouseDown)
{
Point mousePos = Control.MousePosition;
mousePos.Offset(mouseOffset.X, mouseOffset.Y);
Location = mousePos;
this.skinEngine1.SkinFile = "RealOne.ssk";
}
}private void Table_MouseDown(object sender, MouseEventArgs e)
{
int xOffset;
int yOffset; if (e.Button == MouseButtons.Left)
{
xOffset = -e.X - SystemInformation.FrameBorderSize.Width;
yOffset = -e.Y - SystemInformation.CaptionHeight -
SystemInformation.FrameBorderSize.Height;
mouseOffset = new Point(xOffset, yOffset);
isMouseDown = true;
}
}private void close_Click(object sender, EventArgs e)
{
this.Close();
}private void min_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;}
private void Table_Load(object sender, EventArgs e)
{
// 创建the ToolTip
ToolTip toolTip1 = new ToolTip();
// 设置显示样式
toolTip1.AutoPopDelay = 5000;
toolTip1.InitialDelay = 1000;
toolTip1.ReshowDelay = 500;
// Force the ToolTip text to be displayed whether or not the form is active.
toolTip1.ShowAlways = true; // 设置伴随的对象.
toolTip1.SetToolTip(this.btucall, "呼叫");
toolTip1.SetToolTip(this.btuanswer, "接听");
toolTip1.SetToolTip(this.btutrip, "三方");
toolTip1.SetToolTip(this.btusx, "示闲");
toolTip1.SetToolTip(this.btudrop,"挂断");
toolTip1.SetToolTip(this.bturest, "休息");
toolTip1.SetToolTip(this.incoming, "来电");
}private void incoming_Click(object sender, EventArgs e)
{
Incoming ic = new Incoming();
ic.ShowDialog();
}private void btucall_Click(object sender, EventArgs e)
{
Calling cl = new Calling();
cl.ShowDialog();
}private void btutrip_Click(object sender, EventArgs e)
{
Calling cl = new Calling();
cl.ShowDialog();
}private void btuwh_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("callAccounting.html");
}private void label2_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("Callemployees.html");}private void label3_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("knowledgeBase.html");
}}}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace CallCenter
{
public partial class Table : Form
{
public Table()
{
InitializeComponent();
this.skinEngine1.SkinFile = "RealOne.ssk";
} private Point mouseOffset; //记录鼠标指针的坐标
private bool isMouseDown = false; //记录鼠标按键是否按下
///---------------添加三个关于鼠标的事件 private void Table_MouseUp(object sender, MouseEventArgs e)
{
// 修改鼠标状态isMouseDown的值
// 确保只有鼠标左键按下并移动时,才移动窗体
if (e.Button == MouseButtons.Left)
{
isMouseDown = false;
}
}private void Table_MouseMove(object sender, MouseEventArgs e)
{
if (isMouseDown)
{
Point mousePos = Control.MousePosition;
mousePos.Offset(mouseOffset.X, mouseOffset.Y);
Location = mousePos;
this.skinEngine1.SkinFile = "RealOne.ssk";
}
}private void Table_MouseDown(object sender, MouseEventArgs e)
{
int xOffset;
int yOffset; if (e.Button == MouseButtons.Left)
{
xOffset = -e.X - SystemInformation.FrameBorderSize.Width;
yOffset = -e.Y - SystemInformation.CaptionHeight -
SystemInformation.FrameBorderSize.Height;
mouseOffset = new Point(xOffset, yOffset);
isMouseDown = true;
}
}private void close_Click(object sender, EventArgs e)
{
this.Close();
}private void min_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;}
private void Table_Load(object sender, EventArgs e)
{
// 创建the ToolTip
ToolTip toolTip1 = new ToolTip();
// 设置显示样式
toolTip1.AutoPopDelay = 5000;
toolTip1.InitialDelay = 1000;
toolTip1.ReshowDelay = 500;
// Force the ToolTip text to be displayed whether or not the form is active.
toolTip1.ShowAlways = true; // 设置伴随的对象.
toolTip1.SetToolTip(this.btucall, "呼叫");
toolTip1.SetToolTip(this.btuanswer, "接听");
toolTip1.SetToolTip(this.btutrip, "三方");
toolTip1.SetToolTip(this.btusx, "示闲");
toolTip1.SetToolTip(this.btudrop,"挂断");
toolTip1.SetToolTip(this.bturest, "休息");
toolTip1.SetToolTip(this.incoming, "来电");
}private void incoming_Click(object sender, EventArgs e)
{
Incoming ic = new Incoming();
ic.ShowDialog();
}private void btucall_Click(object sender, EventArgs e)
{
Calling cl = new Calling();
cl.ShowDialog();
}private void btutrip_Click(object sender, EventArgs e)
{
Calling cl = new Calling();
cl.ShowDialog();
}private void btuwh_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("callAccounting.html");
}private void label2_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("Callemployees.html");}private void label3_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("knowledgeBase.html");
}}}
解决方案 »
- 如何能够将H264的码流保存为某种媒体文件,如mp4
- vs2010程序中自定义的按钮上的默认图片怎么去掉啊?
- winform中控件遍历问题
- 这是什么错误,怎么用了属性反而不好用
- 我做得一个异步通讯的程序,可是2边都得不到对方得数据,很怪。。。这个第一次做,请帮忙看看
- DataSet的保存XML
- 如何调用别人服务器上的JS函数来读取网站数据
- 怎样让WinForm的界面是一个本地的网页?如何处理网页元素与WinForm的交互?
- 问一下发行软件(商业用途)使用Emgu Cv需要购买?是否侵权?
- 很简单的一个关于字符串的操作问题(等)
- 为什么SaveFileDialog保存的文件路径不能打开
- 紧急问个问题,怎么在传入的params object[] args中插入项
帮你顶一下