Click here to Skip to main content
15,886,724 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Combobox 2 ListView Pin
Lek Plepi12-Sep-11 3:14
Lek Plepi12-Sep-11 3:14 
GeneralRe: Combobox 2 ListView Pin
Wayne Gaylard12-Sep-11 3:23
professionalWayne Gaylard12-Sep-11 3:23 
GeneralRe: Combobox 2 ListView Pin
Lek Plepi12-Sep-11 3:41
Lek Plepi12-Sep-11 3:41 
GeneralRe: Combobox 2 ListView Pin
Wayne Gaylard12-Sep-11 3:47
professionalWayne Gaylard12-Sep-11 3:47 
AnswerRe: Combobox 2 ListView Pin
MicroVirus12-Sep-11 3:05
MicroVirus12-Sep-11 3:05 
GeneralRe: Combobox 2 ListView Pin
Lek Plepi12-Sep-11 3:47
Lek Plepi12-Sep-11 3:47 
QuestionAdding progress bar for CRC32 checksum Pin
johnjsm9-Sep-11 11:07
johnjsm9-Sep-11 11:07 
AnswerRe: Adding progress bar for CRC32 checksum Pin
MicroVirus9-Sep-11 13:25
MicroVirus9-Sep-11 13:25 
What you do is you get the file length (stream.Length) and then you divide the current amount of bytes processed by this value. If you multiply this fraction by 100 then you get the percent complete.
All you have to do then is add a progress bar to your form, set its Min to 0, Max to 100, at the start of GetCrc32 set its Value to 0 and then after every iteration you set the progressbar Value to the percent you calculated.

On a final note: you might want to do this calculating and updating the progress bar only every N iterations rather than each to avoid slowing down the function, where N is some reasonable value, like 512 or 1024 (after half and 1 KiB reads respectively).
GeneralRe: Adding progress bar for CRC32 checksum Pin
johnjsm10-Sep-11 10:34
johnjsm10-Sep-11 10:34 
AnswerRe: Adding progress bar for CRC32 checksum Pin
DaveAuld10-Sep-11 11:24
professionalDaveAuld10-Sep-11 11:24 
AnswerRe: Adding progress bar for CRC32 checksum Pin
MicroVirus10-Sep-11 11:47
MicroVirus10-Sep-11 11:47 
GeneralRe: Adding progress bar for CRC32 checksum Pin
johnjsm10-Sep-11 12:01
johnjsm10-Sep-11 12:01 
QuestionVB and MDB Pin
hansoctantan8-Sep-11 1:16
professionalhansoctantan8-Sep-11 1:16 
AnswerRe: VB and MDB Pin
Wayne Gaylard8-Sep-11 1:27
professionalWayne Gaylard8-Sep-11 1:27 
GeneralRe: VB and MDB Pin
hansoctantan8-Sep-11 3:51
professionalhansoctantan8-Sep-11 3:51 
GeneralRe: VB and MDB Pin
Wayne Gaylard8-Sep-11 4:01
professionalWayne Gaylard8-Sep-11 4:01 
GeneralRe: VB and MDB Pin
hansoctantan8-Sep-11 5:46
professionalhansoctantan8-Sep-11 5:46 
GeneralRe: VB and MDB Pin
Simon_Whale8-Sep-11 6:24
Simon_Whale8-Sep-11 6:24 
AnswerRe: VB and MDB Pin
Luc Pattyn8-Sep-11 4:34
sitebuilderLuc Pattyn8-Sep-11 4:34 
AnswerRe: VB and MDB Pin
Eddy Vluggen8-Sep-11 6:57
professionalEddy Vluggen8-Sep-11 6:57 
QuestionRestore failed for Server '...\SQLEXPRESS' Pin
C#Coudou7-Sep-11 23:41
C#Coudou7-Sep-11 23:41 
AnswerRe: Restore failed for Server '...\SQLEXPRESS' Pin
Pradeep Shukla8-Sep-11 7:42
professionalPradeep Shukla8-Sep-11 7:42 
GeneralRe: Restore failed for Server '...\SQLEXPRESS' Pin
C#Coudou8-Sep-11 13:45
C#Coudou8-Sep-11 13:45 
AnswerRe: Restore failed for Server '...\SQLEXPRESS' Pin
Eddy Vluggen8-Sep-11 9:59
professionalEddy Vluggen8-Sep-11 9:59 
GeneralRe: Restore failed for Server '...\SQLEXPRESS' Pin
C#Coudou8-Sep-11 14:12
C#Coudou8-Sep-11 14:12 

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.