Click here to Skip to main content
15,916,378 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: DataGrid/Xml File Pin
Gavin Jeffrey19-Dec-04 19:43
Gavin Jeffrey19-Dec-04 19:43 
QuestionHow to get focus in DateTime Picker control Pin
manivannan.p14-Dec-04 20:25
manivannan.p14-Dec-04 20:25 
Generalaccessing ip packets using VB.NET Pin
mats_mathai14-Dec-04 20:13
mats_mathai14-Dec-04 20:13 
GeneralRe: accessing ip packets using VB.NET Pin
Dave Kreskowiak16-Dec-04 4:24
mveDave Kreskowiak16-Dec-04 4:24 
Generalputting an event procedure subroutine into a different event procedure Pin
mpiotro14-Dec-04 10:49
mpiotro14-Dec-04 10:49 
GeneralRe: putting an event procedure subroutine into a different event procedure Pin
Dave Kreskowiak16-Dec-04 4:28
mveDave Kreskowiak16-Dec-04 4:28 
GeneralRe: putting an event procedure subroutine into a different event procedure Pin
mpiotro16-Dec-04 12:51
mpiotro16-Dec-04 12:51 
GeneralRe: putting an event procedure subroutine into a different event procedure Pin
Dave Kreskowiak17-Dec-04 2:06
mveDave Kreskowiak17-Dec-04 2:06 
You're actually trying to do it the hard way. You can monitor for the click, but you can't do it reliably. Your loop can execute multiple iterations if the user holds the button down for even 1 second.

Since, from your first post, your reading the filepaths into a String array, just read them all in. You really shouldn't be holding open resources like your trying to do. It's very bad practice.

Once you have all the filepaths in the array, you can setup a counter that points to the first index in the String array and you call a function to load and display the image it's pointing to. When the user clicks the button, you increment the counter, check to majke sure it hasn't overflowed, then call the function to load and display the image.

Actually, it'd be easier to write a class to encompass this functionality. But that's an entirely different discussion...


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

Questionyes/No column in Datagrid?? Pin
mittalpa14-Dec-04 8:31
mittalpa14-Dec-04 8:31 
AnswerRe: yes/No column in Datagrid?? Pin
mtone21-Dec-04 3:41
mtone21-Dec-04 3:41 
Generalprinting stripchart on a windows form Pin
kbbabb14-Dec-04 6:59
kbbabb14-Dec-04 6:59 
GeneralFree Grid and charting controls for VB.NEt Pin
JHAKAS14-Dec-04 2:22
JHAKAS14-Dec-04 2:22 
GeneralRe: Free Grid and charting controls for VB.NEt Pin
Tom John14-Dec-04 2:37
Tom John14-Dec-04 2:37 
GeneralDevexpress Quantum Grid Search Pin
VBDuncan14-Dec-04 1:24
VBDuncan14-Dec-04 1:24 
GeneralMultiple Return Types Pin
nitin_ion14-Dec-04 0:35
nitin_ion14-Dec-04 0:35 
GeneralRe: Multiple Return Types Pin
Tom John14-Dec-04 1:12
Tom John14-Dec-04 1:12 
GeneralOpen Dialog Initial Directory Pin
kenexcelon13-Dec-04 17:29
kenexcelon13-Dec-04 17:29 
GeneralRe: Open Dialog Initial Directory Pin
Tom John13-Dec-04 22:08
Tom John13-Dec-04 22:08 
GeneralRe: Open Dialog Initial Directory Pin
kenexcelon14-Dec-04 8:34
kenexcelon14-Dec-04 8:34 
QuestionHow do u make a button link to a website? Pin
Shrex13-Dec-04 10:25
Shrex13-Dec-04 10:25 
AnswerRe: How do u make a button link to a website? Pin
Mekong River13-Dec-04 17:13
Mekong River13-Dec-04 17:13 
GeneralAdd zero to the front of a number Pin
viettho13-Dec-04 8:27
viettho13-Dec-04 8:27 
GeneralRe: Add zero to the front of a number Pin
Dennis C. Dietrich13-Dec-04 11:45
Dennis C. Dietrich13-Dec-04 11:45 
GeneralRe: Add zero to the front of a number Pin
viettho13-Dec-04 12:04
viettho13-Dec-04 12:04 
GeneralRe: Add zero to the front of a number Pin
Tom John13-Dec-04 22:22
Tom John13-Dec-04 22:22 

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.