VB里面如何输入空心文字
VB里面如何输入空心文字
2017-09-16 16:12
[此贴子已经被作者于2017-9-16 23:02编辑过]

2017-09-16 23:00
[此贴子已经被作者于2017-9-17 05:05编辑过]

2017-09-17 05:02
2017-09-17 12:53
2017-09-18 13:21
程序代码:Private Sub Command1_Click()
Picture1.Cls
Picture1.FontSize = 128
VKF Picture1, "中国人民大学"
Picture1.Print
VKF Picture1, "中国人民大学"
End Sub
Public Sub VKF(Pobj As PictureBox, S As String)
Dim oX As Integer, oY As Integer
Dim nX As Integer, nY As Integer
Dim QC As Long, BC As Long
Dim s1 As String, i As Long
For i = 1 To Len(S)
oX = Pobj.CurrentX
oY = Pobj.CurrentY
QC = Pobj.ForeColor
BC = Pobj.BackColor
Pobj.FontBold = True
Pobj.Print Mid(S, i, 1);
nX = Pobj.CurrentX
nY = Pobj.CurrentY
Pobj.CurrentX = oX
Pobj.CurrentY = oY
Pobj.ForeColor = BC
Pobj.FontBold = False
Pobj.Print Mid(S, i, 1)
Pobj.CurrentX = nX
Pobj.CurrentY = nY
Pobj.ForeColor = QC
Next i
End Sub

2017-09-18 17:36

2017-09-21 09:39