943,776 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Jan 17th, 2009
0

hi

Expand Post »
can anyone here know how to make a fade in and fade out label? in visual basic?
Reputation Points: 3
Solved Threads: 5
Posting Whiz in Training
ryan311 is offline Offline
254 posts
since Jul 2008
Jan 17th, 2009
0

Re: hi

what exactly is a fade in and fade out label ?
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Jan 17th, 2009
0

Re: hi

fade in fade out like in macromedia flash the alpha effects how can i do that in visual basic? it is possible?
Reputation Points: 3
Solved Threads: 5
Posting Whiz in Training
ryan311 is offline Offline
254 posts
since Jul 2008
Jan 19th, 2009
0

Re: hi

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:

vb Syntax (Toggle Plain Text)
  1. Private Sub Timer1_Timer()
  2. '
  3. Static T As Integer
  4. Static LFlag As Boolean
  5. '
  6. If LFlag Then
  7. T = T + 10
  8. Else
  9. T = T - 10
  10. End If
  11. If T > 260 Then
  12. T = 250
  13. LFlag = False
  14. End If
  15. If T < 0 Then
  16. T = 0
  17. LFlag = True
  18. End If
  19. '
  20. Label1.ForeColor = RGB(T, T, T)
  21. Label1.Refresh
  22. '
  23. End Sub

Regards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Jan 19th, 2009
0

Re: hi

maybe using GDI?
Moderator
Featured Poster
Reputation Points: 1764
Solved Threads: 574
Moderator
jbennet is offline Offline
16,505 posts
since Apr 2005
Jan 20th, 2009
0

Re: hi

thnx veena but how it work w/ 5 text for example first to see is "Me" second "You" Third "Everywhere" etc. it is possible?
Reputation Points: 3
Solved Threads: 5
Posting Whiz in Training
ryan311 is offline Offline
254 posts
since Jul 2008
Jan 21st, 2009
0

Re: hi

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.
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007
Jan 21st, 2009
0

Re: hi

how would i go about making just a FADE IN label from white to black but not fade out again i cnt get it to work??
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Matt3144 is offline Offline
7 posts
since Jan 2009
Jan 21st, 2009
0

Re: hi

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.
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007
Jan 22nd, 2009
0

Re: hi

hi jerih can u give me sample thanks
Reputation Points: 3
Solved Threads: 5
Posting Whiz in Training
ryan311 is offline Offline
254 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Alt+some key in KeyPress event
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Timers and Conversion Questions





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC