vb                             vb.net

Mid 函数

System.String.SubString

Microsoft.VisualBasic.Strings.Mid 函数

MidB 函数

Microsoft.VisualBasic.Strings.Mid 函数

Minute 函数

System.DateTime.Minute 属性

MkDir 语句

Microsoft.VisualBasic.FileSystem.MkDir 函数

System.IO.Directory.CreateDirectory 方法

MousePointer=11

Screen.MousePointer

System.Windows.Forms.Cursors.WaitCursor()

System.Windows.Forms.Cursor.Current = Cursors.WaitCursor

Mod 运算符

Math.IEEERemainder 方法Debug.WriteLine(Math.IEEERemainder(10, 3)) '结果 1

System.Math.DivRem(10, 3,intResult)   '结果   3 (10 \ 3)

Debug.WriteLine(intResult)             '结果   1 (10 Mod 3)

Month 函数

System.DateTime.Month 属性

MsgBox

System.Windows.Forms.MessageBox.Show("Hello,world!")

Microsoft.VisualBasic.MsgBox

Name 语句

Microsoft.VisualBasic.FileSystem.Rename 函数

Now 函数

System.DateTime.Now Microsoft.VisualBasic.Now

Open 语句

Microsoft.VisualBasic.FileSystem.FileOpen 函数

Option Base 语句

Visual Basic .NET没有提供支持。

Option Private

Visual Basic .NET没有提供支持。

PaintPicture 方法

System.Drawing.Graphics.DrawImage 方法

Point 方法

不存在相同的Form和控件。

使用Bitmap时用System.Drawing.Bitmap.GetPixel 方法

Print 方法

System.Drawing.Graphics.DrawString 方法

PrintForm

Visual Basic .NET没有提供支持。

Print# 语句

Microsoft.VisualBasic.FileSystem.Print 函数

Private 语句

Public 语句

Private Public

Friend Protected Protected Friend

Pset 方法

不存在相同的Form和控件。

使用Bitmap时用System.Drawing.Bitmap.SetPixel 方法

Put 语句

Microsoft.VisualBasic.FileSystem.FilePut 函数

Replace 函数

Microsoft.VisualBasic.Strings.Replace 函数

Right$ 函数、RightB 函数

System.String.SubString

Microsoft.VisualBasic.Strings.Right 函数

ReDim 语句

ReDimMyArray(5)      ReDim PreserveMyArray(15)   语句

RmDir 语句

Microsoft.VisualBasic.FileSystem.RmDir 函数System.IO.Directory.Delete() 方法

Round 函数

System.Math.Round 方法

RTrim$ 函数

System.String.TrimEnd

Microsoft.VisualBasic.Strings.RTrim

SaveSetting 语句

Microsoft.VisualBasic.Interaction.SaveSetting函数

Scale 方法

Visual Basic .NET没有提供支持。

Screen.ActiveControl

Screen.ActiveForm

Screen.Fonts

Screen.Height

Screen.MousePointer

Screen.Width

其他 Screen 对象

System.Windows.Forms.Application.ActiveForm.ActiveControl

System.Windows.Forms.Application.ActiveForm

System.Drawing.FontFamilies

System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height

System.Drawing.Cursor.Current

System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width

其他

Second 函数

System.DateTime.Second 属性

SendKeys 语句

System.Windows.Forms.SendKeys.Send("^C")

SetAttr

System.IO.File.SetAttributes

Sgn 函数

System.Math.Sign 函数

Shell

Microsoft.VisualBasic.Shell

Sin 函数

System.Math.Sin 函数

Space 函数

Microsoft.VisualBasic.Strings.Space 函数

Sqr 函数

System.Math.Sqrt 函数

StrComp 函数

Microsoft.VisualBasic.Strings.StrComp 函数

StrConv 函数

Microsoft.VisualBasic.Strings.StrConv 函数

String$(256, Chr(0))

buf = New String(CChar(" "), 256)Microsoft.VisualBasic.Strings.StrDup 函数

StrReverse 函数

Microsoft.VisualBasic.Strings.StrReverse 函数

Tan 函数

System.Math.Tan 方法

TextHeight 属性

System.Drawing.Font.Height 属性

TextWidth 属性

System.Drawing.Graphics.MeasureString 方法

Time$ 函数

Microsoft.VisualBasic.DateAndTime.Timer 属性

System.DateTime.Now.TimeOfDay

TimeValue 函数

System.DateTime.Parse方法  CDate 函数

Top 属性

Control.Location 属性

Trim$ 函数

Microsoft.VisualBasic.Strings.Trim 函数

System.String.Trim

Type 语句

Structure 语句

UCase$ 函数

String.ToUpper 方法

Microsoft.VisualBasic.Strings.UCase 函数

Unlock 语句

Microsoft.VisualBasic.FileSystem.Unlock 函数

Unload 事件

Closed 事件 Me.Close()

Variant 型

Dim x As Variant 改为 Dim x As Object

VarPtr、StrPtr、ObjPtr

Dim MyGCHandle As GCHandle =GCHandle.Alloc(o,GCHandleType.Pinned)

Dim Address As Integer =CInt(MyGCHandle.AddrOfPinnedObject())

MyGCHandle.Free() ' 允许对象实例再移动。

vbCrLf

Microsoft.VisualBasic.Constants.vbCrLf

Microsoft.VisualBasic.vbCrLf

Weekday

Microsoft.VisualBasic.WeekdaySystem.DateTime.DayOfWeek

WeekdayName

Microsoft.VisualBasic.WeekdayName(System.DateTime 构造体中没有相同项目)

Width 属性

Control.Size 属性

Write # 语句

Microsoft.VisualBasic.FileSystem.Write 函数

Year 函数

System.DateTime.Year 属性

Comments
Write a Comment