提供MetaWeblog 可以直接發表到自己的博客上..google太有才了,迷的我們這些同志神魂顛倒,想離開她都難..........
//此篇文章是用Google Doc 發布的. 閱讀全文
想要IE或word點擊超鏈接打開本地的EXE應用程序,這個怎么辦?
比如點擊這樣的鏈接
<a href="vip:123-MonacoGP-19279-Senna">打開我的協議</a>
將打開我的EXE應用程序?
首先你要修改注冊表,要讓IE看的懂像href="vip:123-MonacoGP-19279-Senna" 這樣的協議.
c#如何寫注冊表?
//寫注冊表 RegistryKey key = Registry.ClassesRoot.CreateSubKey("vip"); key.SetValue("", "URL:vip Protocol"); key.SetValue("URL Protocol",""); RegistryKey Subkey= key.CreateSubKey("DefaultICon"); Subkey.SetValue("", "exe文件路徑"); Subkey = key.CreateSubKey("shell").CreateSubKey("open").CreateSubKey("Command"); Subkey.SetValue("","exe文件路徑");
這段代碼是在 注冊表 HKEY_CLASSES_ROOT 下新建vip 的鍵
結構是這樣的
HKEY_CLASSES_ROOT
vip
(Default) = "URL:vip Protocol"
URL Protocol= ""
DefaultIcon
(Default) = "c:\somepath\APPTest.exe"
shell
open
command
(Default) = "c:\somepath\APPTest.exe" "%1"
創建完以后當你點擊這樣(vip:123-MonacoGP-19279-Senna)的鏈接,就可以打開外部的自己定義的應用程序了.
當然winform 應用程序還可以接收你傳過來的值
比如 EXE應用程序啟動的時候接收鏈接傳過來的 123-MonacoGP-19279-Senna字符串,你可以在winform 啟動的時候捕獲這個值
[STAThread] static void Main(string[] args) { if (args.Length > 0) { //arg[0]就是剛剛鏈接傳過來的 // 賦值=arg[0]; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); }
如何給IE工具欄添加圖標和按鈕,菜單,打開自己的應用程序?
可以看看這篇
http://www.codeproject.com/useritems/CorKatIEExtension.asp
關于快速的操作注冊表
你可以參考
http://www.codeproject.com/cs/system/quickregistry1.asp
本文來源http://www.codeproject.com/aspnet/APPHyperlinks.asp
//
上面所有鏈接文章的源代碼下載地址
http://www.aygfsteel.com/Files/wujun/APPTest.rar
//END
現在可以自動生成了。選擇圖片存放的目錄,點擊生成就可以。不過是c#.net寫的。運行還必須.NET Framework.
詳細可以看
http://pranas.net/webgallerycreator/
演示效果可看
http://pranas.net/webgallerycreator/Sample%20Gallery/default.htm
什么是Lightbox?
http://www.huddletogether.com/projects/lightbox2/
http://www.aygfsteel.com/beansoft/archive/2007/01/15/94027.aspx
http://wiki.springside.org.cn/display/springside/Lightbox?showComments=true&decorator=printable
The example application will provide the following functionality.
*Display a book overview (list of books)
*Add, edit and delete a book 閱讀全文