代码改变世界

阅读排行榜

获取应用程序所有打开的窗口

2010-06-11 08:08 by 观海看云, 776 阅读, 收藏,
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace CH5{ public partial class CH5_De... 阅读全文

CONVERT函数全部用法

2009-11-05 21:28 by 观海看云, 724 阅读, 收藏,
摘要: --功能概述:CONVERT函数全部用法--做成时间:2008/09/18格式:CONVERT(data_type,expression[,style])说明:(datetime,smalldatetime)与字符串类型(nchar,nvarchar,char,varchar)相互转换的时候才用到的函数的3个参数,第1个参数为,转换后的大小,第2个为转换日期的字段或函数,第3个为转换的格式,具体如... 阅读全文

WPF使用资源字典组织资源

2011-03-29 00:28 by 观海看云, 713 阅读, 收藏,
摘要: 首先在解决方案资源管理器中添加一个或多个资源词典(资源字典),并向多个资源字典中添加对象资源信息。示例中新建了三个资源字典,并向资源字典中添加了对象资源,代码如下。第一个资源字典:(第一个资源字典命名为MyDictionary1.xaml)<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><ImageBrush 阅读全文

C#中改变显示器的分辨率

2013-06-07 17:34 by 观海看云, 709 阅读, 收藏,
摘要: using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Runtime.InteropServices;namespace ScreenResolution{ public class Form1 : System.Windows.Forms.Form { public enum DMDO { DEFAULT = 0, D90 ... 阅读全文

DataGridViewComboBoxColumn 使用

2009-12-25 11:23 by 观海看云, 695 阅读, 收藏,
摘要: 用于编辑单元格时间时发生private void dgvBreed_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { EditingControl = e.Control; if (e.Control.GetType() == typeof(DataGridViewComboBo... 阅读全文
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 58 下一页