3个回答
展开全部
让LABEL里的文字竖排方法:
Private Function Vertical_Horizontal(ByVal nStr As String) As String
Dim MyStr As String, i As Integer
Static Vert As Boolean
For i = 1 To Len(nStr)
If i < Len(nStr) Then
MyStr = MyStr + Mid$(nStr, i, 1) & vbCrLf
Else
MyStr = MyStr + Mid$(nStr, i, 1)
End If
Next
Vertical_Horizontal = MyStr
Vert = True
End Function
Private Sub Form_Load()
Label1.AutoSize = True
Label1.Caption = "VB如何让标签里的文字竖排"
Label1.Caption = Vertical_Horizontal(Label1.Caption)
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询