上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 30 下一页
摘要: 阅读全文
posted @ 2019-06-18 17:06 星星c# 阅读(669) 评论(0) 推荐(0)
摘要: 第一步:在Window.Resources里定义右键菜单 <Window.Resources> <ContextMenu x:Key="ContextMenu"> <MenuItem Name="NewFile" Header="新建文件夹"/> <Separator></Separator> <M 阅读全文
posted @ 2019-06-12 11:16 星星c# 阅读(4413) 评论(0) 推荐(1)
摘要: Window.GetWindow(this).Close(); 阅读全文
posted @ 2019-06-04 15:09 星星c# 阅读(760) 评论(0) 推荐(0)
摘要: 1、建解决方案(本示使用的是 framework4.0)如图: 2、添加 System.Data.SQLite引用 如图: 3、制作sqlite数据库文件 使用的是navcat 建立一张Employee表 4、把新建的数据库文件起名为:TestSQLite 然后拷贝到程序的bin/Debug里,如图 阅读全文
posted @ 2019-05-31 10:15 星星c# 阅读(1907) 评论(0) 推荐(2)
摘要: 第一步:建立一个模版文件,如下: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200 阅读全文
posted @ 2019-05-25 11:00 星星c# 阅读(713) 评论(0) 推荐(0)
摘要: 原始效果图如下: 如何去掉红线部分的边距? 答: padding margin 都不起作用 需要使用如下方式: 注意上面红色标注部分 阅读全文
posted @ 2019-05-22 00:54 星星c# 阅读(595) 评论(1) 推荐(0)
摘要: 宽度:SetColumnWidth方法里的第二个参数要乘以256,因为这个参数的单位是1/256个字符宽度,所以要乘以256才是一整个字符宽度。高度:.Height 属性后面的值的单位是:1/20个点,所以要想得到一个点的话,需要乘以20。HeightInPoints后面的单位是点,可以不用乘。还可 阅读全文
posted @ 2019-04-18 09:43 星星c# 阅读(7910) 评论(2) 推荐(0)
摘要: CellRangeAddress region = new CellRangeAddress(2, 4, 0, 0); ((HSSFSheet)sheet1).SetEnclosedBorderOfRegion(region, BorderStyle.Thin, NPOI.HSSF.Util.HSS 阅读全文
posted @ 2019-04-18 09:39 星星c# 阅读(4724) 评论(0) 推荐(0)
摘要: 在使用ajax向后台传值的时候,有的时候一个字段需要传多个值,这种情况下会想到用数组形式来传,比如: 1 2 3 4 5 6 7 8 9 10 $.ajax({ type: "post", async: true, data: { "records": ["123","456","789"] }, 阅读全文
posted @ 2019-04-06 10:36 星星c# 阅读(391) 评论(0) 推荐(0)
摘要: <select id="@Model.Item1" name="@Model.Item1" data-bind="value:@Model.Item1" style="width:100%;"></select> 如果加上:data-bind="value:@Model.Item1" 就报错: In 阅读全文
posted @ 2019-03-27 20:52 星星c# 阅读(818) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 30 下一页