第一次用Progressbar,找了半天,找不到调整该控件的背景色。请指教!
解决方案 »
- 关于文件更新
- 字符串转16进制数 在线等
- 关于直接拆解post数据然后用vb写二进制方式保存文件的问题!!!!!!
- 如何在控件中弹出非模态窗口
- 谁有vaspread表格控件阿,谢谢
- 小弟不才,麻烦各位大哥帮忙....急用
- 怎样打开CHM文件
- S1000: [Microsoft][ODBC SQL Server Driver]连接占线导致另一个 hstmt 怎么回事?
- Flash MX 的控件在win98下引用为什么总非法操作,如何解决?
- 请教象Winamp那样能取得含有子目录的目录下的某一类文件的算法
- 紧急求助,请问如何实现Label竖排?
- 如何捕获用户在准备改变窗体大小而又刚好松开鼠标呢,谢谢
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)Private Sub Form_Load()
Timer1.Interval = 1
End SubPrivate Sub Timer1_Timer()
Static x As Long
Static direction As Boolean
If direction = False Then
Picture1.ForeColor = RGB((255 / Picture1.Width) * x, 0, 255)
x = x + 5
Picture1.Line (x, 0)-(x, Picture1.Height)
If x >= Picture1.Width Then direction = True
Else
Picture1.ForeColor = RGB((255 / Picture1.Width) * x, 255, 0)
x = x - 5
Picture1.Line (x, 0)-(x, Picture1.Height)
If x <= 0 Then direction = False
End If
End Sub
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Sub Command1_Click()
ProgressBar1.Value = 55
SendMessage ProgressBar1.hwnd, &H2001, 0&, ByVal vbGreen
SendMessage ProgressBar1.hwnd, &H409, 0&, ByVal vbWhite
End Sub