VB程序里面的Label中输入的字体咋个弄成竖起 就是VB6。0
5个回答
展开全部
Private Sub Command1_Click() '竖起来
Dim a As String, t As String, i As Long
a = Me.Label1.Caption
For i = 1 To Len(a)
t = t + Mid(a, i, 1) + vbCrLf
Next i
Me.Label1.Caption = t
Me.Label1.Height = Len(a) * 180
End Sub
Private Sub Command2_Click() '横着放
Dim a As String
a = Me.Label1.Caption
a = Replace(a, vbCrLf, "")
With Me.Label1
.Caption = a
.Height = 180
.Width = 180 * Len(a)
End With
End Sub
Dim a As String, t As String, i As Long
a = Me.Label1.Caption
For i = 1 To Len(a)
t = t + Mid(a, i, 1) + vbCrLf
Next i
Me.Label1.Caption = t
Me.Label1.Height = Len(a) * 180
End Sub
Private Sub Command2_Click() '横着放
Dim a As String
a = Me.Label1.Caption
a = Replace(a, vbCrLf, "")
With Me.Label1
.Caption = a
.Height = 180
.Width = 180 * Len(a)
End With
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
有竖起来的字体呀。改字体就行了。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Command2_Click()
Dim intI%
Dim i%
Dim strZ As String
intI = Len(Label2.Caption)
strZ = Label2.Caption
Label2.Caption = ""
For i = 1 To intI
Label2.Caption = Label2.Caption & Mid(strZ, i, 1) & Chr(13)
Next
End Sub
Dim intI%
Dim i%
Dim strZ As String
intI = Len(Label2.Caption)
strZ = Label2.Caption
Label2.Caption = ""
For i = 1 To intI
Label2.Caption = Label2.Caption & Mid(strZ, i, 1) & Chr(13)
Next
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2011-12-30
展开全部
看你是怎么使用,如果的当列字下来,换行就好啦。如果是多列就可以设置属性里面可以找到
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询