![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 60
Sounms
这个作者很懒,什么都没留下…
展开
-
Unsafe code may only appear if compiling with /unsafe
来源:http://blog.csdn.net/gefangliang/article/details/6681607Unsafe code may only appear if compiling with /unsafe要在vs.net中使用unsafe code 我们必须在项目的属性中设置一下,设置方法如下:点项目属性->配置属性->生成->常规中:允转载 2013-07-24 17:07:45 · 436 阅读 · 0 评论 -
C# 显示系统当前时间的不同格式
private void timer_Tick(object sender, System.EventArgs e) { textBox1.Text=DateTime.Now.ToLongDateString()+" "+DateTime.Now.Hour.ToString()+"时"+DateTime.Now.Minute.ToString()+"分"+DateTime.Now.Sec原创 2013-07-24 16:53:44 · 634 阅读 · 0 评论 -
对话框的应用
22.使用ColorDialog调用Windows颜色对话框using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using Syst原创 2013-09-12 16:07:44 · 483 阅读 · 0 评论 -
常见窗体设置
1.控制窗体大小 private void Form1_Load(object sender, EventArgs e) { this.MaximumSize = new Size(300, 300);//设置窗体最大值 this.MinimumSize = new Size(100, 100);//设置窗体最小值原创 2013-09-12 10:17:19 · 931 阅读 · 0 评论 -
特殊窗体设置
13.设置不规则窗体 private void Form1_Load(object sender, EventArgs e) { this.FormBorderStyle = FormBorderStyle.None; this.Size = new Size(130, 120); this.Locat原创 2013-09-12 15:07:42 · 836 阅读 · 0 评论