09 2009 档案

摘要:private void cm_DrawItem(object sender, DrawItemEventArgs e) { try { Color cms1 = SkinForm.GetColor("gv", "abcolor"); Color cms2 = SkinForm.GetColor("gv", "rhbcolor"); Color cms3 = SkinForm.GetColor("... 阅读全文
posted @ 2009-09-24 10:52 94cool 阅读(298) 评论(0) 推荐(0) 编辑
摘要:当访问默认首页default.aspx时,会自动跳转到login.aspx页面上请求登录,随便输入用户名和密码,点击“登录”按钮,会回到首页,并显示当前登录的用户名。 Web.config <configuration> <system.web> <compilation debug="true"/> <authentica... 阅读全文
posted @ 2009-09-22 11:39 94cool 阅读(192) 评论(0) 推荐(0) 编辑
摘要:一、showModalDialog和showModelessDialog有什么不同?   showModalDialog:被打开后就会始终保持输入焦点。除非对话框被关闭,否则用户无法切换到主窗口。类似alert的运行效果。   showModelessDialog:被打开后,用户可以随机切换输入焦点。对主窗口没有任何影响(最多是被挡住一下而以。:P) 二、怎样才让在showModalDialog... 阅读全文
posted @ 2009-09-22 11:16 94cool 阅读(171) 评论(0) 推荐(0) 编辑
摘要:在添加代码的时候,只能添在TextArea的最后面,无法在光标之前插入,获得TextArea中的位置,但是如果TextArea中有很多内容的时候,会显得很闪烁。其代码如下。   function getPos(obj)   {   obj.focus();   var workRange=document.selection.createRange();   obj.select();   va... 阅读全文
posted @ 2009-09-22 11:14 94cool 阅读(376) 评论(0) 推荐(0) 编辑
摘要:让标题栏文字循环变化 ======= 例子一 =================================== 1.在<head></head>中加入下列代码。 <script language="JavaScript"> var msg = "大量大量的实用经验,请访问YC网盟网友制作"; var speed = 300; var msgud = " "... 阅读全文
posted @ 2009-09-22 11:11 94cool 阅读(163) 评论(0) 推荐(0) 编辑
摘要:<SCRIPT LANGUAGE="JavaScript"> var s; s += "\r\n网页可见区域宽:"+ document.body.clientWidth; s += "\r\n网页可见区域高:"+ document.body.clientHeight; s += "\r\n网页可见区域宽:"+ document.body.offsetWidth? +" (包括边线的宽)... 阅读全文
posted @ 2009-09-22 11:10 94cool 阅读(165) 评论(0) 推荐(0) 编辑
摘要:1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 <table border oncontextmenu=return(false)><td>no</table> 可用于Table 2. <body onselectstart="return false"> 取消选取、防止复制 ... 阅读全文
posted @ 2009-09-22 11:09 94cool 阅读(125) 评论(0) 推荐(0) 编辑
摘要:2. 开始DirectShow旅程 这个章节的内容主要是编写DirectShow应用所需的一些基本概念,可以把它当作一个高级介绍,理解这些内容只需具备一般的编程和有关多媒体的知识。2.1. 设置DirectShow开发的编译环境 这节内容描述了如何来编译DirectShow应用。你可以使用命令行形式来编译一个工程,也可以在Microsoft Visual Studio集成环境下(包含VC++)实现... 阅读全文
posted @ 2009-09-21 15:56 94cool 阅读(337) 评论(0) 推荐(0) 编辑
摘要:1. DirectShow介绍 DirectShow是一个windows平台上的流媒体框架,提供了高质量的多媒体流采集和回放功能。它支持多种多样的媒体文件格式,包括ASF、MPEG、AVI、MP3和WAV文件,同时支持使用WDM驱动或早期的VFW驱动来进行多媒体流的采集。DirectShow整合了其它的DirectX技术,能自动地侦测并使用可利用的音视频硬件加速,也能支持没有硬件加速的系统。 Di... 阅读全文
posted @ 2009-09-21 15:56 94cool 阅读(604) 评论(0) 推荐(0) 编辑
摘要:private void format()//耗时方法 { doing = true; try { if (Do(mergestr, file1,0) == 0) { int ret = Change(file1, colorring); try { if (File.Exists(file2)) { File.SetAttributes(file2, FileAttributes.Normal... 阅读全文
posted @ 2009-09-21 10:59 94cool 阅读(187) 评论(0) 推荐(0) 编辑
摘要:public static bool XmlExChange(int oldnum, int newnum) { bool res = true; try { string path = Config.PlayMusicListPath; if (File.Exists(path)) { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(pat... 阅读全文
posted @ 2009-09-09 15:44 94cool 阅读(302) 评论(0) 推荐(0) 编辑
摘要:string strValue = ""; string strErrorMessage = ""; try { //SQL Server2000 SP4的值8.00.194 //string strPath = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion"; string... 阅读全文
posted @ 2009-09-09 09:55 94cool 阅读(833) 评论(0) 推荐(0) 编辑
摘要:public class ClassDataGridRefresh{ public ClassDataGridRefresh() { } #region DataGrid刷新 /// <summary> /// DataGrid刷新 /// </summary> /// <param name="DG">DataGrid控件</param> /// ... 阅读全文
posted @ 2009-09-09 09:53 94cool 阅读(215) 评论(0) 推荐(0) 编辑
摘要:利用上了windows api,当一个窗体激活的时候会给另外一个发消息,具体实现如下:using System; using System.Windows.Forms; using System.Runtime.InteropServices; namespace WindowsApplication43 { public partial class Form1 : Form { Form... 阅读全文
posted @ 2009-09-09 09:51 94cool 阅读(324) 评论(0) 推荐(0) 编辑
摘要:虽然在vs中的DataGridView控件的DataGridViewComboBoxColumn可以实现下拉列表框,但这样的列会在整列中都显示下拉列表框,不太美观,而且还要用代码实现数据绑定。本文介绍一种只在当前编辑单元格中显示下拉列表框的方法,供大家参考。   首先新建一个Windows应用程序,将主窗体重命名为MainForm,在MainForm中加入一个DataGridView控件,命名为d... 阅读全文
posted @ 2009-09-09 09:50 94cool 阅读(1075) 评论(0) 推荐(0) 编辑
摘要:在winfrom编程中我们经常使用表格控件DataGridView的行关联快捷菜单(也称为上下文弹出菜单)ContextMenuStrip,基本步骤如下:在窗体上设计ContextMenuStrip快捷菜单控件; 设置DataGridView.RowTemplate.ContextMenuStrip属性为指定的快捷菜单; 在菜单弹出前捕获关联事件DataGridView.RowContextMen... 阅读全文
posted @ 2009-09-09 09:48 94cool 阅读(462) 评论(0) 推荐(0) 编辑
摘要:API函数是构筑Windows应用程序的基石,是Windows编程的必备利器。每一种Windows应用程序开发工具都提供了间接或直接调用了Windows API函数的方法,或者是调用Windows API函数的接口,也就是说具备调用动态连接库的能力。Visual C#和其它开发工具一样也能够调用动态链接库的API函数。本文中笔者就结合实例向大家介绍在Visual C#中如何调用各种返回值的API,... 阅读全文
posted @ 2009-09-09 09:46 94cool 阅读(277) 评论(0) 推荐(0) 编辑
摘要:以下是一段使用api的窗口特效代码,小测一把看是不是在窗口显示的时候会显示各种特殊效果,实践出真理![System.Runtime.InteropServices.DllImport("user32")] private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags); private const int... 阅读全文
posted @ 2009-09-09 09:45 94cool 阅读(401) 评论(1) 推荐(0) 编辑
摘要:#region dataGridView1显示行号 private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) { Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, e.RowBounds.Location... 阅读全文
posted @ 2009-09-09 09:44 94cool 阅读(3695) 评论(2) 推荐(0) 编辑
摘要:泛型最常见的用途是泛型集合,在命名空间System.Collections.Generic 中包含了一些基于泛型的集合类,使用泛型集合类可以提供更高的类型安全性,还有更高的性能,避免了非泛型集合的重复的装箱和拆箱。 很多非泛型集合类都有对应的泛型集合类,下面是常用的非泛型集合类以及对应的泛型集合类:非泛型集合类 泛型集合类 ArrayList List HashTable DIctionary ... 阅读全文
posted @ 2009-09-09 09:22 94cool 阅读(205) 评论(0) 推荐(0) 编辑
摘要:问题描述:VS.NET提示"试图运行项目时出错:无法启动调试。绑定句柄无效"解决办法 解决方案:不要急着重装.在菜单栏里面选择"调试">>"开始执行(不调试)"试试,如果这样能成功,就不需要重装两个解决方法:1) 打开项目属性,选择调试选项卡,将“启用非托管代码调试”一项钩上。2) 打开项目属性,选择调试选项卡,将“启用Visual Studio宿主... 阅读全文
posted @ 2009-09-07 23:17 94cool 阅读(305) 评论(0) 推荐(0) 编辑
摘要:在BS系统中,有时候一个业务操作需要花很多的时间处理,如果没有任何提示的话,用户还以为是没有点到会继续点击,造成二次点击,或者产生不耐烦的心里。所有最好加个滚动的提示,罩在页面上,一来控制用户再次点击,而来让用户感觉到计算机正在运行操作:如下图其实这个东东只要写很少的代码就能实现,JS代码如下:[代码]在asp.net页面上直接把此JS文件包括进来,调用Show方法就行,如 this.Button... 阅读全文
posted @ 2009-09-07 15:17 94cool 阅读(6243) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace WaveLib{ public class AudioMixerHelper { public const int MMSYSERR_NOERROR = 0; public co... 阅读全文
posted @ 2009-09-07 14:33 94cool 阅读(372) 评论(0) 推荐(0) 编辑
摘要:using System.Text;using System;using System.Runtime.InteropServices;class API{ #region "API函数定义 " [DllImport("user32.dll ", CharSet = CharSet.Unicode)] private static extern int SendMessage(int hWnd, ... 阅读全文
posted @ 2009-09-07 14:32 94cool 阅读(1109) 评论(0) 推荐(0) 编辑
摘要:System.Diagnostics.Process.Start("timedate.cpl"); 阅读全文
posted @ 2009-09-07 14:30 94cool 阅读(441) 评论(0) 推荐(0) 编辑
摘要:在.netwinform应用程序中如何打开capslock键呢?或者在程序启动的时候,capslock键就变亮了呢,今天在国外的一个论谈看到了解决方案,事实上很简单的.我们只要DllImportattribute去调用系统的函数就可以了.部分代码如下: 复制 保存private void Form1_Load(object sender, EventArgs e){ const int KEYEV... 阅读全文
posted @ 2009-09-07 14:25 94cool 阅读(382) 评论(0) 推荐(0) 编辑
摘要:以前整理的Win32API,可以直接在C#中直接调用,在做WinForm时还是很有帮助的。以前用在一个多窗口界面中,当轮询窗口时,调用API会提高很多效率。 源码下载 http://files.cnblogs.com/lordeo/win32api.rar 源码包含三个文件Win32API.cs,Enums.cs,Structs.cs分别如下 Win32API.cs 复制 保存using Syst... 阅读全文
posted @ 2009-09-07 14:24 94cool 阅读(692) 评论(0) 推荐(1) 编辑
摘要:public void SetWindowRegion(){ System.Drawing.Drawing2D.GraphicsPath FormPath; FormPath = new System.Drawing.Drawing2D.GraphicsPath(); Rectangle rect = new Rectangle(0, 22, this.Width, this.Height - 2... 阅读全文
posted @ 2009-09-07 14:22 94cool 阅读(335) 评论(0) 推荐(0) 编辑
摘要:使用独立的DLL存储图片,这样可以把我们要用的图片文件全放在一个DLL当中 这样工程当中就只没有那么多的图片文件了 1.在解决方案里添加一个新的class工程PicResource,然后把图片文件夹skin复制到工程目录下,并把skin包含在工程中; 2.在刚才新建的工程里选中skin文件夹下的所有图片,在property中改变BuildAction属性为EmbeddedResource; .编译... 阅读全文
posted @ 2009-09-07 14:20 94cool 阅读(271) 评论(0) 推荐(0) 编辑
摘要:摘自:http://www.ffmpeg.com.cn/本程序实现转码一个普通视频文件为视频mpeg4,音频mp3的功能 #include <avcodec.h>#include <avformat.h>#include <stdio.h>#include <avutil.h>#include <stdio.h>#include <... 阅读全文
posted @ 2009-09-04 11:14 94cool 阅读(2307) 评论(0) 推荐(1) 编辑
摘要:转:http://www.cnblogs.com/youzai/archive/2008/05/19/1202732.html要实现一个屏幕键盘,需要监听所有键盘事件,无论窗体是否被激活。因此需要一个全局的钩子,也就 是系统范围的钩子。什么是钩子(Hook) 钩子(Hook)是Windows提供的一种消息处理机制平台,是指在程序正常运行中接受信息之前预先 启动的函数,用来检查和修改传给该程序的信... 阅读全文
posted @ 2009-09-04 09:00 94cool 阅读(487) 评论(0) 推荐(0) 编辑
摘要:要使 C# 代码引用 COM 对象和接口,需要在 C# 内部版本中包含 COM 接口的 .NET 框架定义。完成此操作的最简单方法是使用 TlbImp.exe(类型库导入程序),它是一个包括在 .NET 框架 SDK 中的命令行工具。TlbImp 将 COM 类型库转换为 .NET 框架元数据,从而有效地创建一个可以从任何托管语言调用的托管包装。用 TlbImp 创建的 .NET 框架元数据可以通... 阅读全文
posted @ 2009-09-04 08:57 94cool 阅读(2228) 评论(0) 推荐(0) 编辑
摘要:本文的内容几乎全部来自于FFmpeg on Windows,但是由于国内的网络封锁,很难访问这个域名下的内容,因此我一方面按照我自己的理解和实践做了翻译,另一方面也是为了能提供一个方便的参考方法。注: 对于compile和build这两个词,本文统一的使用编译这个词,根据上下文读者应能区分语义上的差别。 本文的目的是提供一切与FFmpeg在Windows下的相关帮助。它最初是一个针对用MSys+... 阅读全文
posted @ 2009-09-04 08:18 94cool 阅读(384) 评论(0) 推荐(0) 编辑
摘要:horizontalScrollPolicy="off" 不显示横向滚动条verticalScrollPolicy="off" 不显示纵向滚动条个选项针对所有容器型控件,比如Canvas,Box,VBox,HBox,ViewStack等 阅读全文
posted @ 2009-09-02 17:51 94cool 阅读(1194) 评论(0) 推荐(0) 编辑
摘要:网站图标ICO在线转换的网站:http://www.html-kit.com/favicon/ <link rel="shortcut icon" href="favicon.ico"><link rel="icon" type="image/gif" href="animated_favicon1.gif"> 阅读全文
posted @ 2009-09-02 16:43 94cool 阅读(325) 评论(0) 推荐(2) 编辑
摘要:(this.parent as 父级类型).父级变量;父级类型即父级mxml的名称这种方法适合使用addchild添加的子级,如果是使用的PopUpManager的方法,需要使用this.parentApplication.父级变量 阅读全文
posted @ 2009-09-02 09:34 94cool 阅读(948) 评论(0) 推荐(0) 编辑
摘要:要获得当前swf的url地址可以用如下的方法:1.Application.application.url2.this.systemManager.loaderInfo.url如要获得域名可以用URLUtil静态类,无需创建实例URLUtil.getServerName((Application.application.url)) 阅读全文
posted @ 2009-09-02 09:34 94cool 阅读(507) 评论(0) 推荐(0) 编辑
摘要:假设有父窗体P,在父窗体中弹出子窗体C,进行必要的操作后,返回父窗体。 1、弹出子窗体 var c:ChildForm = new ChildForm (); // 新建子窗体对象 PopUpManager.addPopUp(c, this, true); // 将子窗体加入PopUpManager中 c.studentId = ""; // 向子窗体传递参数 c.callbackFunction... 阅读全文
posted @ 2009-09-02 09:33 94cool 阅读(238) 评论(0) 推荐(0) 编辑
摘要:GifPlayer下载:http://code.google.com/p/as3gif/实例1:<?xmlversion="1.0"encoding="utf-8"?> <mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute"creationComplete="init()"> <... 阅读全文
posted @ 2009-09-01 09:25 94cool 阅读(667) 评论(2) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示