2013年7月18日

C#获取键盘的ASSIC

摘要: MssageBox.sho(((int)(e.keychar)).tostring()); 阅读全文

posted @ 2013-07-18 10:25 杨柳清枫2012 阅读(156) 评论(0) 推荐(0)

Vs 2012 去空白

摘要: 快捷键 ctrl+r+s 阅读全文

posted @ 2013-07-18 10:23 杨柳清枫2012 阅读(129) 评论(0) 推荐(0)

2013年6月26日

VS2010中 错误无法嵌入互操作类型“SpeechLib.SpVoiceClass”。请改用适用的接口

摘要: 1、提示:在VS2010,在引用COM组件的时候,出现了无法嵌入互操作类型“……”,请改用适用的接口的错误提示。 2、解决方案: 选中项目中引入的dll,鼠标右键,选择属性,把“嵌入互操作类型”设置为False。 阅读全文

posted @ 2013-06-26 23:35 杨柳清枫2012 阅读(698) 评论(0) 推荐(0)

2013年6月3日

坐标平移,旋转,伸缩

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace 坐标{ public partial class Form1 : Form { public Form1() { InitializeComponent(); ... 阅读全文

posted @ 2013-06-03 22:11 杨柳清枫2012 阅读(203) 评论(0) 推荐(0)

2013年5月13日

下拉列表框

摘要: View Code using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace 下拉列表框{ public partial class Form1 : Form { public Form1() { InitializeCom... 阅读全文

posted @ 2013-05-13 19:45 杨柳清枫2012 阅读(128) 评论(0) 推荐(0)

listBox1

摘要: View Code using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication7{ public partial class Form1 : Form { public Form1() { ... 阅读全文

posted @ 2013-05-13 13:33 杨柳清枫2012 阅读(99) 评论(0) 推荐(0)

panel面板

摘要: View Code using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace 面板{ public partial class Form1 : Form { public Form1() { InitializeCompon... 阅读全文

posted @ 2013-05-13 10:37 杨柳清枫2012 阅读(126) 评论(0) 推荐(0)

numericUpDown

摘要: View Code private void numericUpDown1_ValueChanged(object sender, EventArgs e) { label1.Text = ""; int n = Convert.ToInt32(numericUpDown1.Value); for (int i = 0; i < n;i++) { label1.Text += "@"; } } 阅读全文

posted @ 2013-05-13 10:22 杨柳清枫2012 阅读(106) 评论(0) 推荐(0)

Label 超链接LinkLabel

摘要: View Code using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace 按钮{ public partial class Form1 : Form { public Form1() { InitializeCompon... 阅读全文

posted @ 2013-05-13 10:04 杨柳清枫2012 阅读(278) 评论(0) 推荐(0)

按钮

摘要: Name属性:指示代码中用来标识该对象的名称。AutoSize属性:自动调整自身的大小以适应其内容的大小。BackColor:组件背景色。BackroundIMage:控件的背景图片BackroundIMageLayout 用于组件背景图片的布局。Enabled:是否启用改控件。FlatStyle:用户将鼠标移动到空间上并单击时该控件的外观。Font:用于设置空间中上的文本字体。Text:与控件关联的文本View Code namespace 按钮{ partial class Form1 { /// <summary> /// 必需的设计器变量。 ... 阅读全文

posted @ 2013-05-13 09:35 杨柳清枫2012 阅读(139) 评论(0) 推荐(0)

导航