.NET 中如何捕获 WebBrowser 控件的击键事件(KeyPress/KeyDown/KeyUp)?

Posted by Admin L in .NET Programming on 28-03-2013. Tags: , , , , , , , ,

作者:牧山道人
原文地址:https://www.seeksunslowly.com/dot-net-捕获-webbrowser-控件-击键事件-keypress-keydown-keyup
转载请注明出处,谢谢。
_____________________________________

有时,我们需要处理用户在设计模式的 WebBrowser 控件中的击键事件(比如用于判断 WebBrowser 内容是否发生变化),但遍寻所有 WebBrowser 支持的事件,没有发现 KeyPress/KeyDown/KeyUp 事件。

WebBrowser 其实就是一个 IE,其本身[……]

Read More…

How to properly set the shortcut key of ToolStripButton in VB .NET? Specially, there is the WebBrowser control in the form. And some important notes about this.

Posted by Admin L in .NET Programming on 26-03-2013. Tags: , , , , , , , , , , ,

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/vb-net-toolstripbutton-shortcuts-webbrowser
To reprint this article, please indicate the source, thank you.
_____________________________________

In .NET, the ToolStripButton control does not support shortcut key, that is, it has[……]

Read More…

C# 及 VB .NET 工具栏按钮(ToolStripButton)快捷键设置方法建议及注意事项(特别是当窗体中有 WebBrowser 控件时)

Posted by Admin L in .NET Programming on 26-03-2013. Tags: , , , , ,

作者:牧山道人
原文地址:https://www.seeksunslowly.com/vb-net-toolstripbutton-shortcuts-webbrowser-sc
转载请注明出处,谢谢。
_____________________________________

因为工具栏按钮(ToolStripButton)本身并不支持快捷键,即没有 ShortcutKeys 属性,所以需要单独编码实现。

如下图所示:

ToolStripButton 无 ShortcutKeys 属性!

常用方式有两种,一是通过 Form 的 KeyDown/KeyUp 事件实现(需要将 Form 的 KeyPreview 属性设为 True)[……]

Read More…

韩国流量谜之破解

Posted by Admin L in 特有 IT (Special IT), 日志 (Journal), Shareware on 13-01-2013.

作者:牧山道人
原文地址:https://www.seeksunslowly.com/韩国流量谜之破解
转载请注明出处,谢谢。
_____________________________________

本道有款小软名曰 PDF to JPG,自 2012 年 7 月底发布以来,超过 95% 的流量来自韩国。

Google 分析以及 awstats 后台均无法考证其确切来源,只能粗略供计是被韩国某大站主动发布/转载了,但由于缺乏韩国推广经验,具体是什么站,无从考证。

当然,韩国客户(或亚洲客户)的转换率(下载:购买)是极低的,大致可算作 2000:1。不过,由于基数较大[……]

Read More…

The right solution of “Microsoft Office Word/Excel/PowerPoint/Access has not been installed for the current user” error.

Posted by Admin L in Windows & PC Software on 10-12-2012.

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/right-solution-word-excel-powerpoint-access-not-installed-current-user-error
To reprint this article, please indicate the source, thank you.
_____________________________________

Sometimes, when we run Word, Excel, PowerPoint, Ac[……]

Read More…

提示“当前用户没有安装 Microsoft Office Word/Excel/PowerPoint/Access ……”的正确解决方法!

Posted by Admin L in Windows & PC Software on 10-12-2012.

作者:牧山道人
原文地址:https://www.seeksunslowly.com/当前用户没有安装-office-word-excel-powerpoint-access
转载请注明出处,谢谢。
_____________________________________

有时,尽管我们用管理员账户运行 Word、Excel、PowerPoint、Access 或其他微软 Office 产品会收到类似于“当前用户没有安装 Microsoft Office Word/Excel/PowerPoint/Access ……”的提示。提示类似下图:

没有安装 Microsoft Office Word Excel PowerPoint Access

这不扯淡吗?明明装了说没[……]

Read More…

Why cannot edit/input text in .NET WebBrowser control on IE9+ system?

Posted by Admin L in .NET Programming on 19-11-2012. Tags: , , , , , , , , , , ,

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/edit-input-text-dot-net-webbrowser-control-ie9
To reprint this article, please indicate the source, thank you.
_____________________________________

For instance: your WebBrowser is named as wb, then the following code can let We[……]

Read More…

如何解决 .NET WebBrowser 控件在 IE9+ 浏览器下不能编辑/输入的问题?

Posted by Admin L in .NET Programming on 19-11-2012. Tags: , , , , , , , ,

作者:牧山道人
原文地址:https://www.seeksunslowly.com/如何解决-net-webbrowser-控件-ie9-浏览器不能编辑输入的问题
转载请注明出处,谢谢。
_____________________________________

假如 WebBrowser 控件名为 wb,则以下代码即可令 WebBrowser 在 IE9+ 浏览器下可编辑:

[cc lang=”vbnet”]
Private Sub wb_DocumentCompleted(ByVal sender As Object, _[……]

Read More…

How to use alias for the common use constant in .NET

Posted by Admin L in .NET Programming on 19-11-2012. Tags: , , , , , , ,

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/dot-net-use-alias-common-constant
To reprint this article, please indicate the source, thank you.
_____________________________________

For example in VB .NET:
Such as we need to write the string like MsgBoxStyle.Information eve[……]

Read More…

.NET 如何对常用常量使用别名?

Posted by Admin L in .NET Programming on 19-11-2012. Tags: , , , , ,

作者:牧山道人
原文地址:https://www.seeksunslowly.com/net-如何对常用常量使用别名
转载请注明出处,谢谢。
_____________________________________

以 VB .NET 为例:
比如:每次需要写 MsgBoxStyle.Information 这样的字符串,若嫌 MsgBoxStyle 太长,可以使用别名(其实写起来不会慢,主要是占空间)。
用法:
Imports MBS = Microsoft.VisualBasic.MsgBoxStyle
则在对应模组中可以直接使用 MSB.Information 来代[……]

Read More…