- 博客(23)
- 资源 (20)
- 收藏
- 关注
转载 关于webbrowser无法播放html5的解决方法
如连接:http://www.dotblogs.com.tw/larrynung/archive/2012/10/15/77505.aspx var appName = Process.GetCurrentProcess().MainModule.ModuleName;5 Registry.SetValu
2014-03-18 14:59:00
7864
转载 Wpf DataGrid 行双击功能
private void radGridView1_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Point aP = e.GetPosition(radGridView1); IInputElement obj = radGridView1.InputHit
2013-05-20 16:41:34
12152
转载 wpf中多窗口线程处理
wpf中多窗口线程处理描述如下在主窗口中打开一个线程,这个线程去启动一个新的窗口。代码如下启动新线程: Thread newWindowThread = new Thread(new ThreadStart(ThreadStartingPoint)); newWindowThread.SetApartmentState(ApartmentState
2013-03-14 11:33:38
1521
原创 获取一个进程中所有打开的窗体句柄
public delegate bool EnumWindowsProc(IntPtr p_Handle, int p_Param); [DllImport("user32.dll")] public static extern int EnumWindows(EnumWindowsProc ewp, int lParam); [DllImpo
2013-03-13 13:56:57
5736
原创 把另一进程的窗体界面嵌入到当前程序中
//用到的API函数 [DllImport("user32.dll", SetLastError = true)] private static extern long SetParent(IntPtr hWndChild, IntPtr hWndNewParent); private const int GWL_STYLE = (-16);
2013-03-12 13:30:40
1448
原创 计算文字文字的长度
/// /// 计算文字的长度 /// /// private double MeasureTextWidth() { FormattedText formattedText = new FormattedText( txtContent.Te
2012-12-14 09:39:44
798
转载 wpf listView实现Grid,并且奇偶行显示不同颜色
首先写一个继承IValueConverter的背景颜色转换类 public sealed class BackgroundConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureIn
2012-11-23 15:21:53
5848
原创 Estjs combobox多级联动 去除第一次加载所有都读取的问题
在界面上创建时,先过滤掉数据var cityStore=Ext.create('Tpshop.store.member.ComboSupplierCity'); cityStore.on("load",function(store,records,options){ store.filterBy(function(record
2012-09-04 21:29:52
1001
原创 获取系统当前网络的类型
/// /// 获得所有工作状态的网络适配器名称 /// /// public static NetworkInterface[] GetNetCardAdapters() { List netCardAdapters = new List(); N
2012-06-08 17:10:28
824
转载 C# 中WPF BitmapImage资源无法释放的问题
// Read byte[] from png fileBinaryReader binReader = new BinaryReader(File.Open(filePath, FileMode.Open));FileInfo fileInfo = new FileInfor(filePath);byte[] bytes = binReader.ReadBytes((int)file
2011-10-24 17:59:02
4338
原创 WPF 获取当前文本光标所在窗口的坐标
TextBox控件 public Point GetPositionFromCharacterIndex() { int index = txtBox.CaretIndex; if (txtBox.Text
2011-09-29 10:35:40
4252
原创 龙之谷
<br />今天我在多玩龙之谷专区看了很多关于龙之谷的精华文章!有带视频的加点模拟器、副本专题+模拟器、发龙之谷激活码活动等等很多内容。 玩龙之谷,还是要上多玩的专区啊! 专区链接:http://dn.duowan.com/ 目前还在发龙之谷激活码!详情点击:http://dn.duowan.com/1005/136609992720.html 这挺不错的,有什么不会的也可以发贴询问,有很多人抢着回答的。 我的论坛ID是:6633539赶紧来
2010-06-20 07:15:00
941
转载 vfp 操作excel
VFP全面控制EXCEL 收藏 VFP和Excel都可以用来进行处理数据库表格,如果巧妙地将二者的优点结合起来,将会大大方便我们的工作。比如我们可以利用VFP进行处理数据,而利用Excel的预览打印功能进行报表打印。这就需要我们在VFP中直接来控制Excel。下面就在开发VFP应用项目时对Excel的控制作一下介绍:*!* 1.创建Excel对象oExcel=Createobject("E
2009-10-22 10:29:00
7766
2
转载 C#创建Active控件并发布
C#创建Active控件并发布(一)(2007-09-29 11:29:21)标签:其他频道 分类:IT技术分享与探讨 首先,建立一个WinForm控件项目MaliActive,并拖入一个Label控件,文字设为MailActiveTest此时编译项目,可以生成MaliActive.dll。将此dll拷贝到IIS的网站目录下,然
2009-08-21 17:53:00
1308
转载 SQL修改字段默認值方法
declare @tablename varchar(30)declare @fieldname varchar(50)declare @sql varchar(300)set @tablename=dncdeta1set @fieldname=descriptionset @sql= select @sql=@sql+ alter table [+a.name+]
2009-08-13 14:59:00
709
转载 C#怎样判断系统是否为静音?
C#怎样判断系统是否为静音? 看似简单的问题,我搜遍所有中文网,包括csdn各大门户网站, 没有找到源代码! 我百度,google无数次,终于在一个乌克兰的网站上找到源代码. // by www.vjsdn.com 易学网.C#程序爱好者的快乐园! using System;using System.Collections.Generic;using System.Text;usi
2009-08-04 09:09:00
2240
3
转载 .net安裝程序制作以及卸載
1.右鍵點擊解決方案,選擇添加安裝部署2.右擊安裝部署專案,選中view進入file System3.在file system中的application folder中,添加應用程序所需的文件,以用添加主程序輸出. 快捷方式1,在file system右擊選中想要做快捷方式的文件,並創建快捷,名字隨便,再把該快捷拖動到DeskTop folder或者program menu
2009-07-10 15:33:00
440
原创 文件監聽程序
protected override void OnStart(string[] args) { FileSystemWatcher watch = new FileSystemWatcher(@"D:/TestFolder/"); watch.NotifyFilter = NotifyFilters.LastAccess | Notif
2009-06-13 10:29:00
473
转载 Windows Services 安裝
用C#创建Windows服务(Windows Services) Windows服务在Visual Studio 以前的版本中叫NT服务,在VS.net启用了新的名称。用Visual C# 创建Windows服务不是一件困难的事,本文就将指导你一步一步创建一个Windows服务并使用它。这个服务在启动和停止时,向一个文本文件中写入一些文字信息。第一步:创建服务框架 要创建一个
2009-06-13 09:51:00
1332
原创 html動態增刪table
function AddRow(){ var table=document.getElementById("tab1"); if (table==null) { var div=document.getElementById("tabContain"); div.innerHTML=""; table=document.getElementById("tab1"); } var row =t
2009-05-23 09:00:00
627
转载 iis與.net安裝順序導至出出錯誤解決方法
运行.NET3.5网站,在IIS管理器中的asp.net版本中只需选择.NET2.0就可以。这里有解释:3.0 3.5中都是额外的功能的,但他们的编译后的代码还是2.0的,因为.NET框架是基于静态编译的代码,因此用2.0即可解释了。而.NET与IIS安装先后也有关系,如果先安装IIS后.NET,一般不会出错,但如果先安装.NET后IIS,会出错,这是就得用到aspnet_regiis.
2009-05-18 13:08:00
780
转载 Installation failed for component Windows Mobile 5.0 SDK R2 for Pocket PC. MSI returned error code
Delete the following directory:/Documents and Settings//Local Settings/Application Data/Microsoft/CoreCon and start the installation (highly recommended to backup before deleting)Look
2009-04-06 11:30:00
1245
转载 asp.net下载文件
.net中下载文件的方法 一、//TransmitFile实现下载 protected void Button1_Click(object sender, EventArgs e) { /* 微软为Response对象提供了一个新的方法TransmitFile来解决使用Response.BinaryWrite 下载超过400mb
2009-03-11 12:41:00
1313
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人