· 通过继承TextBox,添加了一个ValidText属性,用来获取和设置有效的文本输入还有一个EditAble属性,决定文本框是否支持退格编辑。我是刚学习VB.Net,希望和大家交流,我得QQ:36745349Public Class MyTextBoxInherits System.Windows.Forms.TextBoxPrivate m_strValidText As String = "012345...
· 在DataGrid中选择,确认,删除多行复选框列表 Selecting, Confirming & Deleting Multiple Checkbox Items In A DataGrid (i.e. HotMail & Yahoo)IntroductionAlthough I don't have either a Hotmail or Yahoo email account, I do have friends that do, and I have often seen them check...
· Windows APIs
大多数的API调用可以象在Visual Basic 6.0中一样使用,因为
数据类型发生了改变。在Visual Basic 6.0中的Long类型在Visual Basic.NET中定义为Integer类型。在升级过程中这些定义会自动改变,例如:Private Declare Function GetVersion Lib "kernel32" () As
Long
Fun...
· In VB6, you could call this sub in one of two ways:
foo “Hello ”
Call foo(“Hello ”)
In VB.NET, you also could call this sub in one of two ways:
Foo(“Hello ”)
Call foo(“Hello ”)
The difference, of course, is that the parentheses are always required in the VB.NET
calls,...
· Dim txtBillTo as TextBox
Dim txtShipTo as TextBox
txtShipTo =txtBillTo
The line of code txtShipTo =txtBillTo sets the Text property of txtShipTo to the
value in the Text property of txtBillTo . But what if that isn’t what you wanted?
What if, instead, you wanted to create an...
· Major VB.NET Changes
VB.NET introduces major changes to the VB language. Some
are modifications to existing ways of working, whereas others
are brand new. This chapter will cover some of those
changes, but this is by no means an exhaustive list of all
changes from VB to VB.NE...
· Your First VB.NET
Application
It’s time to jump in and start working with VB.NET. First, you
need to learn a little bit about the new IDE. The new VB.NET
IDE might look somewhat familiar to you, but there are some
significant changes that make it a more useful environment.
H...
· Figure 2.3
The New Project dialog box.
If you examine the Visual Basic project types, you’ll see that many of them are dif-ferent
from what you are used to with VB6. Some of the major project types are
Windows Application—This is a standard executable, in VB6 terminology. ...