为什么text1中的文字分不了行,vbcrlf为什么不行呢?
PrivateSubCheck1_Click()Text1.FontBold=NotText1.FontBoldEndSubPrivateSubCheck2_Click(...
Private Sub Check1_Click()
Text1.FontBold = Not Text1.FontBold
End Sub
Private Sub Check2_Click()
Text1.FontItalic = Not Text1.FontItalic
End Sub
Private Sub Check3_Click()
Text1.FontUnderline = Not Text1.FontUnderline
End Sub
Private Sub Combo1_Click()
Text1.FontSize = Combo1.Text
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
Text1.Text = " 白日依山尽," & vbCrLf & "黄河入海流," & vbCrLf & "欲穷千里目," & Chr(13) + Chr(10) & "更上一层楼。"
For j = 0 To Screen.FontCount - 1
List1.AddItem Screen.Fonts(j)
Next j
For i = 5 To 40
Combo1.AddItem 2 * i
Next
End Sub
Private Sub List1_Click()
Text1.FontName = List1.Text
End Sub
Private Sub Option1_Click()
Text1.ForeColor = vbBlack
End Sub
Private Sub Option2_Click()
Text1.ForeColor = vbRed
End Sub
Private Sub Option3_Click()
Text1.ForeColor = vbBlue
End Sub 展开
Text1.FontBold = Not Text1.FontBold
End Sub
Private Sub Check2_Click()
Text1.FontItalic = Not Text1.FontItalic
End Sub
Private Sub Check3_Click()
Text1.FontUnderline = Not Text1.FontUnderline
End Sub
Private Sub Combo1_Click()
Text1.FontSize = Combo1.Text
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
Text1.Text = " 白日依山尽," & vbCrLf & "黄河入海流," & vbCrLf & "欲穷千里目," & Chr(13) + Chr(10) & "更上一层楼。"
For j = 0 To Screen.FontCount - 1
List1.AddItem Screen.Fonts(j)
Next j
For i = 5 To 40
Combo1.AddItem 2 * i
Next
End Sub
Private Sub List1_Click()
Text1.FontName = List1.Text
End Sub
Private Sub Option1_Click()
Text1.ForeColor = vbBlack
End Sub
Private Sub Option2_Click()
Text1.ForeColor = vbRed
End Sub
Private Sub Option3_Click()
Text1.ForeColor = vbBlue
End Sub 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询