摘要: <Window.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Resource/ucWindowDictionary.xaml"></ResourceDictionary> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Window.Resource. 阅读全文
posted @ 2012-11-13 15:16 Jerome's Blog 阅读(1411) 评论(0) 推荐(0) 编辑
摘要: 1. 引用当前工程的资源(注意xxxx.png的build action 应设置为Resource 或Embedded Resource)<ImageBrush ImageSource="/currentAssemblyName;component/subfoldername/xxxx.png"/>2. 引用其它工程的资源 (注意xxxx.png的build action 应设置为Resource 或Embedded Resource)<ImageBrush ImageSource="pack://application:,,,/otherAss 阅读全文
posted @ 2012-11-13 15:14 Jerome's Blog 阅读(840) 评论(0) 推荐(0) 编辑
摘要: 前段时间在研究winform如何绘制半透明的窗体,要达到预期的效果很是麻烦,用WPF就简单多了先来看看效果:实现windows1.xaml<Window x:Class="JStore.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300&q 阅读全文
posted @ 2012-11-05 14:22 Jerome's Blog 阅读(5361) 评论(0) 推荐(0) 编辑
摘要: 名称说明Action获取表示“Action”类别的 CategoryAttribute。Appearance获取表示“Appearance”类别的 CategoryAttribute。Asynchronous获取表示“Asynchronous”类别的 CategoryAttribute。Behavior获取表示“Behavior”类别的 CategoryAttribute。Category获取此属性 (Attribute) 应用于的属性 (Property) 或事件的类别名称。Data获取表示“Data”类别的 CategoryAttribute。Default获取表示“Default”类别的 阅读全文
posted @ 2012-10-30 13:55 Jerome's Blog 阅读(291) 评论(0) 推荐(0) 编辑
摘要: // 修改值 private void dgvOrderIn_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { DataGridViewTextBoxEditingControl CellEdit = (DataGridViewTextBoxEditingControl)e.Control; CellEdit.SelectAll(); CellEdit.KeyPres... 阅读全文
posted @ 2012-10-25 09:55 Jerome's Blog 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 十进制编码 (对应)缩写字符(或功能/解释) 0 NUL(null) 空字符 1 SOH(start of headline) 标题开始 2 STX (start of text) 正文开始 3  ETX (end of text) 正文结束 4  EOT (end of transmission) 传输结束 5  ENQ (enquiry) 请求 6  ACK (acknowledge) 收到通知 7  BEL (bell) 响铃 8  BS (backspace) 退格 9 HT (horizontal tab) 水平制表符 10 LF (NL line ... 阅读全文
posted @ 2012-10-24 16:33 Jerome's Blog 阅读(11134) 评论(0) 推荐(1) 编辑
摘要: 编辑虚拟机设置设置共享文件夹路径选择光驱镜像文件安装VMware Tools进入虚拟机,用光驱安装VMware Tools安装后重启虚拟机,打开我的电脑出现了共享的驱动器 阅读全文
posted @ 2012-10-15 12:28 Jerome's Blog 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 如已绑定过数据源:DataTable dt = (dataGridView1.DataSource as DataTable)如未绑定过数据源: public DataTable GetDgvToTable(DataGridView dgv) { DataTable dt = new DataTable(); // 列强制转换 for (int count = 0; count < dgv.Columns.Count; count++) { DataCol... 阅读全文
posted @ 2012-10-11 10:14 Jerome's Blog 阅读(34627) 评论(0) 推荐(4) 编辑
摘要: 如何创建强命名程序集===================我的Visual Studio 20081. 在Visual Studio中的class library工程上点右键, 选择属性.2.选择左边的签名选项卡.3. 勾选为程序集签名复选框. 在下拉列表中选择<新建...>.4. 在弹出的对话框中给snk文件起一个名字. 按OK.5. 程序集强命名完成. 会生成一个****.snk文件如何查看强命名程序集的public key token=========================有时候你需要在web.config文件中或者其他地方引用自己写的强命名程序集, 你需要写入像下 阅读全文
posted @ 2012-10-09 16:35 Jerome's Blog 阅读(842) 评论(0) 推荐(0) 编辑
摘要: private void Form1_Activated(object sender, EventArgs e){ 控件.Focus();} 阅读全文
posted @ 2012-09-28 14:17 Jerome's Blog 阅读(274) 评论(0) 推荐(0) 编辑