Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Need Help With Timers And Moving Things


I'm trying to use a timer that every time it refreshes, it will move the image up a little till a certian point then move it back this is the basic part if some one can answer this for me then i'll ask my next question.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Moving Things And Deselecting Things.
Okay, I have two questions. First I'll give you the noobish one. How do you deselect something like a command button so it's not highlighted? I also have a problem with my end of the year project I asked for help with a while ago. I'm trying to make it so that when you click a button, the notes on a measure (of music) move down to the next set of lines instead of going to the right off the screen. It's hard to explain, but here's the code for the command button:

VB Code:
Private Sub Command1_Click()intOMG = intOMG + 1If intOMG > 8 Then    Command1.Enabled = FalseEnd IfLine1(Line1.lbound + intOMG).Visible = TrueLine2(Line2.lbound + intOMG).Visible = TrueLine3(Line3.lbound + intOMG).Visible = TrueLine4(Line4.lbound + intOMG).Visible = TrueLine5(Line5.lbound + intOMG).Visible = True End Sub


Here's a picture of the form, which is probably the best way I can show you:

http://img.photobucket.com/albums/v6...r/untitled.jpg

Also, how can I make that scrollbar work? This should be my last question about my project (seeing as it's due tomorrow), so thanks to those who help.

Wierd Things With Timers.. Can The Run Only Once?
This one is wierd to me. Here is the problem.
I have 2 timers Named Timer1 and Timer2.
Timer1 has an Interval of 100 and Timer2 has an Interval of 5000.
On the form load I put timer1.Enabled = False and Timer2.Enabled = False
This turns off the timers like it is supposed to.

Later in my software if certain conditions are met I Enabale Timer1. Timer1 then waits 100ms and then executes its commands.
The first command that I issue in Timer1 is Timer1.Enabled = False
The Last Command that I put is Timer2.Enabled = True
Here is the weird part!
Then Timer2 waits 5secs and runs.
Then the first line in Timer2 is Timer2.Enabled = False
Then I execute several more commands to update some database records. Then it creates the records in the database with no problems. The wierd thing is that 5 secs later it runs again... It only runs twice and never only runs once. I have tried making the intervals different, but I can't get the timer to run only once. So I guess the questions is how do I get a timer to run only once?

Timers And Form Moving
I put a timer on my form and then run the project. When I move the form or just click on the title bar, the timer pauses itself until I let go of the title bar. How can I stop this??

Moving Things*
Ok, i have a shape that moves across the form (looping)

i have a timer that subtracts 10 out of the shape.left every 1 sec. from time to time i want to change the speed of this, like (-20) (-30)
etc......
so far i tried the following

Yellow1.Left = Yellow1.Left & Text1.Text

Obviously this did Not work, lol.
Does anyone have any better suggestions on accomplishing this? Thanks

Moving Things Between Frames
How do i move for instance a label between 2 frames? i tried with label1.container but that didnt work very well, so i guess thats not what its used for or im doing something else wrong.

Moving Things Into Tabs
i have a bunch of labels and text boxes that are in a form. i just discovered the tab function and when i try to move them into the tab they just end up going underneith. how do u get them to go on the tab?

Help With Moving Things In Arrays
Hey people.

Here is my problem.

I have an array of a size 10. Anyway i want to know how to delete and item in the array and move every item in the array down one so that it fills the empty space. So that I have no empty spaces in the middle of my array only at the end of it.

I have puzzled on it for ages.

Any help would be aprreciated.

Moving Things From One Listview To Another
Hey guys I have one listview called report on a form call antivirus. This listview has checkboxes.

I have another listview with no check boxes on a form call resuls.

What I would like to do is when an item or items is checked, whatever is in the first column of the report listview on the antivirus form goes in the results listview on the resuls form. The same as the second column, I would like that repeated as well.

But the twist is if the user checks a problem and then presses the delete button. I would like the 3rd column of the results listview on the resuls form to say "Deleted" for that checked item.

OR if the user checks a problem and presses ignore then it would just say Ignored by the item in the 3rd column.


Can anyone tell me how I could do all that?

Thanks!

Moving Things From A Listview To A Textbox?
Hey guys I have a listview called report and it has check boxes. I have another form called form2 with a text2.text.

Is there a way when I check one item and press a button that checked item goes in the text2 of the form2?

Its just the item from the first column of the report listivew.

Thanks!

Bunch O Timers - Moving Objects - Bounce Off Screen Edge
I'm sure it's been covered before . It's not that hard to do
yet I have issues . This is simple , Move the Object around the screen . The problem lies when it's moving to the right hand side . It seems to hit the wall then go straight up , yet on the left it works fine . I fail to see the error in my code and was hoping that you would have a look . The code is below .

Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_GETTEXT = &HD

Private Sub cmd_StartRecord_Click()

End Sub

Private Sub cmd_StopRecording_Click()

Sleep 4000 ' 2000 milliseconds = 2 seconds to delay

Timer1.Enabled = True

retval = SetCursorPos(0, 0) ' move the cursor to top left corner

End Sub

Private Sub cmd_Start_Click()
Sleep 4000 ' 2000 milliseconds = 2 seconds to delay

Timer1.Enabled = False


retval = SetCursorPos(0, 0) ' move the cursor to top left corner
End Sub

Private Sub Command1_Click()

End Sub

Private Sub cmd_Stop_Click()
Timer1.Enabled = False
End Sub

Private Sub Form_Load()
'Call the Formsontop function
'USAGE: Call formsontop(Me ,True ) -ONTOP MOST
' Call formsontop(Me ,False ) -NOT TOP MOST

Call FormsOnTop(Me, True)



'Set Initial Settings
Steps = 0
'Set the Steps Caption to the amount of steps
lbl_Steps.Caption = "Steps (" & Steps & ")"
Recording = False
Playing = False

'Get the screen Resolution
Dim x, y As Integer

x = Screen.Width / Screen.TwipsPerPixelX
y = Screen.Height / Screen.TwipsPerPixelY


Label3.Caption = "Screen Width =" '& x '& " TwipsPerPixel"
lbl_X.Caption = x
Label4.Caption = "Screen Height =" ' & y '& " TwipsPerPixel"
lbl_Y.Caption = y


Timer2.Enabled = True ' This captures the links
End Sub

Private Sub Timer1_Timer()

If IsOnScreen Then

'Call MoveMouse(GetX + 10, GetY + 10) 'Change Location of the Current Cursor
Dim retval As Long ' return value

retval = SetCursorPos(GetX + 10, GetY + 10) ' move the cursor

'//Updatet the text boxes
txt_CurrentX.Text = GetX
txt_CurrentY.Text = GetY
Me.Refresh 'Refresh the form1

If GetAsyncKeyState(vbLeftButton) Then Debug.Print "Left Button"
If GetAsyncKeyState(vbRightButton) Then Debug.Print "Right Button"
If GetAsyncKeyState(vbMiddleButton) Then Debug.Print "Middle Button"

If Not IsOnScreen Then
Putonscreen

End If
End If
End Sub

Public Sub TogglePlayrecord()
'This toggels the play and record booleans
If Recording = True Then
Playing = False
End If

If Playing = True Then
Recording = False

End If

End Sub

Private Sub txt_Steps_Change()

End Sub

Public Function IsOnScreen() As Boolean
'Get the screen Resolution
Dim xscreen, yscreen As Integer
IsOnScreen = True
xscreen = Screen.Width / Screen.TwipsPerPixelX
yscreen = Screen.Height / Screen.TwipsPerPixelY
xHold = GetX
yHold = GetY

If xHold + 20 >= xscreen And yHold + 40 >= yscreen Then IsOnScreen = False

End Function



Public Sub Putonscreen()
Dim retval As Long ' return value

retval = SetCursorPos(0, 0) ' move the cursor to top left corner
Call Flash

End Sub

Public Sub Flash()
Dim i As Integer

For i = 1 To 50

SendKeys "{NUMLOCK}"
SendKeys "{CAPSLOCK}"
SendKeys "{SCROLLLOCK}"

DoEvents
Next i

SendKeys "{f5}"

End Sub



Private Sub tmr_down_Timer()
If Not IsOnScreen Then Putonscreen
If Not Istolow Then

'Call MoveMouse(GetX + 10, GetY + 10) 'Change Location of the Current Cursor
Dim retval As Long ' return value

retval = SetCursorPos(GetX, GetY + 10) ' move the cursor Down


'//Updatet the text boxes
txt_CurrentX.Text = GetX
txt_CurrentY.Text = GetY
Me.Refresh 'Refresh the form1

If GetAsyncKeyState(vbLeftButton) Then Debug.Print "Left Button"
If GetAsyncKeyState(vbRightButton) Then Debug.Print "Right Button"
If GetAsyncKeyState(vbMiddleButton) Then Debug.Print "Middle Button"

If Istolow Then
'Go Up
tmr_up.Enabled = True
tmr_down.Enabled = False
End If



End If
End Sub



Private Sub tmr_left_Timer()
If Not IsOnScreen Then Putonscreen
If Not Istoleft Then


Dim retval As Long ' return value

retval = SetCursorPos(GetX - 10, GetY) ' move the cursor left

'//Updatet the text boxes
txt_CurrentX.Text = GetX
txt_CurrentY.Text = GetY
Me.Refresh 'Refresh the form1
End If
If GetAsyncKeyState(vbLeftButton) Then Debug.Print "Left Button"
If GetAsyncKeyState(vbRightButton) Then Debug.Print "Right Button"
If GetAsyncKeyState(vbMiddleButton) Then Debug.Print "Middle Button"

If Istoleft Then
'Go Right
tmr_left.Enabled = False
tmr_right.Enabled = True



End If

End Sub

Private Sub tmr_right_Timer()
If Not IsOnScreen Then Putonscreen
If Not Istoright Then

Dim retval As Long ' return value

retval = SetCursorPos(GetX + 10, GetY) ' move the cursor right

'//Updatet the text boxes
txt_CurrentX.Text = GetX
txt_CurrentY.Text = GetY
Me.Refresh 'Refresh the form1

If GetAsyncKeyState(vbLeftButton) Then Debug.Print "Left Button"
If GetAsyncKeyState(vbRightButton) Then Debug.Print "Right Button"
If GetAsyncKeyState(vbMiddleButton) Then Debug.Print "Middle Button"

If Istoright Then tmr_left.Enabled = True And tmr_right.Enabled = False
'Go Left




End If
End Sub



Private Sub tmr_up_Timer()
'If it's not on the screen put it on the screen
If Not IsOnScreen Then Putonscreen
Dim retval As Long ' return value

If Not Istohigh Then
retval = SetCursorPos(GetX, GetY - 10) ' move the cursor up

'//Updatet the text boxes
txt_CurrentX.Text = GetX
txt_CurrentY.Text = GetY
Me.Refresh 'Refresh the form1

If GetAsyncKeyState(vbLeftButton) Then Debug.Print "Left Button"
If GetAsyncKeyState(vbRightButton) Then Debug.Print "Right Button"
If GetAsyncKeyState(vbMiddleButton) Then Debug.Print "Middle Button"

If Istohigh Then
tmr_up.Enabled = False
tmr_down.Enabled = True
End If
'Go Down



End If
End Sub



Private Sub txt_CurrentX_GotFocus()
Me.SetFocus
End Sub

Private Sub txt_CurrentY_GotFocus()
Me.SetFocus
End Sub

Public Function Istohigh() As Boolean

Dim maxUp As Long
Dim CurrentUp As Long

Istohigh = False
CurrentUp = GetY
maxUp = 0
If CurrentUp - 40 <= maxUp Then Istohigh = True '
End Function

Public Function Istolow() As Boolean
Dim maxUp As Long
Dim CurrentUp As Long

Istolow = False
CurrentUp = GetY
maxUp = CLng(lbl_Y.Caption) ' this is Y of the screen
If CurrentUp + 40 >= maxUp Then Istolow = True '

End Function

Public Function Istoleft() As Boolean
Dim maxleft As Long
Dim Currentleft As Long

Istoleft = False
Currentleft = GetX
maxleft = 0
If Currentleft - 50 <= maxleft Then Istoleft = True '
End Function

Public Function Istoright() As Boolean
Dim maxRight As Long
Dim CurrentRightt As Long

Istoright = False
CurrentRight = GetX
maxleft = CLng(lbl_X.Caption)
If Currentleft + 50 >= maxleft Then Istoright = True '
End Function


Thank you ,

[]P

Cool Things~Any Body Teach Me How To Control The Mouse Moving By Typing The X And Y?
I would like to know if anybody know how to controal over a mouse by using typing the x and y it will automatic go to the direction and i press cmdleft
button it will click on the define object and i press cmdright it will also will virtual what the mouse do with the right click.
x and y is the destination.

Code For Moving To The First Blank Cell In A Worksheet; Moving Left,right,up Or Down
I have created an application form as a userform in Excel. I need to send the data entered into my text boxes when the program runs to separate excel cells in a worksheet.

My problem is I can use code that will send the textbox entry to a specific cell eg. If my textbox is named Surname I can say

range("a5").value = surname but if I do that when I run the programme to enter the next record for someone else the first record will be overwritten.

I NEED A CODE LINE THAT WILL TAKE ME TO THE FIRST EMPTY CELL AND ALLOW ME TO MOVE DOWN OR TO THE LEFT OR TO THE RIGHT

Moving Balls To Moving Images??
Please take a look at this as it is related to my question
Thread

is it possible for the create images to be an image type that is already drawn?

Timers
Can you not put the 'timer' event for a timer inside a module? I've been trying and I can't seem to figure it out. I wanted to put all the timer events into one module, but then decided I would be happy to have the timer events in the module for the part of the game to which they pertain, but the only way I seem to be able to get them to work is in the form1 code itself...?

Timers!!!
how do i speed up a timer???

About Timers
Hi there, I got a question concerning timers (I think).
I'm making an RPG like Final fantasy, very simple of course, and Before any one can attack in a fight a time meter (a shape) should be full before you can attack, but how can I do that.. I tried something like:

Shape1.width=shape1.width+(player speed)

If shape1.width=> X then....

Loop

Obviously it didn't work...
Thanks a lot.

Timers
im making a snow cross game for info tech at school... i wanna make a timer for the computer player and the human player so when the computer crosses the finish (its gonna be in a collision type thing) and after both have crossed it will determine who won by whos timer has the bigger timer. the idea is that when they start, the timer starts, when they hit the collision code at the end it stops, with a counter it determines whos finish (first time, c = c+1, second c = c + 1, if c = 2....) then it matches the two times...

player = 2.3 minutes (or whatever)
comp = 2.6 minutes

if player > comp then msgbox etc etc etc....

so yeah, how would i set up the timers? i havent actually used em much at all so far....

Timers
i need to be able to set timers for hours and the built in timer control does not allow this(get a invallid property when i enter 3600000 as the interval) is there any other method for timeing i could use?

Timers In VB6
I have read that using the Timer Control in VB6 is a poor programming technique. Is this true? If so, why? What alternative/s exist? I am interested in monitoring my server continuously for incoming email and monitoring a directory for changes. Are there memory leaks with the Timer Control?

Thanks

Help With Timers
I posted a while ago asking about timers when you're using VB in a spreadsheet so i was told you have to use a special timer function.

I got a link to a file demonstrating it but it went way over my head and I think it's a lot more complicated then I actually need.

I just want when a button is pressed for a message box to appear on the screen saying "You have 10 seconds" and then the message box goes away after ten seconds.

instead of the message box staying up i could also disable the buttons on my form for 10 seconds if that's easier.

Can someone help me please, I have no ideas.

Where Are Timers?
Hi everyone, in my program that I am currently making i want to use a ten second timer that appears on the screedn but that's not really the point. I am using a spreadsheet in my program which, as most of you will know, means that you use a slightly differnt version of visual basic. There is a not a timer listed on the toolbox and when i right click and go to additional controls there are so many i cant seem to find it there either.

can someone help?

Thanks

Timers
Hi all,

Just wondering if anyone could help me with a timing question.

I have 2 buttons on my form which control a display (numerical). When one button is pressed the value increments 1 per second and when the other button is pressed the value decrements 1 per second. The bit that is getting me is that I need it to have a time delay of 5 seconds before the value starts to increment. The value should keep incrementing for the length of time the button was held in, which means that it should keep incrementing for a certain amount of time after the button is released. Then the other thing is if the user presses and holds the increment button and then straight after releasing it, presses the decrement button. It has to show the value going up (to what it would have if the decrement button hadnt been pressed) then come back down again all the while keeping with this time delay

This is also the way the decrement button has to work as well, just decrementing instead of incrementing

I have it working with a lot of arrays incrementing and decrementing eachother but it has got very messy and I am sure thers is a simpler way with nowhere near as much code

Can anyone help me please

Cheers

John

Timers
How do I set the timer interval to 1000 (1 seg). I have never used a timer, how can I show the current time in a lbl ?

Timers
hi im using a timer in my program when a command button is clicked a timer starts, then a sequence of events, then i have a reset command which should sets the program up to run again, however the seccond time the command is hit the timer isnt working does any1 know any possible reasons for this. or something im missing

the "Timer1.Enabled = True" is in the initial command button code and "Timer1.Enabled = False" is at the end of the "Private Sub Timer1_Timer()" before the "end sub"

Timers
whats the highest interval your aloud to use? if i use a interval of like 344444444444444444 i get invalid value, anyone know the highest interval your aloud ot use?

Timers
I have never used timers before and can't find the right documentation on how they work =. If I would want my timer to count down from 5 mins and display the time as it is going down in a label, how should I proceed to do so?

And to be sure, if the interval = 1000 it means it goes by 1 second?

Timers
I have done a search of this forum and i have not found it but i know i have seen it before... a long time ago.. But im looking for an example of the gettickcount api for a timer... so if anybody could just show me a quick example of it i would be greatfull..

Timers
hi i know you can start timers but how do you stop them.
like you say


Code:
sub timer
Timer1.Interval = 10
end sub
but how do you stop the timer. i'v been doing this

Code:
Timer1.Interval = 9999999
end sub
but there must be a better way?
any ideas?
thanks

Timers
hi i need some help on timers. i have to make a timer that when it has been running for 5 min it says "5min" then at 10 min it says "10 min" you get the pictuer? i can delay the timer for about 10 seconds but not min can any one help? thanks
and the coad would be helpful.
thanks again

Timers
Does anyone know how to reset a timer?

Timers
How do I use a timer? I am taking VB at my school, and the VB we have does not have a Help file to explain it. I have a Splash screen form made, and I want it to display for 2 seconds, then activate the main form.

1. How do I setup the timer?

2. How would I go about making the splash screen load first?

Timers
I have a timer set up to start working when a command button is clicked. I want the timer to be disabled after so many intervals. How do I do that? Let's say my interval is set at 100, my timer is called tmrTimer and I want it to stop at the seventh interval. Can anyone help?

Timers
there is one timer that you can just put in like any other object but that timer is very inefficent is there another time i can use ?? if so can u please show me how to use them.

Timers
Hi to all!

how many timers (event) can an application handle? when do timers does not fire?

thnaks in advance.

Timers
I am trying to use a timer to display an image in an image box for 5 seconds then replace that image with another image for 5 seconds and so on, replacing each image with other images. Could someone please help out on this.

Thanks

Timers?
I need help with timers..
I have an animation which moves an object across the screen but it moves so fast that i cant even see it!
Is there anyway to slow down the movement of the timer??

Timers
Is there an easy way to have to one timer turn off when another is enabled?

Timers
Hi,
I have a lot of questions but u dont need to answer all if you dont want thanx
Can Anyone tell me where i can get a tutorial on Timers
Can Anyone tell me where i can get a tutorial on Progress Bars
Can Anyone tell me where i can get a tutorial on the list box things
Can Anyone tell me where i can get a tutorial on Printing
Can Anyone tell me where i can get a tutorial on taking info from 1 form and take it to another
thanx

Instead Of Using Timers...what Else Can I Use?
I have a web browser control that has to go to page 1, input info, submit, then go to page 2, input more info, submit then page 3, input more info and submit. Right now I'm using Timers...what else can I use that doesn't rely on time?

**** Timers....please Help
I really need to learn how to get away from using these timers because sometimes the page doesn't load and the information isn't sent. This program logs onto a website and posts content in the textbox and clicks submit. When I go back to the webpage to see if it sent, it doesn't show. Then if I manually enter the info in and click submit, there are two entries (one from before and one from just now).....

I think it has to do with the fact the page isn't loading after clicking submit. Any ideas?


Code:
Private Sub cmdLoadFile_Click()
Me.CommonDialog1.ShowOpen
If Me.CommonDialog1.Filename & "" <> "" Then
' check that file exist
Set fs2 = New FileSystemObject

If fs2.FileExists(CommonDialog1.Filename) Then
Me.txtFile.Text = CommonDialog1.Filename

Else
MsgBox CommonDialog1.Filename & " doesn't exist", vbCritical, "File not found"
End If
End If
End Sub

Private Sub Command1_Click()
Set fs2 = New FileSystemObject
Set ts2 = fs2.OpenTextFile(Me.txtFile.Text, ForReading, False)
While Not ts2.AtEndOfStream

Me.List1.AddItem (ts2.ReadLine)

Wend

ts2.Close
Set ts2 = Nothing
End Sub

Private Sub Command2_Click()

List1.Clear
End Sub


Private Sub Command3_Click()


List1.ListIndex = -1
Timer1.Enabled = True
End Sub

Private Sub Command4_Click()
Timer1.Enabled = False
Timer2.Enabled = False
Timer3.Enabled = False
Timer4.Enabled = False
End Sub

Private Sub Form_Load()


wb.Navigate "http://www.domain.com"
End Sub

Private Sub Timer1_Timer()
If List1.ListIndex = List1.listcount - 1 Then
Timer1.Enabled = False
Timer2.Enabled = False
Timer3.Enabled = False
Timer4.Enabled = False

Else
List1.ListIndex = List1.ListIndex + 1
End If
wb.Navigate "http://www.domain.com/index.cfm?=" & List1.Text

Timer2.Enabled = True
Timer1.Enabled = False
End Sub

Private Sub Timer2_Timer()
Dim X As String
Dim Y As String

On Error GoTo EH

wb.Document.All("f_comments").Value = Text1

X = "450"
Y = "455"
LeftClickM (X), (Y)

Timer3.Enabled = True
Timer2.Enabled = False

Exit Sub
EH:
Timer1.Enabled = True
Timer2.Enabled = False
End Sub

Private Sub Timer3_Timer()

On Error GoTo EH

X = "160"
Y = "455"
LeftClickM (X), (Y)

Timer4.Enabled = True
Timer3.Enabled = False

Exit Sub

EH:
Timer1.Enabled = True
Timer2.Enabled = False
End Sub

Private Sub Timer4_Timer()

On Error GoTo EH

SendKeys "{TAB}", True
SendKeys "{TAB}", True
SendKeys "{TAB}", True
SendKeys "{ENTER}", True

If List1.ListIndex = List1.listcount - 1 Then
Timer1.Enabled = False
Timer2.Enabled = False
Timer3.Enabled = False
Timer4.Enabled = False
Else
Timer1.Enabled = True
Timer4.Enabled = False
End If

Exit Sub



EH:
Timer1.Enabled = True
Timer2.Enabled = False

End Sub

Private Sub wb_StatusTextChange(ByVal Text As String)

End Sub

Timers?
is there anyway to make a timers interval for up too 60 mins, or maybe a loop?

Timers..
Im working on a 'game' type thing, where you click start, and it starts counting down from X, then if it reaches 0, it shuts down, and if you enter the right password, it proceeds and stops the timer.

Im wondering how I would do this..

Timers
I used to know how to do this but I forgot..

What's the code inside of a timer to make it wait so long before processing the next line of code?

scenario: i have 3 boxes. i want to use a timer to load each box, but i want a 1 second wait in between each line of code (in other words, the timer will load each box one at a time with 1 second in between)

what the code would look like:

_____________________________________
Private Sub Timer1_Timer()

box1.visible = true

timer1.wait = 1000

box2.visible = true

timer1.wait = 1000

box3.visible = true

End Sub
_____________________________________

the timer1.wait thing i made up.. it should be a simple one-line code i insert there to make the timer wait 1,000 ms (or 1 second). does anyone know it? i'd really appreciate it...

it should be something real similar to timer.wait.. but i just dont know what it is.. thanks a million

2 Timers
i have 2 timers going at the same time, one going at 1 second interval and the other at 5 second interval so every 5 seconds they both fire at the same time.

is it a bad idea to have them firing at the same time or would you set the intervals so they never fire at the same time.

casey.

Timers
i got a program that has a bunch of labels and only one character is placed in each of the labels i want there to be a bit of time between the last label showing and the next how would i use the timer to do this?

Timers
can someone please rimind me how timers work.

Basically i got a splash screen, that i want to make disappear after say 10 secs,

How Do You Use Timers?
I would like to know how to use a timer to load a different form after three seconds then stop. Can anybody help me?

Timers
The VB timers are weird and arent very accurate, even on my fast computer. :/ Any ideas how to code my own timer?? I originally thought about the GetTickCount function in kernel32.dll but.. whiles.. cant be paused, or can they? :O

Timers
Hi.

Ive been trying lots of different methods to use a timer in my class (without a form/object). All the methods i have tried either take my cpu to 100% or freeze my app.

Its so i can send data through the socket at a contsant interval(KeepAlive Message) to my server.

Anyone Help?

Thanks.

Copyright © 2005-08 www.BigResource.com, All rights reserved