📄 fang.ctl
字号:
VERSION 5.00
Begin VB.UserControl fang
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 1 'Fixed Single
ClientHeight = 3600
ClientLeft = 0
ClientTop = 0
ClientWidth = 4800
ScaleHeight = 3600
ScaleWidth = 4800
Begin VB.Line Line2
X1 = 1440
X2 = 1440
Y1 = 480
Y2 = 1080
End
Begin VB.Line Line1
X1 = 1200
X2 = 1800
Y1 = 720
Y2 = 720
End
End
Attribute VB_Name = "fang"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
'注意!不要删除或修改下列被注释的行!
'MappingInfo=UserControl,UserControl,-1,BackColor
Public Property Get BackColor() As OLE_COLOR
Attribute BackColor.VB_Description = "返回/设置对象中文本和图形的背景色。"
BackColor = UserControl.BackColor
End Property
Public Property Let BackColor(ByVal New_BackColor As OLE_COLOR)
UserControl.BackColor() = New_BackColor
PropertyChanged "BackColor"
End Property
'
'从存贮器中加载属性值
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
UserControl.BackColor = PropBag.ReadProperty("BackColor", &H8000000F)
End Sub
'将属性值写到存储器
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
Call PropBag.WriteProperty("BackColor", UserControl.BackColor, &H8000000F)
End Sub
Private Sub UserControl_Resize()
Call ResizeDH
End Sub
Private Sub ResizeDH()
On Error Resume Next
Line1.X1 = 0
Line1.Y1 = 0
Line1.X2 = UserControl.ScaleWidth
Line1.Y2 = UserControl.ScaleHeight
Line2.X1 = 0
Line2.Y1 = UserControl.ScaleHeight
Line2.X2 = UserControl.ScaleWidth
Line2.Y2 = 0
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -