?? frmtext.frm
字號:
VERSION 5.00
Begin VB.Form frmText
BorderStyle = 3 'Fixed Dialog
Caption = "文字"
ClientHeight = 1965
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 3720
Icon = "frmText.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1965
ScaleWidth = 3720
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.TextBox txtCaption
Height = 360
Left = 1155
TabIndex = 0
Text = "Text1"
Top = 165
Width = 2400
End
Begin VB.CommandButton CancelButton
Caption = "取消(&C)"
Height = 420
Left = 1905
TabIndex = 2
Top = 1260
Width = 1215
End
Begin VB.CommandButton OKButton
Caption = "確定(&O)"
Default = -1 'True
Height = 420
Left = 480
TabIndex = 1
Top = 1260
Width = 1215
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "請輸入文字"
Height = 180
Left = 90
TabIndex = 3
Top = 255
Width = 900
End
End
Attribute VB_Name = "frmText"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim mCanceled As Boolean
Dim mText As String
Private Sub CancelButton_Click()
Unload Me
End Sub
Private Sub Form_Load()
mCanceled = True
End Sub
Private Sub OKButton_Click()
mCanceled = False
mText = txtCaption.Text
Unload Me
End Sub
Public Property Get FeatureCaption() As String
FeatureCaption = mText
End Property
Public Property Let FeatureCaption(ByVal vNewValue As String)
mText = vNewValue
txtCaption.Text = mText
End Property
Public Property Get IsCanceled() As Variant
IsCanceled = mCanceled
End Property
Public Sub SetPosition(ByVal X As Double, ByVal Y As Double)
On Error Resume Next
Me.Left = X
Me.Top = Y
End Sub
Private Sub txtCaption_Change()
End Sub
Private Sub txtCaption_GotFocus()
On Error Resume Next
txtCaption.SelStart = 0
txtCaption.SelLength = Len(txtCaption.Text)
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -