_slient

导航

2016年1月9日 #

c#学习

摘要: 本人学生一枚,将自己的平时积累的一些东西分享出来,不知道对不对,对的希望能帮助一些人,不对的还望高手不吝赐教,多多评论,多多指教! 阅读全文

posted @ 2016-01-09 17:39 _slient 阅读(171) 评论(0) 推荐(0)

c#图片浏览

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文

posted @ 2016-01-09 17:24 _slient 阅读(1226) 评论(0) 推荐(0)

c#判断键盘按键

摘要: private void txtNo_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) // 判断 按键的事件, 13 表示按下了 回车键 ... 阅读全文

posted @ 2016-01-09 17:21 _slient 阅读(2405) 评论(0) 推荐(0)

c#文件操作

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文

posted @ 2016-01-09 17:11 _slient 阅读(325) 评论(0) 推荐(0)

c#杨辉三角

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文

posted @ 2016-01-09 17:02 _slient 阅读(463) 评论(0) 推荐(0)

c#数据库编程

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using Sys... 阅读全文

posted @ 2016-01-09 16:53 _slient 阅读(4841) 评论(0) 推荐(0)

c#获取数据库表中的值

摘要: int i=dataGridView3.RowCount -1 ; int j; for (j = 0; j < i; j++) { if (textBox1.Text.Trim() ... 阅读全文

posted @ 2016-01-09 16:48 _slient 阅读(1641) 评论(0) 推荐(0)

c#标签飘过

摘要: private void myMove() { label2.Left = label2.Left + 20; //当标签移除画面,重新复位 if (label2.Left > this.Width) ... 阅读全文

posted @ 2016-01-09 16:44 _slient 阅读(197) 评论(0) 推荐(0)

c#静态类在两个winform之间传递数据

摘要: public class ZTCD { public static string ZJZ = ""; public static string jg = ""; public static int CD = 0; public s... 阅读全文

posted @ 2016-01-09 16:41 _slient 阅读(1360) 评论(0) 推荐(0)

更换winform皮肤

摘要: Visual Studio 2005工具箱上右击选择“选择项”,慢慢等...在弹出的“选择工具箱项”选项卡中,点击“浏览”,找到IrisSkin2.dll存放的位置,双击, 你会发现多了个“SkinEngine”,确定。 将公共控件里的“SkinEngine”,拖到窗体上,将皮肤文件*.ssk在“解... 阅读全文

posted @ 2016-01-09 16:37 _slient 阅读(285) 评论(0) 推荐(0)

c#文本框记忆功能

摘要: var source = new AutoCompleteStringCollection(); source.AddRange(new string[] { "110", ... 阅读全文

posted @ 2016-01-09 16:33 _slient 阅读(733) 评论(0) 推荐(0)

跑马灯+动态获取当前时间+pictureBox随机赋值

摘要: /// /// 把label 中的内容重新赋值 /// /// /// /// private void timer1_Tick(object sender, EventArgs e) ... 阅读全文

posted @ 2016-01-09 16:19 _slient 阅读(235) 评论(0) 推荐(0)

c#网页浏览

摘要: private void button1_Click(object sender, EventArgs e) { string text = textBox1.Text; Uri uri = new Uri("http://"+textB... 阅读全文

posted @ 2016-01-09 16:10 _slient 阅读(237) 评论(0) 推荐(0)

c#截取文件路径

摘要: private void button1_Click(object sender, EventArgs e) { string s=textBox1.Text.Trim(); int idex = s.IndexOf("\\"); while (s.IndexOf("\\")!=-1) { t... 阅读全文

posted @ 2016-01-09 16:08 _slient 阅读(1241) 评论(0) 推荐(0)

c#简单线程

摘要: private void button1_Click(object sender, EventArgs e) { if (b == false) { b = true; th = ... 阅读全文

posted @ 2016-01-09 16:04 _slient 阅读(213) 评论(0) 推荐(0)

c#验证码

摘要: private void pictureBox1_Click(object sender, EventArgs e) { Random r = new Random(); string str = null; ... 阅读全文

posted @ 2016-01-09 15:55 _slient 阅读(221) 评论(0) 推荐(0)