Register for your free account! | Forgot your password?

Go Back   elitepvpers › Coders Den › .NET Languages
You last visited: Today at 23:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB] Timer Problem

Discussion on [VB] Timer Problem within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #16
 
Chain Reaction's Avatar
 
elite*gold: 252
Join Date: Oct 2009
Posts: 3,975
Received Thanks: 1,223
ja dann wird aber das panel nich sichtbar
Chain Reaction is offline  
Old   #17
 
elite*gold: 0
Join Date: Nov 2009
Posts: 328
Received Thanks: 364
dann schreib statt dem:
Code:
timeleft = 3
            Timer4.Interval = 1000
            Timer3.Enabled = False
            Timer4.Enabled = True
Code:
Private Sub Timer4_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer4.Tick
        If timeleft = 0 Then
            Panel1.Visible = True
        End If
    End Sub
das:
Code:
timeleft = 5
                        Timer3.Enabled = False
                        panel1.visible = true
lg
killeeer111 is offline  
Old   #18
 
Chain Reaction's Avatar
 
elite*gold: 252
Join Date: Oct 2009
Posts: 3,975
Received Thanks: 1,223
Meinst du so?
PHP Code:
Public Class Form1
    
    
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       
        Timer1
.Start()
        
Label4.Visible = True
    End Sub
    Dim timeleft 
As Integer
    
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        
If Label5.Visible = True Then Timer4.Start()
        
Timer4.Interval = 1000
        timeleft 
= 5
        
If Label5.Visible = True Then
            Timer3
.Start()
            
Timer3.Interval = 1000
            timeleft 
= 5
            Timer4
.Interval = 1000
            timeleft 
= 3
            Timer3
.Enabled = False
            Timer4
.Enabled = False

        End 
If
        
Timer1.Interval = 1000
        timeleft 
= 5
        Timer2
.Interval = 1000
        Timer1
.Enabled = False
        Timer2
.Enabled = True
        
If Label5.Visible = True Then Timer3.Start()


    
End Sub

    
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
       
        timeleft 
= Val(timeleft - 1)
    
End Sub

    
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
        
If timeleft = 0 Then
            Label4
.Visible = False
            
If Label4.Visible = False Then
                Label5
.Visible = True
                
If Label5.Visible = True Then Button1.Enabled = False
                
If Label5.Visible = True Then Timer1.Stop()


                


            
End If
        
End If
    
End Sub

    
Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick

        timeleft 
= Val(timeleft - 1)
    
End Sub

    
Private Sub Timer4_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer4.Tick
        timeleft 
= Val(timeleft - 1)
        If 
timeleft = 0 Then
            Panel1
.Visible = True

        End 
If
    
End Sub
End 
Class 
Wenn ja....
geht nicht.
Chain Reaction is offline  
Reply


Similar Threads Similar Threads
Timer-Problem
07/31/2009 - AutoIt - 13 Replies
Hey Leute, ich bins mal wieder, mit nem neuen kleinen Problem ;) Also: Dies funktioniert nicht, obwohl es eigentlich funktionieren sollte (denke ich^^) ......GUI-Kram While 1
[Problem] With this timer
06/29/2009 - CO2 Private Server - 4 Replies
Ok im adding the Auto Afk thing in but the problem is this Error 1 The name 'AfkKickElapsed' does not exist in the current context. Now the timer is at Character.cs becuse thats where the guide said to go
Timer auf 0
06/28/2009 - AutoIt - 3 Replies
Hallo Könnt ihr mir schnell sagen, wie man einen Timer in AutoIt wieder zurücksetzt? Der erste der es mir beantworten kann kriegtn dickes Thx. Hoffe auf Hilfe $timer1 = TimerInit () TimerDiff ($timer1) > 60000
[HELP] Timer
05/26/2009 - CO2 Private Server - 3 Replies
I need help making a timer in lotf
Help with this timer
03/26/2009 - CO2 Private Server - 2 Replies
RestartTimer = new System.Timers.Timer(); RestartTimer.Interval = (120 * 60 * 100);<<Make this Ever hour? RestartTimer.Elapsed += new ElapsedEventHandler(RestartTimer_E); RestartTimer.Start(); Lol what do i put there to make it ever hour im use to just numbers not that



All times are GMT +2. The time now is 23:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.