一个小问题!winform 怎么设置当点击鼠标左键时,窗体缩小10%吗,点击右键,窗体放大10%。if (e.Button = MouseButtons.Left) { 然后怎么写啊?求解答, 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 缩小this.width=this.width*0.9this.height=this.height*0.9增长this.width=this.width*1.1this.height=this.height*1.1 我自己解决了 if (e.Button == MouseButtons.Left) { this.Width = this.Width * 9/10; this.Height = this.Height * 9/10; } if (e.Button == MouseButtons.Right) { this.Width = this.Width * 11/10; this.Height = this.Height * 11/10; }谢谢大家 如果是固定10%时。load的时候把长宽存起来_w=this.width*0.1;_h=this.height*0.1;Left时this.width -= _w;this.height -= _h;right时this.width += _w;this.height += _h;如果想每次都放大、缩小 10%this.width = this.width*0.9;this.height = this.height*0.9;this.width=this.width*1.1this.height=this.height*1.1 程序运行一段时间后会卡死 C#如何在类的方法之间处理大的数据量? 问一个程序监控的问题?? 计算器的小小问题 Excel 11.0 Objct Library组件的版本问题 自己写的一个小东西,但是遇到点问题,祈求高手指点 高分求教小灵通短信SP开发思想及案例! C#怎样打开关闭CDROM? 怎么没有using Excel??? 急切问题(打印字符串)!谢谢 刚接触C#, 委托是什么东西?可以 public event事件名 as 委托名 这样吗? linq to sql中的一个复杂查询的问题??
this.width=this.width*0.9
this.height=this.height*0.9
增长this.width=this.width*1.1
this.height=this.height*1.1
{
this.Width = this.Width * 9/10;
this.Height = this.Height * 9/10;
}
if (e.Button == MouseButtons.Right)
{
this.Width = this.Width * 11/10;
this.Height = this.Height * 11/10;
}
谢谢大家
load的时候把长宽存起来
_w=this.width*0.1;
_h=this.height*0.1;Left时
this.width -= _w;
this.height -= _h;right时
this.width += _w;
this.height += _h;如果想每次都放大、缩小 10%
this.width = this.width*0.9;
this.height = this.height*0.9;this.width=this.width*1.1
this.height=this.height*1.1