Click here to Skip to main content
15,915,873 members
Home / Discussions / C#
   

C#

 
QuestionExecuting code continuously while button is pressed Pin
shultas26-Apr-06 3:59
shultas26-Apr-06 3:59 
Hi Everyone,

I am wondering what the best method is in order to continuously execute code while the user is pressing a button. For example, I am just making a dummy/test application right now, it only has a progress bar, and an UP and DOWN button. In the UP button code, I have it set to ProcessStep() to increment the progress bar. What I would like to do is somehow execute code over and over while the user is pressing down on the UP button (so they press and hold and it keeps ramping up until it gets to the top, instead of making them click 100 times). Also, is there an easy way to make the progress bar be verticle instead of horizontal? I've seen a lot of classes on this website that do this and make fancy ones, but I wouldn't mind using the built-in progress bar control to do it if possible. Any help would be appreciated!

DSC
AnswerRe: Executing code continuously while button is pressed Pin
Ravi Bhavnani26-Apr-06 4:16
professionalRavi Bhavnani26-Apr-06 4:16 
QuestionHelp Pin
yantir26-Apr-06 3:53
yantir26-Apr-06 3:53 
AnswerRe: Help Pin
g00fyman26-Apr-06 4:23
g00fyman26-Apr-06 4:23 
AnswerRe: Help Pin
J4amieC26-Apr-06 4:46
J4amieC26-Apr-06 4:46 
AnswerRe: Help Pin
V.26-Apr-06 5:00
professionalV.26-Apr-06 5:00 
AnswerRe: Help Pin
Richard Parsons26-Apr-06 10:27
Richard Parsons26-Apr-06 10:27 
AnswerRe: Help Pin
Josh Smith26-Apr-06 10:33
Josh Smith26-Apr-06 10:33 
QuestionA strange problem with method parametrs Pin
t4ure4n26-Apr-06 3:52
t4ure4n26-Apr-06 3:52 
Questionhi agian i repeat my question about web part!! Pin
abdallahziad26-Apr-06 3:42
abdallahziad26-Apr-06 3:42 
AnswerRe: hi agian i repeat my question about web part!! Pin
The Ladies' Man26-Apr-06 3:47
The Ladies' Man26-Apr-06 3:47 
GeneralRe: hi agian i repeat my question about web part!! Pin
Smith#26-Apr-06 4:05
Smith#26-Apr-06 4:05 
GeneralRe: hi agian i repeat my question about web part!! Pin
The Ladies' Man26-Apr-06 4:26
The Ladies' Man26-Apr-06 4:26 
AnswerRe: hi agian i repeat my question about web part!! Pin
J4amieC26-Apr-06 4:50
J4amieC26-Apr-06 4:50 
QuestionWeb services Pin
Mamphekgo26-Apr-06 3:32
Mamphekgo26-Apr-06 3:32 
AnswerRe: Web services Pin
Rob Philpott26-Apr-06 6:51
Rob Philpott26-Apr-06 6:51 
AnswerRe: Web services Pin
Tom Larsen26-Apr-06 11:00
Tom Larsen26-Apr-06 11:00 
QuestionPlease Reply Me Pin
dayakar_dn26-Apr-06 3:30
dayakar_dn26-Apr-06 3:30 
AnswerRe: Please Reply Me Pin
Josh Smith26-Apr-06 3:35
Josh Smith26-Apr-06 3:35 
AnswerRe: Please Reply Me Pin
Drew McGhie26-Apr-06 3:46
Drew McGhie26-Apr-06 3:46 
AnswerRe: Please Reply Me Pin
J4amieC26-Apr-06 3:46
J4amieC26-Apr-06 3:46 
QuestionPlease Reply Me Pin
dayakar_dn26-Apr-06 2:59
dayakar_dn26-Apr-06 2:59 
AnswerRe: Please Reply Me Pin
The Ladies' Man26-Apr-06 3:03
The Ladies' Man26-Apr-06 3:03 
AnswerRe: Please Reply Me Pin
Josh Smith26-Apr-06 3:30
Josh Smith26-Apr-06 3:30 
QuestionVisio 2003 Problem Pin
salman_syed_0126-Apr-06 2:54
salman_syed_0126-Apr-06 2: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.