📄 mydialog.frm
字号:
VERSION 5.00
Begin VB.Form frmstsearch
AutoRedraw = -1 'True
BackColor = &H80000004&
BorderStyle = 3 'Fixed Dialog
Caption = "Search"
ClientHeight = 4695
ClientLeft = 45
ClientTop = 330
ClientWidth = 7995
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "MyDialog.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4695
ScaleWidth = 7995
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.PictureBox Picture3
Height = 1575
Left = -240
Picture = "MyDialog.frx":000C
ScaleHeight = 1515
ScaleWidth = 12060
TabIndex = 6
Top = 0
Width = 12120
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Students Search Result"
BeginProperty Font
Name = "Verdana"
Size = 24
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000006&
Height = 570
Left = 480
TabIndex = 7
Top = 360
Width = 6465
End
End
Begin VB.Frame Frame1
BackColor = &H80000004&
Height = 1785
Left = 1320
TabIndex = 1
Top = 2160
Width = 5175
Begin VB.TextBox t1
Height = 315
Left = 930
TabIndex = 0
Top = 630
Width = 3165
End
Begin VB.Frame Frame2
BackColor = &H80000004&
Height = 645
Left = 930
TabIndex = 2
Top = 990
Width = 3165
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "&Cancel"
Height = 315
Left = 1650
TabIndex = 4
Top = 210
Width = 1245
End
Begin VB.CommandButton Command1
Caption = "&OK"
Default = -1 'True
Height = 315
Left = 240
TabIndex = 3
Top = 210
Width = 1245
End
End
Begin VB.Label Label1
BackColor = &H80000004&
Caption = "Enter the Roll NO which you want to Search Result:"
ForeColor = &H00000000&
Height = 375
Left = 240
TabIndex = 5
Top = 300
Width = 4005
End
End
End
Attribute VB_Name = "frmstsearch"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub Command1_Click()
On Error GoTo 1
If Not IsNumeric(t1.Text) Then
MsgBox "Some Numeric value required", vbInformation, App.Comments
t1.SetFocus
SendKeys "{home}+{end}"
Exit Sub
End If
If t1.Text = "" Then
MsgBox "You must enter some thing in the field", vbInformation, App.Comments
t1.SetFocus
Exit Sub
End If
frmResult.t1.Text = t1.Text
Unload Me
Exit Sub
1:
MsgBox "No value Found, Try Again", vbInformation, App.Comments
End Sub
Private Sub Form_Load()
Dither Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -