Click here to Skip to main content
15,919,613 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: dataset Pin
Sonia Gupta15-May-07 19:28
Sonia Gupta15-May-07 19:28 
AnswerRe: dataset Pin
Christian Graus15-May-07 20:02
protectorChristian Graus15-May-07 20:02 
QuestionRe: dataset Pin
Sonia Gupta15-May-07 20:16
Sonia Gupta15-May-07 20:16 
GeneralRe: dataset Pin
Sonia Gupta15-May-07 21:12
Sonia Gupta15-May-07 21:12 
Questionprogress bar Pin
Sonia Gupta15-May-07 18:25
Sonia Gupta15-May-07 18:25 
AnswerRe: progress bar Pin
MatrixCoder15-May-07 18:41
MatrixCoder15-May-07 18:41 
QuestionRe: progress bar Pin
Sonia Gupta15-May-07 19:04
Sonia Gupta15-May-07 19:04 
AnswerRe: progress bar Pin
Dave Kreskowiak16-May-07 3:19
mveDave Kreskowiak16-May-07 3:19 
The best method is to move your long running code to a seperate thread and have it report a value for progress. Check out the BackgroundWorker component for examples.

Now, in your existing code, after you Show the form, you have to call Application.DoEvents() so your UI thread has a chance to process the paint messages that will show the form. On top of that, you're also going to have to call DoEvents() after every time you update the progress bar so it can also repaint itself.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


QuestionConnection String In App Config VS 2005 Pin
Polymorpher15-May-07 17:36
Polymorpher15-May-07 17:36 
AnswerRe: Connection String In App Config VS 2005 Pin
Dave Kreskowiak15-May-07 17:52
mveDave Kreskowiak15-May-07 17:52 
GeneralRe: Connection String In App Config VS 2005 Pin
Polymorpher15-May-07 18:01
Polymorpher15-May-07 18:01 
GeneralRe: Connection String In App Config VS 2005 Pin
Dave Kreskowiak16-May-07 3:16
mveDave Kreskowiak16-May-07 3:16 
GeneralRe: Connection String In App Config VS 2005 Pin
Polymorpher16-May-07 7:05
Polymorpher16-May-07 7:05 
QuestionGeneric Error In GDI+ Pin
MatrixCoder15-May-07 14:47
MatrixCoder15-May-07 14:47 
AnswerRe: Generic Error In GDI+ Pin
Sathesh Sakthivel15-May-07 16:47
Sathesh Sakthivel15-May-07 16:47 
GeneralRe: Generic Error In GDI+ Pin
MatrixCoder15-May-07 17:20
MatrixCoder15-May-07 17:20 
GeneralRe: Generic Error In GDI+ Pin
Polymorpher15-May-07 17:47
Polymorpher15-May-07 17:47 
GeneralRe: Generic Error In GDI+ Pin
MatrixCoder15-May-07 18:12
MatrixCoder15-May-07 18:12 
GeneralRe: Generic Error In GDI+ Pin
Polymorpher15-May-07 18:14
Polymorpher15-May-07 18:14 
QuestionFile in use error while renaming file Pin
Steve Erbach15-May-07 11:46
Steve Erbach15-May-07 11:46 
AnswerRe: File in use error while renaming file Pin
Christian Graus15-May-07 12:15
protectorChristian Graus15-May-07 12:15 
GeneralRe: File in use error while renaming file Pin
Steve Erbach16-May-07 3:34
Steve Erbach16-May-07 3:34 
Questionhow to convert the following code to vb.net Pin
awara15-May-07 11:44
awara15-May-07 11:44 
AnswerRe: how to convert the following code to vb.net Pin
MatrixCoder15-May-07 12:07
MatrixCoder15-May-07 12:07 
AnswerRe: how to convert the following code to vb.net Pin
Dave Doknjas15-May-07 12:18
Dave Doknjas15-May-07 12:18 

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.