· 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...
· 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...
· 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,...
· 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...
· 在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...
· 通过继承TextBox,添加了一个ValidText属性,用来获取和设置有效的文本输入还有一个EditAble属性,决定文本框是否支持退格编辑。我是刚学习VB.Net,希望和大家交流,我得QQ:36745349Public Class MyTextBoxInherits System.Windows.Forms.TextBoxPrivate m_strValidText As String = "012345...
· 4、 声明类级的变量。找到设计期产生的代码部分,把下面的语句加到变量声明后面。什么?不知道变量声明在哪儿?不会吧!Private fs As FileStreamPrivate ds As DataSetPrivate conn As New SqlConnection("server=localhost;database=northwind;integrated security=true;")Private cu...