2013年1月30日
摘要: Form1.csusing System;using System.Windows.Forms;using QuartzTypeLib;namespace DirectShow{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } //设置常量 const int WM_APP = 0x8000; const int WM_GRAPHNOTIFY = WM_APP + 1; ... 阅读全文
posted @ 2013-01-30 16:06 snet 阅读(661) 评论(0) 推荐(0) 编辑
摘要: 播放选定的文件 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace MediaApp{ public partial class Form1 : Form { private const int WS_CHILD = 0x40000000; private const int... 阅读全文
posted @ 2013-01-30 16:05 snet 阅读(939) 评论(0) 推荐(0) 编辑
摘要: 有些时候,我们的图片资源保存到了DLL里面,那么,在应用程序中,如何读取出来呢?其实比较简单,我们来用C#做个简单的模型,读取DLL中的图片。新建一个类库项目,然后新建一个文件夹,保存我们的图片。如图:然后,我们要把图片,嵌入到DLL里面去,操作如图:选择嵌入的资源,然后开始写代码:using System;namespace Dll{ public class Class1 { public void mydll() { this.GetType().Assembly.GetManifestResourceStream("Dll.image.test.jpg"); } p 阅读全文
posted @ 2013-01-30 16:03 snet 阅读(773) 评论(0) 推荐(0) 编辑
摘要: <%'用ServerXMLHTTP从ip138获取IP地址Dim WinHttpReqSet WinHttpReq = CreateObject("Msxml2.ServerXMLHTTP")WinHttpReq.Open "GET", "http://www.ip138.com/ip2city.asp"WinHttpReq.Send'正则表达式解析出外网IPDim MyRegExpSet MyRegExp = CreateObject("VBScript.RegExp")MyRegExp.P 阅读全文
posted @ 2013-01-30 15:59 snet 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1.oncontextmenu="window.event.returnvalue=false"将彻底屏蔽鼠标右键<tableborderoncontextmenu=return(false)><td>no</table>可用于Table2.<bodyonselectstart="returnfalse">取消选取、防止复制3.onpaste="returnfalse"不准粘贴4.oncopy="returnfalse;"oncut="returnfalse 阅读全文
posted @ 2013-01-30 15:55 snet 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 这是DW自动生成代码的缺陷,将所有的 __MMColParam = "1" 改为 __MMColParam = "0"或者删除ID1。 阅读全文
posted @ 2013-01-30 15:54 snet 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 很简单,在有图片的那个标签添加 onFocus="this.blur()"如<li onFocus="this.blur()"></li> <a onFocus="this.blur()"></a> 阅读全文
posted @ 2013-01-30 15:54 snet 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 文件1.上传界面文件 upload.htm<html><head><meta http-equiv="Content-Language" content="zh-cn"><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>文件上传</title></head><body><form method="POST& 阅读全文
posted @ 2013-01-30 15:49 snet 阅读(15649) 评论(0) 推荐(0) 编辑
摘要: 有排版的页面http://hi.baidu.com/xnaer/item/5a430e5f53e8d61bdb1635ea思路: 会员通过文件域上传图片; 将图片名改为 会员ID+.jpg;在要显示头像图片的地方插入该图片链接。代码:——————————1.asp————————————<form name="form1" method="post" action="2.asp"> 上传本地图片: <input name="file" type="file" class=&qu 阅读全文
posted @ 2013-01-30 15:48 snet 阅读(1862) 评论(0) 推荐(0) 编辑