求一个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
......
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' 打开刚创建的文件。
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' 读入所有字符到变量中 ......
数据库里有一个字段的内容是二进制,怎么才能把这个二进制读出来
使用字节流对象可以实现
例如现在数据库里有个字段的内容是0x504B03040A0000000800407F263C3B02465390000000820000000A0000006273CECACCE22E7478 ......
用VB编程读取短信,得到一大堆unicode编码,请教如何转换成文本
例如:读取短信后(华为900C或TC35i),串口得到如下数据:
+CMGL: 17,"REC UNREAD","8615007557713",,"10/03/30,09:37:15+32&qu ......
有两个问题
第一个问题:
网页源码
<td><select name="question" onchange="showcustomquest(this.value)" tabindex="4"><option value="0">无安全问 ......