Click here to Skip to main content
16,007,687 members
Home / Discussions / C#
   

C#

 
AnswerRe: wierd wierd wierd exception Pin
DaveyM6924-Sep-08 23:26
professionalDaveyM6924-Sep-08 23:26 
GeneralRe: wierd wierd wierd exception Pin
nelsonpaixao25-Sep-08 13:32
nelsonpaixao25-Sep-08 13:32 
Questionwaiting SQL results and screen freezes Pin
mhp13024-Sep-08 10:01
mhp13024-Sep-08 10:01 
AnswerRe: waiting SQL results and screen freezes Pin
Paul Conrad24-Sep-08 11:13
professionalPaul Conrad24-Sep-08 11:13 
AnswerRe: waiting SQL results and screen freezes Pin
Anthony Mushrow24-Sep-08 12:37
professionalAnthony Mushrow24-Sep-08 12:37 
GeneralRe: waiting SQL results and screen freezes Pin
nelsonpaixao25-Sep-08 13:40
nelsonpaixao25-Sep-08 13:40 
QuestionProgressBar on filling a DataGrid Pin
CHLINDE24-Sep-08 9:41
CHLINDE24-Sep-08 9:41 
AnswerRe: ProgressBar on filling a DataGrid Pin
Dave Kreskowiak24-Sep-08 9:45
mveDave Kreskowiak24-Sep-08 9:45 
Your can't use a progress bar in the sense that you see progress going from 0% to 100%. The SQL command doesn't report any progress so there's nothing to show. You can only use the Marquee style of a ProgressBar that shows moving boxes. This is just to show that something is happening.

Also, in order to get the Marquee to update and move the boxes, you'll have to move the code that does the database fetch to a background thread. This will free up the UI thread so your progress bar can get and process the WM_PAINT messages it needs to see. Look into the BackgroundWorker component for more information.


A guide to posting questions on CodeProject[^]



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




QuestionDatabase Pin
CodingYoshi24-Sep-08 8:36
CodingYoshi24-Sep-08 8:36 
AnswerRe: Database Pin
Wendelius24-Sep-08 8:45
mentorWendelius24-Sep-08 8:45 
AnswerRe: Database Pin
Paul Conrad24-Sep-08 8:47
professionalPaul Conrad24-Sep-08 8:47 
AnswerRe: Database Pin
Pete O'Hanlon24-Sep-08 9:31
mvePete O'Hanlon24-Sep-08 9:31 
AnswerRe: Database Pin
Giorgi Dalakishvili24-Sep-08 20:19
mentorGiorgi Dalakishvili24-Sep-08 20:19 
QuestionWinForm to PDA? Pin
NewToAspDotNet24-Sep-08 7:52
NewToAspDotNet24-Sep-08 7:52 
AnswerRe: WinForm to PDA? Pin
DaveyM6924-Sep-08 8:08
professionalDaveyM6924-Sep-08 8:08 
GeneralRe: WinForm to PDA? Pin
NewToAspDotNet24-Sep-08 22:55
NewToAspDotNet24-Sep-08 22:55 
GeneralRe: WinForm to PDA? Pin
DaveyM6925-Sep-08 8:07
professionalDaveyM6925-Sep-08 8:07 
GeneralRe: WinForm to PDA? Pin
NewToAspDotNet25-Sep-08 13:10
NewToAspDotNet25-Sep-08 13:10 
QuestionSafe Event-Based Chat Server Pin
davidhere4024-Sep-08 7:30
davidhere4024-Sep-08 7:30 
QuestionStart Outlook Mail Message w/Attachments Pin
J$24-Sep-08 6:48
J$24-Sep-08 6:48 
AnswerRe: Start Outlook Mail Message w/Attachments Pin
J$24-Sep-08 8:27
J$24-Sep-08 8:27 
QuestionXml Serialization Pin
CodingYoshi24-Sep-08 6:03
CodingYoshi24-Sep-08 6:03 
AnswerRe: Xml Serialization Pin
Le centriste24-Sep-08 6:25
Le centriste24-Sep-08 6:25 
GeneralRe: Xml Serialization Pin
CodingYoshi24-Sep-08 7:50
CodingYoshi24-Sep-08 7:50 
AnswerRe: Xml Serialization [modified] Pin
DaveyM6924-Sep-08 7:30
professionalDaveyM6924-Sep-08 7:30 

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.