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…

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…

where is .net framework 4.5 installed?

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

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/where-is-net-framework-4-5-installed
To reprint this article, please indicate the source, thank you.
_____________________________________

Recently, Microsoft has published .NET Framework version 4.5, in order to test the compati[……]

Read More…

.NET Framework 4.5 安装到哪了?

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

作者:牧山道人
原文地址:https://www.seeksunslowly.com/net-framework-4-5-安装到哪了
转载请注明出处,谢谢。
_____________________________________

微软最近发布了 .NET Framework 4.5 版本,为了测试产品兼容性,本道也装了一个。

但是很奇怪,装上后却在 X:\Windows\Microsoft.NET\Framework 下找不到对应版本目录,仍然只有 v1.0.x, v1.1.x, v2.0.x, v3.0, v3.5, v4.0.x,就是没有 v4.5 或 v4.5.x[……]

Read More…

The final way to remove VMWare menu from Visual Studio

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

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/final-way-remove-vmware-menu-from-visual-studio
To reprint this article, please indicate the source, thank you.
_____________________________________

Hello everyone,

As you know, once installed VMWare, Visual Studio’s menu bar[……]

Read More…

Visual Studio 中去掉 VMWare 菜单的终极方法

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

作者:牧山道人
原文地址:https://www.seeksunslowly.com/visual-studio-中去掉-vmware-菜单的终极方法
转载请注明出处,谢谢。
_____________________________________

大家好,话说装了 VMWare 后,Visual Studio 菜单栏便出现了 VMWare 菜单。
据说,这会影响 VS 启动速度,但现在电脑很快,有多大影响本道倒不清楚,但作为处女座的人,肯定不会容许用不上的菜单一直挂在那里。

百度 Google Bing 了半天,老实说,真没人解决这个问题,不过他们提到的方法或许对你合用[……]

Read More…

VB .NET DateAdd function has serious problems, I suggest you do not use it again.

Posted by Admin L in .NET Programming on 30-08-2012. Tags: , , , , ,

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/vb-net-dateadd-function-serious-problems-suggest-not-use-again
To reprint this article, please indicate the source, thank you.
_____________________________________

Let’s take a look at DateAdd’s declaration first.
[cc lang=”vbn[……]

Read More…