| | |
hi
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi,
I Guess, there is no in-built control like that in VB6, But you can Create one..
Place a Timer Control on the Form, and set its Interval =200
Also Place a Label Control..
Write this code:
Regards
Veena
I Guess, there is no in-built control like that in VB6, But you can Create one..
Place a Timer Control on the Form, and set its Interval =200
Also Place a Label Control..
Write this code:
vb Syntax (Toggle Plain Text)
Private Sub Timer1_Timer() ' Static T As Integer Static LFlag As Boolean ' If LFlag Then T = T + 10 Else T = T - 10 End If If T > 260 Then T = 250 LFlag = False End If If T < 0 Then T = 0 LFlag = True End If ' Label1.ForeColor = RGB(T, T, T) Label1.Refresh ' End Sub
Regards
Veena
well, you will trigger the timer inside each timer so if 1st timer is going to finish the job the second timer must be enabled in order to run the second timer and so on...
Last edited by jireh; Jan 21st, 2009 at 4:27 pm.
A conclusion is the place where you got tired of thinking. http://www.martin2k.co.uk/forums/index.php?showforum=4
http://www.a1vbcode.com/a1vbcode/vbforums/Forum3-1.aspx
http://www.developerfusion.co.uk/for...orum&ForumID=4
in your timer event deduct the opacity of the label in every tick og the timer then after it was about 50% change the color to black or white then back the add the opacity in every tick until it will be 100%. just like that.
A conclusion is the place where you got tired of thinking. http://www.martin2k.co.uk/forums/index.php?showforum=4
http://www.a1vbcode.com/a1vbcode/vbforums/Forum3-1.aspx
http://www.developerfusion.co.uk/for...orum&ForumID=4
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Alt+some key in KeyPress event
- Next Thread: Timers and Conversion Questions
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows







how can i do that in visual basic? it is possible?