VB6.0和VB.Net的函数对照表 |
|
VB6.0 |
VB.NET |
@H_404_58@Object名@H_404_58@.Items.Add ListBox1.Items.Add ComboBox1.Items.Add |
|
@H_404_58@App.Path 等 |
@H_404_58@1. System.Reflection.Assembly.GetExecutingAssembly.Location |
@H_404_58@App.PrevInstance |
Process@H_404_58@.GetProcessesByName(pn).GetUpperBound(0) > 0 |
@H_404_58@As Any 关键词 |
|
没有相同项目。 |
|
Beep |
Microsoft@H_404_58@.VisualBasic.Beep() |
@H_404_58@ChDir 语句 |
@H_404_58@Microsoft.VisualBasic.FileSystem.ChDir 函数@H_404_58@ |
@H_404_58@ChDrive 语句 |
|
@H_404_58@Close 语句 |
@H_404_58@Microsoft.VisualBasic.FileSystem.FileClose 函数 |
@H_404_58@Clipboard 对象 |
@H_404_58@System.Windows.Forms.Clipboard 命名空间 |
没有相同项目。 |
|
@H_404_58@Color QBColor |
@H_404_58@System.Drawing.Color.Black |
@H_404_58@Command |
@H_404_58@System.Environment.GetCommandLineArgs |
@H_404_58@Combo1.AddItem |
|
@H_404_58@Currency 类型 |
@H_404_58@Decimal 类型 |
各种图形相关方法的@H_404_58@ x 参数。比如、@H_404_58@DrawRectangle(pen,x,y,width,height) |
|
各种图形相关方法的@H_404_58@ y 参数。比如、@H_404_58@DrawRectangle(pen,height) |
|
System@H_404_58@.DateTime.Now System.DateTime.Today.ToString |
|
@H_404_58@Microsoft.VisualBasic.DateAndTime.DateString |
|
@H_404_58@System.DateTime.AddYears 方法@H_404_58@ AddMonths AddDays |
|
@H_404_58@System.DateTime.Parse 方法@H_404_58@@H_404_58@CDate 函数 |
|
@H_404_58@Debug.Print |
@H_404_58@Debug.WriteLine |
@H_404_58@DeleteSetting 语句 |
@H_404_58@Microsoft.VisualBasic.Interaction.DeleteSetting |
@H_404_58@Environ |
@H_404_58@Microsoft.VisualBasic.Interaction.Environ |
@H_404_58@FileCopy 语句 |
Microsoft@H_404_58@.VisualBasic.FileSystem.FileCopy 函数@H_404_58@ |
@H_404_58@System.IO.FileInfo.Length 属性@H_404_58@ |
|
@H_404_58@Get 语句 |
|
@H_404_58@GetAttr |
System@H_404_58@.IO.File.GetAttributes |
@H_404_58@GotFocus 事件 |
@H_404_58@Enter 事件 |
@H_404_58@GetSetting 语句 |
@H_404_58@Microsoft.VisualBasic.Interaction.GetSetting |
没有相同项目。 |
|
没有相同项目。 |
|
@H_404_58@hwnd Form1.hwnd |
@H_404_58@Form1.Handle 定义处也是 ByVal hWnd As IntPtr |
@H_404_58@Input # 语句 |
|
System.String.IndexOf |
|
@H_404_58@System.String.LastIndexOf 方法@H_404_58@ |
|
System.Math.Floor 方法System.Math.Ceiling 方法 |
|
@H_404_58@Dim y As Integer 改为@H_404_58@ Dim x As Short |
|
@H_404_58@KeyAscii |
|
@H_404_58@Kill 语句 |
@H_404_58@Microsoft.VisualBasic.FileSystem.Kill 函数@H_404_58@ |
@H_404_58@LBound UBound |
@H_404_58@System.Array.GetLowerBound System.Array.GetUpperBound |
@H_404_58@String.ToLower 方法@H_404_58@ |
|
@H_404_58@System.String.SubString |
|
@H_404_58@Len |
@H_404_58@System.String.Length |
LenB@H_404_58@ |
System.Text.Encoding.GetEncoding("gb2312").GetByteCount(str1) |
@H_404_58@Line Input # 语句 |
|
@H_404_58@List1.AddItem |
|
@H_404_58@System.Drawing.Image.FromFile("../../test.bmp") |
|
@H_404_58@Lock 语句 |
|
@H_404_58@Dim y As Integer 改为@H_404_58@ Dim x As Short |
|
@H_404_58@LostFocus 事件 |
@H_404_58@Leave 事件 |
@H_404_58@System.String.TrimStart |
|
@H_404_58@System.String.SubString |
|
@H_404_58@MkDir 语句 |
@H_404_58@Microsoft.VisualBasic.FileSystem.MkDir 函数@H_404_58@ |
@H_404_58@MousePointer=11 |
@H_404_58@System.Windows.Forms.Cursors.WaitCursor() |
@H_404_58@Mod 运算符 |
@H_404_58@Math.IEEERemainder 方法 @H_404_58@Debug.WriteLine(Math.IEEERemainder(10,3)) '结果@H_404_58@ 1 |
MsgBox |
System.Windows.Forms.MessageBox.Show("Hello,world!") |
@H_404_58@Name 语句 |
|
System@H_404_58@.DateTime.Now Microsoft.VisualBasic.Now |
|
@H_404_58@Open 语句 |
|
@H_404_58@Option Base 语句 |
Visual Basic .NET没有提供支持。 |
@H_404_58@Option Private |
Visual Basic .NET没有提供支持。 |
不存在相同的@H_404_58@Form和控件。@H_404_58@ |
|
@H_404_58@PrintForm |
Visual Basic .NET没有提供支持。 |
@H_404_58@Print# 语句 |
|
@H_404_58@Private Public |
|
不存在相同的@H_404_58@Form和控件。@H_404_58@ |
|
@H_404_58@Put 语句 |
|
@H_404_58@System.String.SubString |
|
@H_404_58@ReDim 语句 |
@H_404_58@ReDim MyArray(5) ReDim Preserve MyArray(15) 语句 |
@H_404_58@RmDir 语句 |
@H_404_58@Microsoft.VisualBasic.FileSystem.RmDir 函数@H_404_58@ System.IO.Directory.Delete() 方法 |
@H_404_58@System.String.TrimEnd |
|
@H_404_58@SaveSetting 语句 |
|
Visual Basic .NET没有提供支持。 |
|
@H_404_58@Screen.ActiveControl |
@H_404_58@System.Windows.Forms.Application.ActiveForm.ActiveControl |
@H_404_58@SendKeys 语句 |
System@H_404_58@.Windows.Forms.SendKeys.Send("^C") |
@H_404_58@SetAttr |
System@H_404_58@.IO.File.SetAttributes |
Shell |
Microsoft@H_404_58@.VisualBasic.Shell |
@H_404_58@String$(256,Chr(0)) |
@H_404_58@buf = New String(CChar(" "),256) Microsoft.VisualBasic.Strings.StrDup 函数 |
@H_404_58@Microsoft.VisualBasic.DateAndTime.Timer 属性@H_404_58@ |
|
@H_404_58@System.DateTime.Parse 方法@H_404_58@@H_404_58@CDate 函数 |
|
@H_404_58@Microsoft.VisualBasic.Strings.Trim 函数@H_404_58@ |
|
@H_404_58@Type 语句 |
@H_404_58@Structure 语句 |
@H_404_58@String.ToUpper 方法@H_404_58@ |
|
@H_404_58@Unlock 语句 |
|
@H_404_58@Unload 事件 |
@H_404_58@Closed 事件 Me.Close() |
@H_404_58@Variant 型 |
|
@H_404_58@Dim MyGCHandle As GCHandle = GCHandle.Alloc(o,GCHandleType.Pinned) |
|
vbCrLf |
@H_404_58@Microsoft.VisualBasic.Constants.vbCrLf |
@H_404_58@Weekday |
@H_404_58@Microsoft.VisualBasic.Weekday System.DateTime.DayOfWeek |
@H_404_58@WeekdayName |
@H_404_58@Microsoft.VisualBasic.WeekdayName (System.DateTime 构造体中没有相同项目@H_404_58@) |
@H_404_58@Write # 语句 |
|