Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 07-31-2004, 06:07 PM   #1 (permalink)
 
Wizard Techie

Join Date: Mar 2004

Posts: 3,784

waynejkruse10

Default titles of forms

how can you change the title of a form every just say 2,3 minutes.
wayne
__________________
Core 2 Duo E6400, DFI Infinity 975X/G, 2x 512mb DDR2 667mhz, Albatron 7900gt, WD 200gb SATA, Samsung DVD-RW, Silverstone ST-50EF 500w PSU.
waynejkruse10 is offline  
Old 08-06-2004, 11:09 PM   #2 (permalink)
 
Newb Techie

Join Date: Jun 2004

Posts: 22

lexor

Default Use Timer

To get result you want you must use a timer control.

insert a timer on the form, timer control is not visible so you can insert it in any part of your form.

on the form load event type this
Quote:
Timer1.Interval = 2000
the interval value 2000 is equivalent to 2 seconds

then type this one:

Quote:
Private Sub Timer1_Timer()
Static ctr as integer

' Start loading the form title here

if ctr = 0 then
form1.caption = "New caption"
ctr=1
else if ctr =1 then
form1.caption ="Other caption
ctr=2
else if ctr = 2 then
form2.caption = "Last caption
ctr=0
end if
End Sub
This code will continuesly display title while your program is open.
lexor is offline  
Old 08-07-2004, 08:26 PM   #3 (permalink)
 
Wizard Techie

Join Date: Mar 2004

Posts: 3,784

waynejkruse10

Default

thanks
__________________
Core 2 Duo E6400, DFI Infinity 975X/G, 2x 512mb DDR2 667mhz, Albatron 7900gt, WD 200gb SATA, Samsung DVD-RW, Silverstone ST-50EF 500w PSU.
waynejkruse10 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On