janus85_ren
Member
- Joined
- May 9, 2010
- Messages
- 24
- Programming Experience
- 1-3
I'd like to make a simple program where my form consists of a textbox and a button. Here's the ide in a nutshell:
in form1_load I invoke the sub:
private Sub LoopingLesson()
dim i as integer=1
while true
textbox1.text=i
i=i+1
end while
End Sub
what I want is when i hits certain value, like let's just say i is divisible by 365, then the 'while' looping will stop, and a message box saying "target reached" appear. then after I click button1, the looping will resume until it reaches the next number divisible by 365, and so on.
thanks
in form1_load I invoke the sub:
private Sub LoopingLesson()
dim i as integer=1
while true
textbox1.text=i
i=i+1
end while
End Sub
what I want is when i hits certain value, like let's just say i is divisible by 365, then the 'while' looping will stop, and a message box saying "target reached" appear. then after I click button1, the looping will resume until it reaches the next number divisible by 365, and so on.
thanks