⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmmain.frm

📁 VB写的串口通讯,通过串口对单片机进行控制.
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form frmMain 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Jacky's Programe of Control moto_car."
   ClientHeight    =   4200
   ClientLeft      =   4545
   ClientTop       =   3210
   ClientWidth     =   5685
   Icon            =   "frmMain.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   MouseIcon       =   "frmMain.frx":5882
   ScaleHeight     =   4200
   ScaleWidth      =   5685
   Begin VB.CommandButton cmd_Speed_Zero 
      Caption         =   "Speed = 0"
      Height          =   375
      Left            =   3960
      TabIndex        =   13
      Top             =   3360
      Width           =   1455
   End
   Begin VB.CommandButton cmd_Default_Speed 
      Caption         =   "Default Speed"
      Height          =   375
      Left            =   3960
      TabIndex        =   12
      Top             =   2760
      Width           =   1455
   End
   Begin VB.CommandButton cmd_ClearTxtMsg 
      Caption         =   "清空数据区"
      Height          =   375
      Left            =   4320
      TabIndex        =   1
      Top             =   480
      Width           =   1215
   End
   Begin VB.CommandButton cmd_Speed_Halve 
      Caption         =   "Speed /2"
      Height          =   375
      Left            =   3960
      TabIndex        =   11
      Top             =   2160
      Width           =   1455
   End
   Begin VB.CommandButton cmd_Speed_Double 
      Caption         =   "Speed *2"
      Height          =   375
      Left            =   3960
      TabIndex        =   10
      Top             =   1560
      Width           =   1455
   End
   Begin VB.CommandButton cmd_Go_Right_Circle 
      Caption         =   "走右圆"
      Height          =   375
      Left            =   1920
      TabIndex        =   9
      Top             =   3360
      Width           =   1455
   End
   Begin VB.CommandButton cmd_Go_Left_Circle 
      Caption         =   "走左圆"
      Height          =   375
      Left            =   1920
      TabIndex        =   8
      Top             =   2760
      Width           =   1455
   End
   Begin VB.CommandButton cmd_Go_Square 
      Caption         =   "走正方形"
      Enabled         =   0   'False
      Height          =   375
      Left            =   1920
      TabIndex        =   7
      Top             =   2160
      Width           =   1455
   End
   Begin VB.CommandButton cmd_Go_8 
      Caption         =   "走八字"
      Enabled         =   0   'False
      Height          =   375
      Left            =   1920
      TabIndex        =   6
      Top             =   1560
      Width           =   1455
   End
   Begin VB.CommandButton cmd_Right_Turn 
      Caption         =   "原地右转"
      Height          =   375
      Left            =   120
      TabIndex        =   5
      Top             =   3360
      Width           =   1455
   End
   Begin VB.CommandButton cmd_Left_Turn 
      Caption         =   "原地左转"
      Height          =   375
      Left            =   120
      TabIndex        =   4
      Top             =   2760
      Width           =   1455
   End
   Begin VB.CommandButton cmd_Backward 
      Caption         =   "后退"
      Height          =   375
      Left            =   120
      TabIndex        =   3
      Top             =   2160
      Width           =   1455
   End
   Begin VB.CommandButton cmd_Forward 
      Caption         =   "前进"
      Height          =   375
      Left            =   120
      TabIndex        =   2
      Top             =   1560
      Width           =   1455
   End
   Begin MSCommLib.MSComm MSComm1 
      Left            =   3000
      Top             =   0
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
      DTREnable       =   -1  'True
   End
   Begin VB.TextBox txtMsg 
      Height          =   615
      Left            =   240
      Locked          =   -1  'True
      TabIndex        =   0
      Top             =   360
      Width           =   3855
   End
   Begin VB.Label Label6 
      Caption         =   " 2005.SomeRights Reserved."
      BeginProperty Font 
         Name            =   "Comic Sans MS"
         Size            =   7.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   2430
      TabIndex        =   19
      Top             =   3950
      Width           =   2175
   End
   Begin VB.Label Label5 
      Caption         =   "ICFans.com"
      BeginProperty Font 
         Name            =   "Comic Sans MS"
         Size            =   7.5
         Charset         =   0
         Weight          =   700
         Underline       =   -1  'True
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   255
      Left            =   1605
      MouseIcon       =   "frmMain.frx":5B8C
      MousePointer    =   2  'Cross
      TabIndex        =   18
      Top             =   3960
      Width           =   855
   End
   Begin VB.Image image_logo 
      Height          =   255
      Left            =   4680
      MouseIcon       =   "frmMain.frx":5E96
      Picture         =   "frmMain.frx":B678
      Stretch         =   -1  'True
      Top             =   3920
      Width           =   915
   End
   Begin VB.Label Label4 
      Alignment       =   2  'Center
      Caption         =   "Powered by Jacky @ "
      BeginProperty Font 
         Name            =   "Comic Sans MS"
         Size            =   7.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   0
      TabIndex        =   17
      Top             =   3950
      Width           =   1575
   End
   Begin VB.Line Line4 
      X1              =   0
      X2              =   5760
      Y1              =   3840
      Y2              =   3840
   End
   Begin VB.Label Label3 
      Caption         =   "速度调整:"
      Height          =   255
      Left            =   3720
      TabIndex        =   16
      Top             =   1200
      Width           =   1335
   End
   Begin VB.Line Line2 
      X1              =   3600
      X2              =   3600
      Y1              =   1080
      Y2              =   3840
   End
   Begin VB.Label Label2 
      Caption         =   "预定动作:"
      Height          =   255
      Left            =   0
      TabIndex        =   15
      Top             =   1200
      Width           =   975
   End
   Begin VB.Line Line1 
      X1              =   -120
      X2              =   5760
      Y1              =   1080
      Y2              =   1080
   End
   Begin VB.Label Label1 
      Caption         =   "数据反馈区:"
      Height          =   435
      Left            =   240
      TabIndex        =   14
      Top             =   120
      Width           =   1155
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*************************************************************************
'**                      Jacky's Work
'**-----------------------------------------------------------------------
'**Jacky's web :http://www.ICFans.com
'**Jacky's Blog:http://blog.ICFans.com
'**Jacky Lee 2005-05-05 xidian university
'**Thanks to 叶帆源码:http://blog.csdn.net/yefanqiu
'*************************************************************************

'*************************************************************************
'**模 块 名:与51单片机的串行通讯
'**创 建 人:Jacky
'**日    期:2005-05-05
'**编程工具:VB6
'**修 改 人:
'**日    期:
'**描    述:与51单片机的串行通讯 for My moto_car
'**版    本:V1.0.0
'**其    他:串口不能接受单片机返回的数据,但用串口调试助手则接受成功,期待解决。
'*************************************************************************

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -