- 博客(4)
- 资源 (2)
- 收藏
- 关注
转载 C#实现窗体控件随窗体大小改变(包括字体大小)
private float X; private float Y; private void setTag(Control cons) foreach (Control con in cons.Controls) { con.Tag = con.Width +":" + con.Height + ":" + con.Left + ":" + con.Top + ":" + con.Font...
2018-09-26 11:45:16 5381 2
转载 C#跨线程操作控件
问题: 在WinForm中使用多线程时,常常遇到一个问题,当在子线程(非UI线程)中修改一个控件的值:比如修改进度条进度,时会抛出如下错误 Cross-thread operation not valid: Control ‘XXX’ accessed from a thread other than the thread it was created on. 在VS2005或者更高版本中,只要不...
2018-09-26 11:32:52 304 1
转载 C#控件根据窗体改变大小
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using ...
2018-08-18 17:03:51 317
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人