hi

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2008
Posts: 161
Reputation: ryan311 has a little shameless behaviour in the past 
Solved Threads: 1
ryan311 ryan311 is offline Offline
Junior Poster

hi

 
0
  #1
Jan 17th, 2009
can anyone here know how to make a fade in and fade out label? in visual basic?
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,131
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 131
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: hi

 
0
  #2
Jan 17th, 2009
what exactly is a fade in and fade out label ?
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 161
Reputation: ryan311 has a little shameless behaviour in the past 
Solved Threads: 1
ryan311 ryan311 is offline Offline
Junior Poster

Re: hi

 
0
  #3
Jan 17th, 2009
fade in fade out like in macromedia flash the alpha effects how can i do that in visual basic? it is possible?
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: hi

 
0
  #4
Jan 19th, 2009
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:

  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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,253
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 542
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: hi

 
0
  #5
Jan 19th, 2009
maybe using GDI?
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 161
Reputation: ryan311 has a little shameless behaviour in the past 
Solved Threads: 1
ryan311 ryan311 is offline Offline
Junior Poster

Re: hi

 
0
  #6
Jan 20th, 2009
thnx veena but how it work w/ 5 text for example first to see is "Me" second "You" Third "Everywhere" etc. it is possible?
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 43
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: hi

 
0
  #7
Jan 21st, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 6
Reputation: Matt3144 is an unknown quantity at this point 
Solved Threads: 0
Matt3144's Avatar
Matt3144 Matt3144 is offline Offline
Newbie Poster

Re: hi

 
0
  #8
Jan 21st, 2009
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??
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 43
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: hi

 
0
  #9
Jan 21st, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 161
Reputation: ryan311 has a little shameless behaviour in the past 
Solved Threads: 1
ryan311 ryan311 is offline Offline
Junior Poster

Re: hi

 
0
  #10
Jan 22nd, 2009
hi jerih can u give me sample thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC