求VB编写一个小文件

 我来答
xujmhw6
推荐于2016-03-05 · TA获得超过1084个赞
知道大有可为答主
回答量:1261
采纳率:84%
帮助的人:385万
展开全部

Private Sub Check1_Click()
Text1.FontBold = Check1.Value
End Sub

Private Sub Check2_Click()
If Check2.Value Then
Text1.ForeColor = vbMagenta
Else
Text1.ForeColor = vbBlack
End If
End Sub

Private Sub Combo1_Click()
File1.FileName = Combo1.Text
End Sub

Private Sub Combo1_KeyPress(KeyAscii As Integer)
Dim i As Integer
If KeyAscii = 13 Then
For i = 0 To Combo1.ListCount - 1
If Combo1.Text = Combo1.List(i) Then Exit Sub
Next i
Combo1.AddItem (Combo1.Text)
File1.FileName = Combo1.Text

End If
End Sub

Private Sub Dir1_Change()
File1.Path = Dir1.Path
File1.FileName = Combo1.Text
End Sub

Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub

Private Sub File1_Click()
Text1.Text = File1.Path + File1.FileName
End Sub

Private Sub Form_Load()
File1.Path = Dir1.Path
File1.FileName = Combo1.Text
End Sub


Private Sub Option1_Click(Index As Integer)
Text1.Font = Option1(Index).Caption


End Sub

Private Sub Option2_Click(Index As Integer)
Text1.FontSize = Option2(Index).Caption
End Sub
sbj518
2015-12-17 · TA获得超过4.4万个赞
知道大有可为答主
回答量:1.1万
采纳率:81%
帮助的人:5613万
展开全部
这个作业我已经写了呀。。。。。你要吗?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
帐号已注销
2015-12-17 · TA获得超过899个赞
知道大有可为答主
回答量:1482
采纳率:0%
帮助的人:982万
展开全部


已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式