摘要:
//回车切换焦点方法,只需在界面设置控件的TabIndex即可,以后用protectedoverrideboolProcessCmdKey(refMessagemsg,KeyskeyData) {if((!(ActiveControlisButton)) && (keyData ==Keys.Up || keyData ==Keys.Down || keyData ==Keys.Enter)) {if(keyData ==Keys.Enter) { System.Windows.Forms.SendKeys.Send("{TAB}");returntrue; 阅读全文
随笔档案-2011年11月
Winform 开发中的一些小技巧
2011-11-03 23:09 by 鹏雕, 246 阅读, 收藏,
摘要:
1. 如何创建一个可改变大小没有标题栏的窗体?(How to create a form with resizing borders and no title bar?)form1.Text = string. Empty;form1.ControlBox = false;2. 如何在.NET的Windows窗体上启用XP主题集?(How to use XP Themes with Windows Forms using the .NET?)确认你的控件中FlatStyle属性已经修改为System,再修改Main方法。static void Main(){Application.Enable 阅读全文
Union all 分别排序
2011-11-01 20:05 by 鹏雕, 936 阅读, 收藏,
摘要:
CreatePROCEDURE[dbo].[JiuChanPinLiuTongJiLuProcess]( @JiuChanPinIddecimal(18,0))ASselect*from(selecttop100PercentUpdateDate日期,'从'+ShouHuoName+'到'+GouHuoNameas流通方式fromVWJiuChanPinLiuTongJiLuwhereBCLiuTongLeiXingId=1andJiuChanPinId=@JiuChanPinIdorderbyUpdateDate)munionallselect*from(se 阅读全文
GridView 的空模板使用方法
2011-11-01 19:20 by 鹏雕, 322 阅读, 收藏,
摘要:
当GridView绑定的数据源为Null或查询绑定的DataSet等为空时GridView显示没有数据的提示有如下几种方式一是用GridView的EmptyDataText-------------------------------<asp:GridView ID="gv_Info" runat="server" CssClass="GridView" EditRowStyle-HorizontalAlign="center" AutoGenerateColumns="True" All 阅读全文
浙公网安备 33010602011771号