国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

VB6.0和VB.Net的函數等對照表

2019-11-14 15:48:55
字體:
來源:轉載
供稿:網友
VB6.0和VB.Net的對照表
VB6.0VB.NET
AddItem Object名.AddItemObject名.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.Location 2. application.StartupPath 3. Application.ExecutablePath 4. System.AppDomain.CurrentDomain.BaseDirectory
App.PRevInstanceProcess.GetProcessesByName(pn).GetUpperBound(0) > 0
As Any 關鍵詞Visual Basic .NET 不提供支持。參考方法(SendMessage)
AscB 函數Microsoft.VisualBasic.Strings.Asc 函數
Atn 函數System.Math.Atan 方法
AutoRedraw 屬性沒有相同項目。
BeepMicrosoft.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
CommandSystem.Environment.GetCommandLineArgs
Combo1.AddItemComboBox1.Items.Add
Cos 函數System.Math.Cos 方法
CSng 函數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
Date$ 函數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.PrintDebug.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 屬性
EnvironMicrosoft.VisualBasic.Interaction.Environ System.Environment.GetFolderPath
Exp 函數System.Math.Exp 方法
FillColor 屬性System.Drawing.SolidBrush.Color 屬性
FileCopy 語句Microsoft.VisualBasic.FileSystem.FileCopy 函數 System.IO.File.Copy 方法
FileLen 函數System.IO.FileInfo.Length 屬性 Microsoft.VisualBasic.FileSystem.FileLen
FillStyle 屬性System.Drawing.Pen.Brush 屬性
Get 語句Microsoft.VisualBasic.FileSystem.FileGet 函數
GetAttrSystem.IO.File.GetAttributes
GotFocus 事件Enter 事件
GetSetting 語句Microsoft.VisualBasic.Interaction.GetSetting
FileDateTime 函數System.IO.File.GetCreationTime 方法
HasDC 屬性沒有相同項目。
HDC 屬性沒有相同項目。
Height 屬性Control.Size 屬性
Hour 函數System.DateTime.Hour 屬性
hwnd Form1.hwndForm1.Handle 定義處也是 ByVal hWnd As IntPtr
Image 屬性Image 屬性
Input # 語句Microsoft.VisualBasic.FileSystem.Input 函數
InStr 函數System.String.IndexOf Microsoft.VisualBasic.Strings.InStr 函數
InStrB 函數Microsoft.VisualBasic.Strings.InStr 函數
InStrRev 函數System.String.LastIndexOf 方法 Microsoft.VisualBasic.Strings.InStrRev 函數
Int 函數System.Math.Floor 方法        System.Math.Ceiling 方法 Microsoft.VisualBasic.Int 函數  
Integer 類型 Long 類型Dim y As Integer 改為 Dim x As Short Dim y As Long 改為 Dim y As Integer
IsEmpty 函數Microsoft.VisualBasic.Information.IsNothing 函數
IsDate 函數Microsoft.VisualBasic.IsDate 函數
IsNull 函數Microsoft.VisualBasic.Information.IsDBNull 函數
IsObject 函數Microsoft.VisualBasic.Information.IsReference 函數
Join 函數System.String.Join 方法
KeyAsciie.KeyChar 屬性
Kill 語句Microsoft.VisualBasic.FileSystem.Kill 函數 System.IO 命名空間 FileInfo.Delete 方法
LBound UBoundSystem.Array.GetLowerBound System.Array.GetUpperBound
LCase$ 函數String.ToLower 方法 Microsoft.VisualBasic.Strings.LCase 函數
Left 屬性Control.Location 屬性
Left$、LeftB、LeftB$System.String.SubString Microsoft.VisualBasic.Strings.Left 函數
LenSystem.String.Length Microsoft.VisualBasic.Strings.Len
LenBSystem.Text.Encoding.GetEncoding("gb2312").GetByteCount(str1) System.Text.Encoding.Unicode.GetByteCount("123大小大") '結果 12 System.Text.Encoding.Default.GetByteCount("123大小大") '結果 9
Line 方法System.Drawing.Graphics.DrawLine 方法
Line Input # 語句Microsoft.VisualBasic.FileSystem.LineInput 函數
List1.AddItemListBox1.Items.Add
LoadPicture 函數System.Drawing.Image.FromFile("....test.bmp")
Lock 語句Microsoft.VisualBasic.FileSystem.Lock 函數
Log 函數system.Math.Log 方法
Long 類型 Integer 類型Dim y As Integer 改為 Dim x As Short Dim y As Long 改為 Dim y As Integer
LostFocus 事件Leave 事件
LTrim$ 函數System.String.TrimStart Microsoft.VisualBasic.Strings.LTrim 函數
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.MousePointerSystem.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 屬性
MsgBoxSystem.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 PrivateVisual Basic .NET沒有提供支持。
PaintPicture 方法System.Drawing.Graphics.DrawImage 方法
Point 方法不存在相同的Form和控件。 使用Bitmap時用System.Drawing.Bitmap.GetPixel 方法
Print 方法System.Drawing.Graphics.DrawString 方法
PrintFormVisual 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 語句ReDim MyArray(5)      ReDim Preserve MyArray(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")
SetAttrSystem.IO.File.SetAttributes
Sgn 函數System.Math.Sign 函數
ShellMicrosoft.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、ObjPtrDim MyGCHandle As GCHandle = GCHandle.Alloc(o,GCHandleType.Pinned) Dim Address As Integer = CInt(MyGCHandle.AddrOfPinnedObject()) MyGCHandle.Free() ' 允許對象實例再移動。
vbCrLfMicrosoft.VisualBasic.Constants.vbCrLf Microsoft.VisualBasic.vbCrLf
WeekdayMicrosoft.VisualBasic.Weekday System.DateTime.DayOfWeek
WeekdayNameMicrosoft.VisualBasic.WeekdayName (System.DateTime 構造體中沒有相同項目)
Width 屬性Control.Size 屬性
Write # 語句Microsoft.VisualBasic.FileSystem.Write 函數
Year 函數System.DateTime.Year 屬性

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 菏泽市| 个旧市| 乌兰浩特市| 沙坪坝区| 张家川| 舟曲县| 马尔康县| 萨迦县| 连平县| 巴马| 舒兰市| 家居| 明光市| 廊坊市| 开平市| 贵阳市| 香港 | 宜良县| 鄂温| 凌源市| 南丰县| 济南市| 石阡县| 汶川县| 出国| 乌兰察布市| 宜章县| 宜君县| 巴林左旗| 鄂州市| 会同县| 兴安县| 洪江市| 富源县| 舒兰市| 江安县| 印江| 静乐县| 电白县| 留坝县| 右玉县|