VB6.0和VB.Net的对照表

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

VB6.0和的对照表

VB6.0和的对照表

VB6.0

AddItem Object名.AddItem

Object名.Items.Add ListBox1.Items.Add

ComboBox1.Items.Add

Abs 函数

System.Math.Abs 方法

API 函数关系

Microsoft Win32和Microsoft .NET Framework API的对应App.Path 等

1.

System.Reflection.Assembly.GetExecutingAssembly.Loca tion

2. Application.StartupPath

3. Application.ExecutablePath

4. System.AppDomain.CurrentDomain.BaseDirectory

App.PrevInstance

Process.GetProcessesByName(pn).GetUpperBound(0)

> 0

As Any 关键词

Visual Basic .NET 不提供支持。参考方法(SendMessage)

AscB 函数

Microsoft.VisualBasic.Strings.Asc 函数

Atn 函数

System.Math.Atan 方法

AutoRedraw 属性

没有相同项目。

Beep

Microsoft.VisualBasic.Beep()

Caption 属性

Text 属性

CBool 函数

CBool 函数

CByte 函数

CByte 函数

CDate 函数

CDate 函数

CDbl 函数

CDbl 函数

CDec 函数

CDec 函数

ChDir 语句

Microsoft.VisualBasic.FileSystem.ChDir 函数System.IO.Directory.SetCurrentDirectory 方法

ChDrive 语句

Microsoft.VisualBasic.FileSystem.ChDrive 函数

Chr$ 函数、ChrB 函数

Microsoft.VisualBasic.Strings.Chr 函数

CInt 函数

CInt 函数

Circle 方法

System.Drawing.Graphics.DrawEllipse 方法

CLong 函数

CLong 函数

Close 语句

Microsoft.VisualBasic.FileSystem.FileClose 函数System.IO.StreamReader.Close 方法

Clipboard 对象

System.Windows.Forms.Clipboard 命名空间

ClipControls 属性

没有相同项目。

Cls 方法

System.Drawing.Graphics.Clear 方法

Color QBColor

vbBlack RGB()

System.Drawing.Color.Black

Command

System.Environment.GetCommandLineArgs

Combo1.AddItem

ComboBox1.Items.Add

Cos 函数

System.Math.Cos 方法

CSng 函数

CStr 函数

CStr 函数

CurDir 函数

System.IO.Directory.GetCurrentDirectory() 方法

Currency 类型

Decimal 类型

CurrentX 属性

各种图形相关方法的x 参数。比如、DrawRectangle(pen, x, y, width, height)

CurrentY 属性

各种图形相关方法的y 参数。比如、DrawRectangle(pen, x, y, width, height)

Date 函数、Date 语句

System.DateTime.Now System.DateTime.Today.ToString

Microsoft.VisualBasic.DateAndTime.DateString

DateAdd 函数

System.DateTime.AddYears 方法AddMonths AddDays

DateDiff 函数

Microsoft.VisualBasic.DateDiff 函数

DateValue 函数

System.DateTime.Parse 方法CDate 函数

DatePart 函数

Microsoft.VisualBasic.DatePart 函数

Day 函数

System.DateTime.Day 属性

Debug.Print

Debug.WriteLine

DeleteSetting 语句

Microsoft.VisualBasic.Interaction.DeleteSetting

DoEvents 函数

System.Windows.Forms.Application.DoEvents 方法

DrawMode 属性

System.Drawing.Pen.Color 属性

DrawStyle 属性

System.Drawing.Pen.PenType 属性

DrawWidth 属性

System.Drawing.Pen.Width 属性

Environ

Microsoft.VisualBasic.Interaction.Environ System.Environment.GetFolderPath

Exp 函数

System.Math.Exp 方法

FillColor 属性

相关文档
最新文档