求一个vb程序 - VB / 非技术类
代码要求在100行多一点 稍微简单一点 能够实现有趣的功能 有点小问题不要紧 重要的是能运行 代码可以打包发到邮箱 244313749@qq.com
这种软件有啥用啊
以下的代码 复制。粘贴。运行。即可
VB code:
Private Type xy
X As Single
Y As Single
End Type
Dim a(100) As xy
Private WithEvents Timer1 As Timer
Private Sub Form_Activate()
v = "鼠标在窗口随便点击一下,然后再拖动鼠标,就出现效果了哈!"
Form1.CurrentX = Screen.Width / 4
Form1.CurrentY = Screen.Height / 2.5
Randomize
For i = 1 To Len(v)
Form1.FontSize = 10 + 15 * Rnd
Form1.ForeColor = &HFFFFFF * Rnd
Print Mid(v, i, 1);
Next i
End Sub
Private Sub Form_Load()
Set Timer1 = Form1.Controls.Add("VB.timer", "t")
Form1.Move 0, 0, Screen.Width, Screen.Height
Timer1.Enabled = False
Timer1.Interval = 10
Form1.BackColor = 0
Form1.AutoRedraw = True
Form1.DrawWidth = 10
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
a(0).X = X
a(0).Y = Y
For i = 1 To 100
a(i).X = X
a(i).Y = a(i - 1).Y
Next i
Timer1.Enabled = True
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
a(0).X = X
a(0).Y = Y
End Sub
Private Sub Timer1_Timer()
Dim i As Integer, r As Double
Static b As Double
b = b + 1
Cls
For i = 1 To 100
a(i).X = a(i).X + ((a(i - 1).X - a(i).
相关问答:
我想把word另存为xml之后,用vb读取这个xml的内容,请问如何实现?
dim f as integer
dim b() as byte
dim s as string
dim L as long
f=freefile()
open "abc.xml" for binary access read as #f
......
怎么把已知的数据保存成xml文件,现在已知的数据是
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o=& ......
xmlDoc1.loadXML(h)总是返回false,为什么?谢谢帮忙回答一下
h是什么呢。。。。。。。。。
h是xml格式的字符串
你是想打开。XML格式的文件吧?
我是把h放在xmlDoc1里,用xmlDoc1.loadXML(h),然后取xmlDo ......
小弟用VB调EXCEL作图
objExlApp.Workbooks.Add
objExlApp.Charts.Add
objExlApp.ActiveChart.ChartType = xlLine
objExlApp.ActiveChart.HasLegend = True
objExlApp. ......