Click here to Skip to main content
15,917,793 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPausing Code Pin
Reedmon2923-May-05 11:06
Reedmon2923-May-05 11:06 
GeneralRe: Pausing Code Pin
Christian Graus23-May-05 11:51
protectorChristian Graus23-May-05 11:51 
GeneralRe: Pausing Code Pin
Reedmon2923-May-05 16:09
Reedmon2923-May-05 16:09 
GeneralRe: Pausing Code Pin
rudy.net23-May-05 18:47
rudy.net23-May-05 18:47 
GeneralRe: Pausing Code Pin
Reedmon2924-May-05 3:16
Reedmon2924-May-05 3:16 
GeneralRe: Pausing Code Pin
rudy.net24-May-05 3:39
rudy.net24-May-05 3:39 
GeneralRe: Pausing Code Pin
Reedmon2924-May-05 3:51
Reedmon2924-May-05 3:51 
GeneralRe: Pausing Code Pin
Dave Kreskowiak24-May-05 3:51
mveDave Kreskowiak24-May-05 3:51 
You'r code can't "pause" while waiting for the Next button to be clicked. If it did, there's no way it could respond to the button click.

If your code is supposed to modify the form layout between "Next" button clicks, like a PowerPoint presentation, you'll have to maintain state information about what "page" the user is looking at. Code in the click handler for the "Next" button would have to increment the counter to the next page and call a function to modify the controls according to what page should be viewed.

When you get to the last page, the "Finish" button click handler would set the forms return value, its .DialogResult property, to whatever you need. BTW, you'd show this form using .ShowDialog() so you can get a return value, just like MessageBox returns.

This is what I've gathered your trying to get at. I really can't tell for sure because you haven't been very descriptive about what your trying to do with this form besides "pause" code and handle a "Next" button.


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

GeneralAutomatic Numbering Pin
macca2423-May-05 10:33
macca2423-May-05 10:33 
GeneralRe: Automatic Numbering Pin
Christian Graus23-May-05 11:56
protectorChristian Graus23-May-05 11:56 
GeneralVB.Net Language Statement Pin
Fernando Soto23-May-05 10:18
Fernando Soto23-May-05 10:18 
GeneralRe: VB.Net Language Statement Pin
Dave Kreskowiak23-May-05 10:41
mveDave Kreskowiak23-May-05 10:41 
GeneralRe: VB.Net Language Statement Pin
Fernando Soto23-May-05 13:13
Fernando Soto23-May-05 13:13 
GeneralADODC Control Pin
ems18p23-May-05 8:40
ems18p23-May-05 8:40 
GeneralSaving in VB Pin
siskomike23-May-05 6:51
siskomike23-May-05 6:51 
GeneralRe: Saving in VB Pin
Brian Van Beek23-May-05 7:24
Brian Van Beek23-May-05 7:24 
GeneralRe: Saving in VB Pin
siskomike23-May-05 7:50
siskomike23-May-05 7:50 
GeneralRe: Saving in VB Pin
Brian Van Beek23-May-05 7:58
Brian Van Beek23-May-05 7:58 
GeneralRe: Saving in VB Pin
siskomike23-May-05 8:19
siskomike23-May-05 8:19 
GeneralRe: Saving in VB Pin
Brian Van Beek23-May-05 8:50
Brian Van Beek23-May-05 8:50 
GeneralRe: Saving in VB Pin
siskomike23-May-05 9:05
siskomike23-May-05 9:05 
GeneralStartposition of a form Pin
KreativeKai23-May-05 6:44
professionalKreativeKai23-May-05 6:44 
GeneralRe: Startposition of a form Pin
Fernando Soto23-May-05 7:47
Fernando Soto23-May-05 7:47 
GeneralRe: Startposition of a form Pin
KreativeKai24-May-05 8:59
professionalKreativeKai24-May-05 8:59 
GeneralEnd User Form Customization Pin
mtone23-May-05 5:31
mtone23-May-05 5:31 

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.