Timed Blinking label caption

Thread Solved

Join Date: Jun 2007
Posts: 9
Reputation: johntech is an unknown quantity at this point 
Solved Threads: 0
johntech johntech is offline Offline
Newbie Poster

Timed Blinking label caption

 
0
  #1
Jun 2nd, 2007
I'm working on the game of Concentration. When you match 2 squares I want to blink a label caption "MATCH" say 3 or 4 times then hide it. The problem is I want the program to stop until the blinking ends then continue. I use a timer to make the caption blink but am not sure how to stop the program until the blinking is done. Any help would be appreciated!

john
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 537
Reputation: choudhuryshouvi is an unknown quantity at this point 
Solved Threads: 49
choudhuryshouvi's Avatar
choudhuryshouvi choudhuryshouvi is offline Offline
Posting Pro

Re: Timed Blinking label caption

 
0
  #2
Jun 3rd, 2007
u can show the blinking label in a separate form. when users match the squares disable current form(me.enable=false) and then display the form with blinking label in vbmodal mode(form2.show vbmodal).after the specified time of blinking disable the timer(timer1.interval=0),close the form(unload me) and enable the game form(form1.enable=true).
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 9
Reputation: johntech is an unknown quantity at this point 
Solved Threads: 0
johntech johntech is offline Offline
Newbie Poster

Re: Timed Blinking label caption

 
0
  #3
Jun 3rd, 2007
Originally Posted by choudhuryshouvi View Post
u can show the blinking label in a separate form. when users match the squares disable current form(me.enable=false) and then display the form with blinking label in vbmodal mode(form2.show vbmodal).after the specified time of blinking disable the timer(timer1.interval=0),close the form(unload me) and enable the game form(form1.enable=true).
So what you are saying is there is no way to blink a lable on the form that is showing, say for 3 to 5 seconds, then hide the lable and continue with the program.

Hmmm....I'll have to do a little more searching on this one.

Thanks for the reply

John
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 9
Reputation: johntech is an unknown quantity at this point 
Solved Threads: 0
johntech johntech is offline Offline
Newbie Poster

Re: Timed Blinking label caption

 
0
  #4
Jun 3rd, 2007
I found the answer I was looking for in a post by sendoshin titled Problem with timer(urgent). Here he discusses several VERY GOOD ways to use the timer in VB
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



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



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC