上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: 1,在Main中加入此语句DevExpress.UserSkins.BonusSkins.Register();SkinManager.EnableFormSkins();DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Seven Classic");Application.EnableVisualStyles();2,主窗口内加入此代码,然后在初始化时调用即可private void InitSkins(){ SkinHelper.InitSkinGallery(ribbonGalleryBarIt 阅读全文
posted @ 2013-11-22 17:45 pnljs 阅读(230) 评论(0) 推荐(0) 编辑
摘要: C#窗体中的TextBox 的MaxLength:与Nvarchar类似,不论是什么,最多只能为2。我我11我1 阅读全文
posted @ 2013-11-08 11:19 pnljs 阅读(285) 评论(0) 推荐(0) 编辑
摘要: Dev13.1 用的是DocumentViewer,上面的一排按钮,是自动生成的,生成方法为:加了DocumentViewer后,控件右上角有个小三角,点一下,在弹出框中选择"Create Standand ToolBar"就可以生成那一排按钮。form与Report绑定绑定:在Form1的Load事件中写XtraReport1 report1 = new XtraReport1();//这个是你建的一个报表report1.DS = ds;//自己写一个数据集就好了。report1.Init();//自定义的绑定方法,在下面可以看到。this.documentViewer1 阅读全文
posted @ 2013-11-07 14:41 pnljs 阅读(7909) 评论(5) 推荐(1) 编辑
摘要: 需要用到void ReportLogForm_Deactivate(object sender, EventArgs e){ this.Close();} 阅读全文
posted @ 2013-11-05 14:45 pnljs 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 注意: 是GridView的Double而不是GridControlprivate void gridView1_DoubleClick(object sender, EventArgs e){ GridView detailGrid = (sender as GridView); GridHitInfo hitInfo = (detailGrid.CalcHitInfo((e as MouseEventArgs).Location)); if (hitInfo != null && (hitInfo.InRow || hitInfo.InRowCell) && 阅读全文
posted @ 2013-11-05 14:44 pnljs 阅读(1077) 评论(0) 推荐(1) 编辑
摘要: //DEBUG必须大写,其它是不认的#if (DEBUG) Console.WriteLine("Debug");#else Console.WriteLine("非Debug");#endif 阅读全文
posted @ 2013-08-16 10:05 pnljs 阅读(878) 评论(0) 推荐(0) 编辑
摘要: int[, ,] a = new int[3, 1, 3] { { {1,2,3} }, { {1,2,3} }, { {1,2,3} } };int[, ,] b = new int[3, 3, 1] { { { 1 }, { 2 }, { 3 } }, { { 4 }, { 5 }, { 6 } }, { { 7 }, { 8 }, { 9 } } };int[, ,] c = new int[1, 3, 3] { { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } } }; 阅读全文
posted @ 2013-08-08 16:59 pnljs 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1、判定一个给定的C#路径是否有效,合法通过Path.GetInvalidPathChars或Path.GetInvalidFileNameChars方法获得非法的C#路径/文件名字符,可以根据它来判断路径中是否包含非法字符;2、如何确定一个C#路径字符串是表示目录还是文件使用Directory.Exists或File.Exist方法,如果前者为真,则路径表示目录;如果后者为真,则路径表示文件上面的方法有个缺点就是不能处理那些不存在的文件或目录。这时可以考虑使用Path.GetFileName方法获得其包含的文件名,如果一个路径不为空,而文件名为空那么它表示目录,否则表示文件;3、获得C#路. 阅读全文
posted @ 2013-08-04 11:19 pnljs 阅读(624) 评论(0) 推荐(0) 编辑
摘要: bb 为nvarchar(50)CAST(bb AS int)select MAX(CAST(bb AS int)) from AAA 阅读全文
posted @ 2013-07-30 15:12 pnljs 阅读(206) 评论(0) 推荐(0) 编辑
摘要: private void SetEnable(bool flag){ Type type = this.richEditControl1.GetType(); //ric即RichEditControl实例 PropertyInfo info = type.GetProperty("HorizontalScrollBar", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public); ScrollBarBase vs = (ScrollBarBase)info.GetValue(richEdi 阅读全文
posted @ 2013-07-26 10:02 pnljs 阅读(373) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页