How to make transparent form/window in VB2008

Posted by Admin L in .NET Programming on 17-07-2011. Tags:

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/vb2008-transparent-form
To reprint this article, please indicate the source, thank you.
_____________________________________

It seems very difficult, and seems to need to use Win32 API, in fact not the case.
It is very easy to[……]

Read More…

VB2008 如何制作透明窗体

Posted by Admin L in .NET Programming on 17-07-2011. Tags:

作者:牧山道人
原文地址:https://www.seeksunslowly.com/vb2008-transparent-form-sc
转载请注明出处,谢谢。
_____________________________________

看起来很难,而且似乎还需要动用 Win32 API,其实不然。
在 VB2008 中制作透明窗体非常简单,仅需设置相关属性即可。

具体方法:
调整 Form.Opacity 属性(值越小越透明)。
[……]

Read More…

How to make top and full-screen window/form in VB2008

Posted by Admin L in .NET Programming on 17-07-2011. Tags:

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/vb2008-top-full-screen-window
To reprint this article, please indicate the source, thank you.
_____________________________________

It seems very difficult, and seems to need to use Win32 API, in fact not the case.
It is very ea[……]

Read More…

VB2008 如何制作全屏置顶窗口

Posted by Admin L in .NET Programming on 17-07-2011. Tags:

作者:牧山道人
原文地址:https://www.seeksunslowly.com/vb2008-top-full-screen-window-sc
转载请注明出处,谢谢。
_____________________________________

看起来很难,而且似乎还需要动用 Win32 API,其实不然。
在 VB2008 中制作全屏置顶窗口非常简单,仅需设置相关属性即可。
具体方法:
置顶:设置 Form.TopMost = True
全屏置顶:设置 Form.FormBorderStyle = None,TopMost = True,WindowState =[……]

Read More…

How to let SQLite.NET support Windows x64 with .NET 4.0

Posted by Admin L in .NET Programming on 16-07-2011. Tags:

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/sqlite-net-x64-net4
To reprint this article, please indicate the source, thank you.
_____________________________________

The DLL in current version of SQLite.NET (1.0.66.0) is not compatible in Windows x64 with .NET 4.0, in fact[……]

Read More…

如何使 SQLite.NET 支持 Windows x64 + .NET 4.0

Posted by Admin L in .NET Programming on 16-07-2011. Tags:

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

SQLite.NET 目前版本(1.0.66.0)中 DLL 不能兼容于 64 位 Windows + .NET 4.0 环境,其实 SQLite.NET 二进制包含有 x64 版本的 DLL,该 DLL 可完美兼容于 Windows x64 + .NET 4.0。

但你可能希望你的程序能同时兼容于 Windows x86 及 Windows x6[……]

Read More…

How to cancel keyboard press/input in VB2008

Posted by Admin L in .NET Programming on 14-07-2011. Tags:

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/cancel-input-vb2008
To reprint this article, please indicate the source, thank you.
_____________________________________

Because it is different than VB6, so introduce it specially.
Method
Add the following code to the KeyPres[……]

Read More…

VB2008 中取消键盘输入的方法

Posted by Admin L in .NET Programming on 14-07-2011. Tags:

作者:牧山道人
原文地址:https://www.seeksunslowly.com/cancel-input-vb2008-sc
转载请注明出处,谢谢。
_____________________________________

因为与 VB6 略有不同,故单独说明一下。
方法
在相应输入控件的 KeyPress 事件中加入以下代码即可。
示例代码
[cc lang=”vbnet”]
Private Sub cbPrompt_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPress[……]

Read More…

How to disable <Alt + F4> and Window <Close> button in .NET

Posted by Admin L in .NET Programming on 20-06-2011. Tags:

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/disable-alt-f4-close
To reprint this article, please indicate the source, thank you.
_____________________________________

Sometimes, we need to disable <Alt + F4> keys and Window <Close> button, so as to prevent the[……]

Read More…

.NET 如何禁用<Alt + F4>及窗口<关闭>按钮

Posted by Admin L in .NET Programming on 20-06-2011. Tags:

作者:牧山道人
原文地址:https://www.seeksunslowly.com/disable-alt-f4-close-sc
转载请注明出处,谢谢。
_____________________________________

有时,我们需要禁用<Alt + F4>及窗口右上角的<关闭>按钮以防止某窗口被异常关闭(比如,备份数据的进度窗口)。
通过试验与总结,下面介绍一种简单有效的方法(VB 2008),并且没有动用 API,以避免不稳定因素。
1、新建 Windows Forms Application。
2、在 Form1 上放置一个 But[……]

Read More…