00问答网
所有问题
VB编程:编写程序,在文本框(Text1)中输入一个整数,点击图片框,找出该数的所有因子并显示在该
VB编程:编写程序,在文本框(Text1)中输入一个整数,点击图片框,找出该数的所有因子并显示在该图片框中
举报该问题
推荐答案 2016-05-24
'给个参考程序。朋友。
Private Sub Picture1_Click()
Dim n As Integer, i As Integer
n = Val(Text1.Text)
For i = 1 To n
If n Mod i = 0 Then Picture1.Print i
Next i
End Sub
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://00.wendadaohang.com/zd/nneIrIeTernBjDerjTT.html
其他回答
第1个回答 2016-05-24
Private Sub Command1_Click()
Dim i As Integer
For i = 1 To Val(Text1)
If Val(Text1) Mod i = 0 Then Picture1.Print i
Next
End Sub
相似回答
大家正在搜
相关问题
VB编程:在文本框(Text1)中输入一个整数,单击标签框(...
VB编程题,在文本框Text1中输入一个正整数,单击Comm...
编写VB程序,实现如下功能:在文本框text1...
用VB编写程序,在文本框1中输入一段文本,单击“统计”按钮,...
用vb编写程序,在文本框(text1)中输入一段文本,单机“...
VB程序制作一个成绩等级程序,要求在文本框Text1中输入成...
编写VB程序,找出任意一个正整数的因子。要求用Sub过程Fa...
vb Text1里输入一个正整数,回车后在标签里显示其所有因...