![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
Zephan_Zhai
这一辈子你可以不成功,但是不能不成长。
展开
-
打开会话框选择文件与选择文件夹
private void btnUser_Click(object sender, EventArgs e) { //选择文件 OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Multiselect = true;转载 2013-12-20 10:13:16 · 655 阅读 · 0 评论 -
fastreport中几个函数意思
最近用到fastreport,但对里边一些方法不是很清晰,查过资料后有了简单了解,现写下来以防忘记。FastReport.Report rt;DataTable dt = new DataTable();rt.Load("模版名.frx");//加载模版,括号中为模版路径rt.RegisterData(dt, "object");//注册数据,将dt中数据注册到模版原创 2014-03-19 18:48:03 · 2598 阅读 · 0 评论 -
设置StatusStrip控件中ToolStripStatusLabel的位置
在学习过程中,发现了三种方法可以调整StatusStrip控件中ToolStripStatusLabel的位置,具体如下:方法1:设置ToolStripStatusLabel的padding属性,通过改变第一个和第三个参数值可以调整其左右位置。方法2:在状态栏所有项目(StatusLabel、ProgressBar、DropDownButton等)前添加一个空白的Sta原创 2014-04-01 15:51:11 · 5322 阅读 · 0 评论 -
datagridview中显示行号
通过RowPostPaint事件绘制行号,代码如下:转载 2014-05-05 15:10:13 · 615 阅读 · 0 评论 -
C# 实现拖动无边框窗体
Point mouseOff;//鼠标移动位置变量 bool leftFlag;//标签是否为左键 private void Form1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left)转载 2014-04-04 16:37:35 · 630 阅读 · 0 评论 -
C# 制作圆角label
private void DrawRoundRect(Label label) { float X = (float)(label.Width); float Y = (float)(label.Height); PointF[] points = {转载 2014-06-04 12:52:02 · 7079 阅读 · 1 评论