5.11.frm

来自「VB6.0应用例题」· FRM 代码 · 共 41 行

FRM
41
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "移动图片框中的文本框"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.PictureBox Picture1 
      Height          =   3255
      Left            =   0
      ScaleHeight     =   3195
      ScaleWidth      =   4635
      TabIndex        =   0
      Top             =   0
      Width           =   4695
      Begin VB.TextBox Text1 
         Height          =   735
         Left            =   1200
         TabIndex        =   1
         Text            =   "Text1"
         Top             =   1440
         Width           =   1215
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  Text1.Text = "     " & X & "," & Y  '显示当前鼠标位置
  Text1.Left = X
  Text1.Top = Y
End Sub

⌨️ 快捷键说明

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