随笔分类 -  c#知识点

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页
摘要:https://blog.csdn.net/weixin_44899642/article/details/128791899 c#dataGridView控件水平滚动条不显示的原因1.最主要的在dataGridView控件属性中的ScrollBars是否设为Both Both代表水平和垂直方向根据 阅读全文
posted @ 2024-01-23 10:49 yinghualeihenmei 阅读(762) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/mrbug/p/6904039.html double虽然64位,但其精度低,故其可以表示的范围大decimal虽然是128位,但由于其用了较多的位来表示其精度,只好牺牲表示范围了. 1> 三者是精度不同的浮点数,如下图 参见:https:/ 阅读全文
posted @ 2024-01-19 18:20 yinghualeihenmei 阅读(1487) 评论(0) 推荐(0)
摘要:原文链接:https://blog.csdn.net/qq_43500067/article/details/89598945 方法重写:1、重写方法的方法名,参数列表必须相同,返回类型可以相同也可以是原类型的子类型。2、重写方法不能比原方法抛出更多的异常。3、重写方法的访问权限不能缩小4、方法重写 阅读全文
posted @ 2024-01-16 18:29 yinghualeihenmei 阅读(33) 评论(0) 推荐(0)
摘要:原文链接:https://www.pianshen.com/article/1051540568/ 一、简介: 利用Themes我们可以很容易的更改控件、页面的风格,而不需要修改我们的代码和页面文件。Themes文件被单独的放在1个App_Themes文件夹下面,与你的程序是完全分开的。 二、怎么使 阅读全文
posted @ 2024-01-16 18:13 yinghualeihenmei 阅读(45) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/mimengjiangnan/archive/2007/11/03/947912.html 实现功能:动态控制网站程序中服务器控件的外观。 实现步骤: 一在网站根目录下创建文件夹:App_Themes。这个文件夹名字不能改成别的。 二在App 阅读全文
posted @ 2024-01-16 18:03 yinghualeihenmei 阅读(16) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/ishibin/archive/2012/08/14/2638054.html 默认的aspx页面都是继承自System.Web.UI.Page,Page基类定义了很多需要预执行的事件,这些事件虽没有在aspx页面中显示的定义或提及,但它们仍 阅读全文
posted @ 2024-01-16 18:02 yinghualeihenmei 阅读(200) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/qiudan/archive/2012/11/12/2766876.html using System;using System.Data;using System.Configuration;using System.Web;using S 阅读全文
posted @ 2024-01-16 17:55 yinghualeihenmei 阅读(38) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/yeminglong/archive/2012/10/16/2725664.html 一、ASP.NET 母版页和内容页中的事件 母版页和内容页都可以包含控件的事件处理程序。对于控件而言,事件是在本地处理的,即内容页中的控件在内容页中引发事件 阅读全文
posted @ 2024-01-16 15:09 yinghualeihenmei 阅读(26) 评论(0) 推荐(0)
摘要:1、 string value = dataRow["ColumnName"].ToString(); // "ColumnName"为要获取值的列名 2、 int index = 0; // 第一列的索引位置为0 object value = dataRow[index]; 3、 foreach 阅读全文
posted @ 2024-01-09 14:10 yinghualeihenmei 阅读(977) 评论(0) 推荐(0)
摘要:原文链接:https://pythonjishu.com/qxepdysexyunich/ C#中的Directory.Delete()方法用于删除指定路径下的目录,其中包括目录中所有的文件和文件夹。该方法支持递归删除目录及其子目录,同时也支持保留目录树中的空目录。该方法存在多个重载形式,可以根据传 阅读全文
posted @ 2023-12-29 13:59 yinghualeihenmei 阅读(908) 评论(1) 推荐(0)
摘要:原文链接:https://zhidao.baidu.com/question/21113577.html 一般数据都是写入数据库,客户端软件会用到注册表。我看有不少数据写入注册表,就很疑惑,为什么不写入数据库。所以查下什么样的情况下,数据写入注册表。 软件在安装和应用的过程中需要保存一些东西,如路径 阅读全文
posted @ 2023-12-28 16:04 yinghualeihenmei 阅读(99) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/SoftWareIe/p/8757270.html 0.属性和方法 //属性方法 advTree1.DragDropEnabled = !advTree1.DragDropEnabled;//控制是否可以拖动节点 advTree1.Multi 阅读全文
posted @ 2023-12-26 11:58 yinghualeihenmei 阅读(214) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/a7373773/archive/2009/07/27/1532236.html 一直在用DevComponents.DotNetBar2 控件近来探索Add()和AddRange()的性能问题。一样用极为不专业不科学的方法,比较DevCom 阅读全文
posted @ 2023-12-26 11:51 yinghualeihenmei 阅读(258) 评论(0) 推荐(0)
摘要:原文链接:http://www.manongjc.com/detail/30-ilegkuktbfgosdt.html Enum 类的 Parse() 方法。此方法用于将一个或多个枚举常量的名称或数值的字符串表示形式转换为等效的枚举对象。这是两次重载的方法。 用法: object Enum.Pars 阅读全文
posted @ 2023-12-20 10:22 yinghualeihenmei 阅读(586) 评论(0) 推荐(0)
摘要:原文链接:1、https://blog.csdn.net/weixin_44481764/article/details/97941984 2、https://pythonjishu.com/cbmxvlotimcvekz/ 最近接触到发送短信的功能,有多种方法实现,(第三方类、使用短信接口提供商的 阅读全文
posted @ 2023-12-19 15:59 yinghualeihenmei 阅读(483) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/zeping/archive/2011/08/05/2128296.html 阅读全文
posted @ 2023-12-18 15:26 yinghualeihenmei 阅读(33) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/alai7150/article/details/128283559 如果有一个DataTable已经有了数据,可以通过 DataTable.Columns.Add(new DataColumn("NewCol0", typeof(string))) 来添 阅读全文
posted @ 2023-12-11 17:59 yinghualeihenmei 阅读(525) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/baxianhua/p/9082820.html 有的东西你天天在用,但未必就代表你真正了解它,正如我之前所了解的 static 。 一、静态类 静态类与非静态类的重要区别在于静态类不能实例化,也就是说,不能使用 new 关键字创建静态类类型的变量。在 阅读全文
posted @ 2023-12-08 10:56 yinghualeihenmei 阅读(1829) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/GISRSMAN/p/4707554.html 总结N种方法,待补充完善 一、 Array.IndexOf int id = Array.IndexOf(string[],"要查找的值"); if(id!=-1) 或写成 if(Array.I 阅读全文
posted @ 2023-12-07 10:35 yinghualeihenmei 阅读(1057) 评论(1) 推荐(0)
摘要:原文链接:https://blog.csdn.net/polloo2012/article/details/82110642 System.Diagnostics.Process.Start(); 能做什么呢?它主要有以下几个功能: 1、打开某个链接网址(弹窗)。 2、定位打开某个文件目录。 3、打 阅读全文
posted @ 2023-12-06 10:33 yinghualeihenmei 阅读(210) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页