随笔分类 -  WinForm

摘要:http://www.cnblogs.com/freeliver54/archive/2009/02/11/1388173.html 阅读全文
posted @ 2014-01-24 16:01 勇气 阅读(217) 评论(0) 推荐(0)
摘要:例子:在vs2010中创建一个winform的解决方案,然后定义一个类Person,Person.cs 的代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace test{ public class Person { public string Name { get; set; } public int Age { get; set; } public string six { get; set; } public DateTime Birthday { g 阅读全文
posted @ 2013-07-05 15:51 勇气 阅读(574) 评论(1) 推荐(0)
摘要:http://home.cnblogs.com/group/topic/29829.html对C# WinForm开发系列收集的控件使用方面进行整理, 加入了一些文章, 不断补充充实, 完善这方面. 基础 - 常用控件 C# WinForm开发系列 - CheckBox/Button/Label/ProgressBar WinForm下CheckedListBox的数据绑定 Winform 下无闪烁走马灯效果实现 c#,winform,progressbar+labe,联动显示进度 C# WinForm开发系列 – TextBox 只能输入数字的TextBox---补充 (C#)为 TextB 阅读全文
posted @ 2011-05-03 17:13 勇气 阅读(580) 评论(0) 推荐(0)
摘要:function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+ 阅读全文
posted @ 2011-04-15 16:48 勇气 阅读(7145) 评论(0) 推荐(1)
摘要:ExecuteReader()----执行命名,返回一个类型化的 IDataReader简化代码如下:using (SqlConnection conn = new SqlConnection(connString)) { string sqlString = "proc_InsertNewContact"; SqlCommand sqlCmd = new SqlCommand(sqlString,conn); sqlCmd.CommandType = CommandType.StoredProcedure; sqlCmd.Parameters.AddWithValue(& 阅读全文
posted @ 2011-04-11 10:16 勇气 阅读(1084) 评论(0) 推荐(0)
摘要:private void Delete_Click(object sender, EventArgs e) {SqlConnection conn = new SqlConnection("数据库连接串");conn.Open();SqlDataAdapter daAuthors = new SqlDataAdapter("Select * From student", conn); DataSet dsPubs = new DataSet("Pubs");daAuthors.FillSchema(dsPubs, SchemaType 阅读全文
posted @ 2011-04-10 16:25 勇气 阅读(12338) 评论(2) 推荐(1)
摘要:private void text_Load(object sender, EventArgs e) { } /// <summary> /// 生成缩略图 /// </summary> /// <param name="strOraginalPath"></param> /// public void GetThumb(string strOraginalPath) { int _iThumbMaxWidth = 400;//缩略图的最大宽度 int _iThumbMaxHeight = 300;//缩略图的最大高度 Sys 阅读全文
posted @ 2011-04-09 17:02 勇气 阅读(614) 评论(0) 推荐(0)
摘要: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;using System.IO;using System;namespace WinFoMultimedia{ public partial class Form1 : Form { public Form1() { InitializeCompo 阅读全文
posted @ 2011-04-07 18:23 勇气 阅读(347) 评论(0) 推荐(0)