




全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
VB6.0和VB.Net的对照表VB6.0VB.NETAddItem Object名.AddItemObject名.Items.Add ListBox1.Items.Add ComboBox1.Items.AddAbs 函数System.Math.Abs 方法API 函数关系Microsoft Win32和Microsoft .NET Framework API的对应App.Path 等1. System.Reflection.Assembly.GetExecutingAssembly.Location2. Application.StartupPath3. Application.ExecutablePath4. System.AppDomain.CurrentDomain.BaseDirectoryApp.PrevInstanceProcess.GetProcessesByName(pn).GetUpperBound(0) 0As 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 QBColorvbBlack RGB()System.Drawing.Color.BlackCommandSystem.Environment.GetCommandLineArgsCombo1.AddItemComboBox1.Items.AddCos 函数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.ToStringDate$ 函数Microsoft.VisualBasic.DateAndTime.DateStringDateAdd 函数System.DateTime.AddYears 方法 AddMonths AddDaysDateDiff 函数Microsoft.VisualBasic.DateDiff 函数DateValue 函数System.DateTime.Parse 方法 CDate 函数DatePart 函数Microsoft.VisualBasic.DatePart 函数Day 函数System.DateTime.Day 属性 Debug.PrintDebug.WriteLineDeleteSetting 语句Microsoft.VisualBasic.Interaction.DeleteSettingDoEvents 函数System.Windows.Forms.Application.DoEvents 方法DrawMode 属性System.Drawing.Pen.Color 属性DrawStyle 属性System.Drawing.Pen.PenType 属性DrawWidth 属性System.Drawing.Pen.Width 属性EnvironMicrosoft.VisualBasic.Interaction.EnvironSystem.Environment.GetFolderPathExp 函数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.FileLenFillStyle 属性System.Drawing.Pen.Brush 属性Get 语句Microsoft.VisualBasic.FileSystem.FileGet 函数GetAttrSystem.IO.File.GetAttributesGotFocus 事件Enter 事件GetSetting 语句Microsoft.VisualBasic.Interaction.GetSettingFileDateTime 函数System.IO.File.GetCreationTime 方法HasDC 属性没有相同项目。HDC 属性没有相同项目。Height 属性Control.Size 属性Hour 函数System.DateTime.Hour 属性hwnd Form1.hwndForm1.Handle 定义处也是 ByVal hWnd As IntPtrImage 属性Image 属性Input # 语句Microsoft.VisualBasic.FileSystem.Input 函数InStr 函数System.String.IndexOfMicrosoft.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 ShortDim y As Long 改为 Dim y As IntegerIsEmpty 函数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.GetUpperBoundLCase$ 函数String.ToLower 方法Microsoft.VisualBasic.Strings.LCase 函数Left 属性Control.Location 属性Left$、LeftB、LeftB$System.String.SubStringMicrosoft.VisualBasic.Strings.Left 函数LenSystem.String.LengthMicrosoft.VisualBasic.Strings.LenLenB System.Text.Encoding.GetEncoding(gb2312).GetByteCount(str1)System.Text.Encoding.Unicode.GetByteCount(123大小大) 结果 12System.Text.Encoding.Default.GetByteCount(123大小大) 结果 9Line 方法System.Drawing.Graphics.DrawLine 方法Line Input # 语句Microsoft.VisualBasic.FileSystem.LineInput 函数List1.AddItemListBox1.Items.AddLoadPicture 函数System.Drawing.Image.FromFile(.test.bmp)Lock 语句Microsoft.VisualBasic.FileSystem.Lock 函数Log 函数system.Math.Log 方法Long 类型 Integer 类型Dim y As Integer 改为 Dim x As ShortDim y As Long 改为 Dim y As IntegerLostFocus 事件Leave 事件LTrim$ 函数System.String.TrimStartMicrosoft.VisualBasic.Strings.LTrim 函数Mid 函数System.String.SubStringMicrosoft.VisualBasic.Strings.Mid 函数MidB 函数Microsoft.VisualBasic.Strings.Mid 函数Minute 函数System.DateTime.Minute 属性MkDir 语句Microsoft.VisualBasic.FileSystem.MkDir 函数System.IO.Directory.CreateDirectory 方法MousePointer=11Screen.MousePointerSystem.Windows.Forms.Cursors.WaitCursor()System.Windows.Forms.Cursor.Current = Cursors.WaitCursorMod 运算符Math.IEEERemainder 方法 Debug.WriteLine(Math.IEEERemainder(10, 3) 结果 1System.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.MsgBoxName 语句Microsoft.VisualBasic.FileSystem.Rename 函数Now 函数System.DateTime.Now Microsoft.VisualBasic.NowOpen 语句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 PublicFriend Protected Protected FriendPset 方法不存在相同的Form和控件。使用Bitmap时用System.Drawing.Bitmap.SetPixel 方法Put 语句Microsoft.VisualBasic.FileSystem.FilePut 函数Replace 函数Microsoft.VisualBasic.Strings.Replace 函数Right$ 函数、RightB 函数System.String.SubStringMicrosoft.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.TrimEndMicrosoft.VisualBasic.Strings.RTrimSaveSetting 语句Microsoft.VisualBasic.Interaction.SaveSetting 函数Scale 方法Visual Basic .NET没有提供支持。Screen.ActiveControlScreen.ActiveFormScreen.FontsScreen.HeightScreen.MousePointerScreen.Width其他 Screen 对象System.Windows.Forms.Application.ActiveForm.ActiveControlSystem.Windows.Forms.Application.ActiveFormSystem.Drawing.FontFamiliesSystem.Windows.Forms.Screen.PrimaryScreen.Bounds.HeightSystem.Drawing.Cursor.CurrentSystem.Windows.Forms.Screen.PrimaryScreen.Bounds.Width其他Second 函数System.DateTime.Second 属性SendKeys 语句System.Windows.Forms.SendKeys.Send(C)SetAttrSystem.IO.File.SetAttributesSgn 函数System.Math.Sign 函数ShellMicrosoft.VisualBasic.ShellSin 函数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.TimeOfDayTimeValue 函数S
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 登高作业考试题及答案测试卷
- 田径理论考试试题及答案
- 湖北省恩施州高中教育联盟2024-2025学年高一上学期期末考试生物试题(含答案)
- 2025年高校科研管理岗位面试题目及答案
- 儿童认知测评题库及答案
- 中央b类考试题及答案
- 管理英语2考试题及答案
- 书法考试题及答案
- 外国中文老师考试题及答案
- 专项公益资金管理办法
- 金融标准化知识培训课件
- 建筑安全员c2考试题库及答案
- 2025广东惠州惠城区招聘社区工作站工作人员66人笔试备考试题及答案解析
- 洋务运动和边疆危机课件-2025-2026学年统编版八年级历史上册
- 2025年中学教师资格考试《综合素质》核心考点特训题库(含答案)之教育文化素养论述题库
- 2025海南省老干部服务管理中心招聘事业编制人员6人(第1号)笔试参考题库附答案解析
- 2025-2026人教版(2024)二年级上册数学教学计划
- 湖北省利川市2025年上半年公开招聘辅警试题含答案分析
- 八年级历史上学期 导言课 课件(内嵌视频)
- 1.1.2 生物的特征 同步练习(含解析)人教版(2024)初中生物学七年级上册
- 2025云南玉溪国润建筑有限责任公司招聘工作人员10人笔试备考题库及答案解析
评论
0/150
提交评论