上一页 1 ··· 294 295 296 297 298 299 300 301 302 ··· 311 下一页
摘要: 原代码: private void textBox1_KeyPress(object sender, KeyPressEventArgs e) {   if(!char.IsDigit(e.KeyChar)) e.Handled = true;   //'\b'是退格键值   if(e.KeyChar=='\b'||e.KeyChar=='.') e.Handled ... 阅读全文
posted @ 2009-07-26 10:50 emanlee 阅读(1360) 评论(0) 推荐(0)
摘要: C# WinForm开发系列 - Open-Source Controls     整理了一些在WinForm开发中可以使用的开源组件.(文章及相关代码搜集自网络,仅供学习参考,版权属于原作者! ). 1. 仿office 2007的Ribbon风格面板(该控件模仿office 2007的Ribbon风格,显示操作面板。) 2. .NET中最全功能的表格控件 [翻... 阅读全文
posted @ 2009-07-26 10:50 emanlee 阅读(50674) 评论(0) 推荐(6)
摘要:   Add, Edit, and Delete in DataGridView with Paging http://www.codeproject.com/KB/grid/DataGridView_manipulation.aspx 4.45 out of 5   DataGridView paging using virtual mode http://b... 阅读全文
posted @ 2009-07-26 10:49 emanlee 阅读(907) 评论(0) 推荐(0)
摘要: for ACCESS 数据库: update a, b set a.name=b.name1 where a.id=b.id for SQL Server 数据库: "update a set a.name=b.name1 from a,b where a.id=b.id" 以下在SQL Serve 阅读全文
posted @ 2009-07-24 19:03 emanlee 阅读(35232) 评论(1) 推荐(1)
摘要: -- Try:/* format (123) 456-7 to 123-4567 */ select SUBSTRING('(123) 456-7', 2, 3) + '-' + SUBSTRING('(123) 456-7', 7, 3) + SUBSTRING('(123) 456-7', 11... 阅读全文
posted @ 2009-07-24 19:03 emanlee 阅读(392) 评论(0) 推荐(0)
摘要: Issue:canGrow=True, canShrink=False All the content are shrinked to the left in Safari. Export report as Excel, sometimes, it is in disorder format.canGrow=False, canShrink=False Some of the long text... 阅读全文
posted @ 2009-07-23 13:24 emanlee 阅读(1630) 评论(0) 推荐(0)
摘要: 存储过程中如果有临时表,或者有复杂的业务逻辑,此时,要生成DataSet会失败。CREATE PROCEDURE [dbo].[usp] AS BEGIN SET NOCOUNT ON SELECT * INTO #temptable FROM cust... 阅读全文
posted @ 2009-07-23 12:57 emanlee 阅读(454) 评论(0) 推荐(0)
摘要: 通过继承系统的ComboBox,写一个新控件ComboBoxEx,重写它的焦点以及文本更新事件,就可以轻松实现拼音首字母检索了。例如:输入 gd ,就可以出现“广东”。 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.Windows.Forms; 5 using Syst... 阅读全文
posted @ 2009-07-21 20:59 emanlee 阅读(3999) 评论(0) 推荐(0)
摘要: Question: datagridview里有一列checkbox,为何单击选中不了它,也就是打不上勾.不知为何啊,请大家帮帮忙 Code Snippet             // chkId        ... 阅读全文
posted @ 2009-07-21 19:57 emanlee 阅读(7238) 评论(0) 推荐(0)
摘要: Gets or sets the text content of the RadComboBox control. Use RadComboBox1.Text NOT Use RadComboBox1.SelectedItem.Text 阅读全文
posted @ 2009-07-21 19:57 emanlee 阅读(248) 评论(0) 推荐(0)
上一页 1 ··· 294 295 296 297 298 299 300 301 302 ··· 311 下一页