Click here to Skip to main content
15,921,884 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB6 supported until 2008 Pin
Christian Graus6-Apr-05 13:15
protectorChristian Graus6-Apr-05 13:15 
GeneralRe: VB6 supported until 2008 Pin
rwestgraham6-Apr-05 14:19
rwestgraham6-Apr-05 14:19 
GeneralRe: VB6 supported until 2008 [edit] Pin
Mitch F.6-Apr-05 7:21
Mitch F.6-Apr-05 7:21 
GeneralClearing the Values in Combo Box Pin
Anonymous5-Apr-05 10:53
Anonymous5-Apr-05 10:53 
GeneralNeed Help Pin
Anonymous5-Apr-05 5:51
Anonymous5-Apr-05 5:51 
GeneralRe: Need Help Pin
Dave Kreskowiak5-Apr-05 6:23
mveDave Kreskowiak5-Apr-05 6:23 
GeneralRe: Need Help Pin
Colin Angus Mackay5-Apr-05 6:24
Colin Angus Mackay5-Apr-05 6:24 
GeneralProblem in VB 6.0 Pin
sams_eee5-Apr-05 5:02
sams_eee5-Apr-05 5:02 
I have a problem in Visual Basic 6.0:

I have created 2 textboxes and 2 timers. I have set the interval for one timer as 1 and the interval for the other timer as 1000. I am using 2 counters, one in each timer and displaying the value of each counter in the 2 different textboxes. Each counter is increased by 1 whenever the corresponding timer event is executed.

Therefore when the second textbox displays the value 1 (i.e when the timer with interval 1000 is executed once), the value in the first textbox must be 1000 (since the first timer interval is 1).

But this is not happening. The first textbox displays a value less than 100. What could be the problem?

Here is the code:

General declarations:
Dim ctr1, ctr2 As Integer

Private Sub Form_Load()
ctr1 = 0
ctr2=0
End Sub

Private Sub Timer1_Timer()
ctr1 = ctr1 + 1
Text1.Text = ctr1
End Sub

Private Sub Timer2_Timer()
ctr2 = ctr2 + 1
Text2.Text = ctr2
End Sub

-----------------------------------------------------------------------------

Interval of timer1 is 1 and interval of timer2 is 1000 and both are enabled by default.
GeneralRe: Problem in VB 6.0 Pin
Dave Kreskowiak5-Apr-05 6:09
mveDave Kreskowiak5-Apr-05 6:09 
GeneralSend SMS in PDU format Pin
bgm22915-Apr-05 3:47
bgm22915-Apr-05 3:47 
GeneralRe: Send SMS in PDU format Pin
Dave Kreskowiak5-Apr-05 5:57
mveDave Kreskowiak5-Apr-05 5:57 
GeneralRe: Send SMS in PDU format Pin
Anonymous5-Apr-05 6:46
Anonymous5-Apr-05 6:46 
GeneralWave file property in vb Pin
accessnetwork5-Apr-05 1:38
accessnetwork5-Apr-05 1:38 
GeneralRe: Wave file property in vb Pin
Anonymous5-Apr-05 7:22
Anonymous5-Apr-05 7:22 
QuestionHow to Inherit DataColumnCollection Pin
Prakash Chajer5-Apr-05 0:49
Prakash Chajer5-Apr-05 0:49 
Generalpackage and deployment wizard Pin
Salman Sheikh4-Apr-05 23:12
Salman Sheikh4-Apr-05 23:12 
GeneralSWF files Pin
Mr Dabbah4-Apr-05 22:42
Mr Dabbah4-Apr-05 22:42 
GeneralRe: SWF files Pin
Dave Kreskowiak5-Apr-05 5:52
mveDave Kreskowiak5-Apr-05 5:52 
Generalbuild trial appication Pin
samithaslk4-Apr-05 22:33
samithaslk4-Apr-05 22:33 
Generalhav an error tag for DBGrid Pin
Member 13879124-Apr-05 22:00
Member 13879124-Apr-05 22:00 
GeneralRe: hav an error tag for DBGrid Pin
Dave Kreskowiak5-Apr-05 3:45
mveDave Kreskowiak5-Apr-05 3:45 
Generaldynamically create picture control with tab Pin
shinay4-Apr-05 16:42
shinay4-Apr-05 16:42 
GeneralRe: dynamically create picture control with tab Pin
Dave Kreskowiak5-Apr-05 5:46
mveDave Kreskowiak5-Apr-05 5:46 
GeneralHelp ASAP Uploading pdf files in web server or database Pin
Anonymous4-Apr-05 16:25
Anonymous4-Apr-05 16:25 
GeneralRe: Help ASAP Uploading pdf files in web server or database Pin
Dave Kreskowiak5-Apr-05 3:35
mveDave Kreskowiak5-Apr-05 3:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.