vb滚动条(运行有问题,先让字体改变,但用滚动条一拉就出现数字)
PrivateSubCommand1_Click()IfOption1ThenText1.FontName="arialblack"ElseText1.FontName=...
Private Sub Command1_Click()
If Option1 Then
Text1.FontName = "arial black"
Else
Text1.FontName = "arial"
End If
If Option3 Then
Text1.FontSize = 16
Else
Text1.FontSize = 24
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
Form1.Caption = "框架用法示列"
Command1.Caption = "确定"
Command2.Caption = "结束"
Frame1.Caption = "字体类型"
Frame2.Caption = "字体大小"
Option1.Caption = "魏碑"
Option2.Caption = "幼圆"
Option3.Caption = "16"
Option4.Caption = "24"
Text1.Text = "visual basic 程序设计"
End Sub
Private Sub HScroll1_Change()
Text1.Text = HScroll1.Value
End Sub
Private Sub VScroll1_Change()
End Sub
因为字体已超出文本框范围,我想用滚动条拉出来看后面的东西,但一拉就显示数字,杂回事阿?? 展开
If Option1 Then
Text1.FontName = "arial black"
Else
Text1.FontName = "arial"
End If
If Option3 Then
Text1.FontSize = 16
Else
Text1.FontSize = 24
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
Form1.Caption = "框架用法示列"
Command1.Caption = "确定"
Command2.Caption = "结束"
Frame1.Caption = "字体类型"
Frame2.Caption = "字体大小"
Option1.Caption = "魏碑"
Option2.Caption = "幼圆"
Option3.Caption = "16"
Option4.Caption = "24"
Text1.Text = "visual basic 程序设计"
End Sub
Private Sub HScroll1_Change()
Text1.Text = HScroll1.Value
End Sub
Private Sub VScroll1_Change()
End Sub
因为字体已超出文本框范围,我想用滚动条拉出来看后面的东西,但一拉就显示数字,杂回事阿?? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询