Click here to Skip to main content
16,008,469 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: I need help with ADO.NET Pin
fiaolle16-Feb-09 21:41
fiaolle16-Feb-09 21:41 
GeneralRe: I need help with ADO.NET Pin
Dave Kreskowiak17-Feb-09 1:44
mveDave Kreskowiak17-Feb-09 1:44 
GeneralRe: I need help with ADO.NET Pin
fiaolle17-Feb-09 3:40
fiaolle17-Feb-09 3:40 
QuestionNewbie - User Selection Needed Pin
JayMar814-Feb-09 8:27
JayMar814-Feb-09 8:27 
AnswerRe: Newbie - User Selection Needed Pin
Dave Kreskowiak15-Feb-09 4:34
mveDave Kreskowiak15-Feb-09 4:34 
GeneralRe: Newbie - User Selection Needed Pin
JayMar815-Feb-09 7:31
JayMar815-Feb-09 7:31 
QuestionUse of Timer in VB 6.0 Pin
mjrose14-Feb-09 4:34
mjrose14-Feb-09 4:34 
AnswerRe: Use of Timer in VB 6.0 Pin
Zaegra14-Feb-09 23:45
Zaegra14-Feb-09 23:45 
First of all, this isn't a question but a statement. This looks like an order.

To answer your question: I don't know if this is the same in VB6, but a timer has a Tick event. The timer also has an interval that can be set. In VB6, if the interval is 0, the timer is disabled. Showing animations with a timer isn't a very good idea, because it uses a lot of CPU, but it can be done. Also, I have no idea where you are storing the pictures used in this animations. I will use images in a folder in this example.


Public ImgIndex as Integer = 0


Private Sub Timer1_Tick(...) Handles Timer1.Tick
ImageBox1.LoadPicture(Folder & "\Image" & ImgIndex.ToString & ".gif") 'LoadPicture is no longer being supported in higher versions of VB

ImgIndex+=1

End Sub


Yet, this code is far from perfect. When the animation is at it's final image, it will request an image that does not exist. In my example, you could solve this by counting the number of files in a folder, but it's risky.

Hope this helped you,

Zaegra

Motivation is the key to software development.

QuestionData in Datagridview Pin
ivo7513-Feb-09 20:20
ivo7513-Feb-09 20:20 
AnswerRe: Data in Datagridview Pin
Andy_L_J13-Feb-09 22:02
Andy_L_J13-Feb-09 22:02 
GeneralRe: Data in Datagridview Pin
ivo7513-Feb-09 22:26
ivo7513-Feb-09 22:26 
QuestionCreate Structure Dynamically Pin
Samir Ibrahim13-Feb-09 20:11
Samir Ibrahim13-Feb-09 20:11 
AnswerRe: Create Structure Dynamically Pin
Dave Kreskowiak14-Feb-09 1:08
mveDave Kreskowiak14-Feb-09 1:08 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim14-Feb-09 2:37
Samir Ibrahim14-Feb-09 2:37 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn14-Feb-09 2:43
sitebuilderLuc Pattyn14-Feb-09 2:43 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim14-Feb-09 3:14
Samir Ibrahim14-Feb-09 3:14 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn14-Feb-09 4:58
sitebuilderLuc Pattyn14-Feb-09 4:58 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak15-Feb-09 3:50
mveDave Kreskowiak15-Feb-09 3:50 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim15-Feb-09 19:41
Samir Ibrahim15-Feb-09 19:41 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak16-Feb-09 2:11
mveDave Kreskowiak16-Feb-09 2:11 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim16-Feb-09 3:48
Samir Ibrahim16-Feb-09 3:48 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak16-Feb-09 13:59
mveDave Kreskowiak16-Feb-09 13:59 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim17-Feb-09 5:51
Samir Ibrahim17-Feb-09 5:51 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim14-Feb-09 3:25
Samir Ibrahim14-Feb-09 3:25 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn14-Feb-09 4:54
sitebuilderLuc Pattyn14-Feb-09 4:54 

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.