Click here to Skip to main content
15,922,523 members
Home / Discussions / C#
   

C#

 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) [modified] Pin
crash89318-Jun-07 2:39
crash89318-Jun-07 2:39 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
Dave Kreskowiak18-Jun-07 15:41
mveDave Kreskowiak18-Jun-07 15:41 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
crash89319-Jun-07 23:46
crash89319-Jun-07 23:46 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
crash89323-Jun-07 17:27
crash89323-Jun-07 17:27 
AnswerRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
devesh_code17-Jun-07 20:57
devesh_code17-Jun-07 20:57 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
crash89318-Jun-07 1:47
crash89318-Jun-07 1:47 
QuestionPossible Overflow? Pin
StevenWalsh17-Jun-07 13:30
StevenWalsh17-Jun-07 13:30 
AnswerRe: Possible Overflow? Pin
Dave Kreskowiak17-Jun-07 14:21
mveDave Kreskowiak17-Jun-07 14:21 
Have you looked at the datatype of Mininum, Maximum, and Value properties of the ProgressBar control? Notice they're int's and not double's? What's the range of values an intger can hold? -2,147,483,648 to 2,147,483,647, inclusive.

There's your problem. When your value reaches the upper limit of an integer it wraps around to the negative side, hence the negative number.

Your going to have to scale your values to fit inside the limits of an int.


A guide to posting questions on CodeProject[^]

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


GeneralRe: Possible Overflow? Pin
StevenWalsh17-Jun-07 16:36
StevenWalsh17-Jun-07 16:36 
AnswerRe: Possible Overflow? Pin
Luc Pattyn17-Jun-07 14:25
sitebuilderLuc Pattyn17-Jun-07 14:25 
QuestionPictureBox contents lost when focus lost Pin
rbengali317-Jun-07 11:11
rbengali317-Jun-07 11:11 
AnswerRe: PictureBox contents lost when focus lost Pin
Luc Pattyn17-Jun-07 11:19
sitebuilderLuc Pattyn17-Jun-07 11:19 
AnswerRe: PictureBox contents lost when focus lost Pin
Christian Graus17-Jun-07 11:36
protectorChristian Graus17-Jun-07 11:36 
GeneralRe: PictureBox contents lost when focus lost Pin
rbengali317-Jun-07 17:32
rbengali317-Jun-07 17:32 
GeneralRe: PictureBox contents lost when focus lost Pin
Christian Graus17-Jun-07 20:13
protectorChristian Graus17-Jun-07 20:13 
AnswerRe: PictureBox contents lost when focus lost Pin
Hesham Yassin20-Jun-07 0:21
Hesham Yassin20-Jun-07 0:21 
QuestionGeneric Collection &Method Problem Pin
haz1317-Jun-07 10:40
haz1317-Jun-07 10:40 
AnswerRe: Generic Collection &Method Problem Pin
User 665817-Jun-07 10:51
User 665817-Jun-07 10:51 
QuestionRe: Generic Collection &Method Problem Pin
haz1317-Jun-07 11:48
haz1317-Jun-07 11:48 
AnswerRe: Generic Collection &Method Problem Pin
Christian Graus17-Jun-07 12:24
protectorChristian Graus17-Jun-07 12:24 
QuestionExport data to excel sheet Pin
HexaDeveloper17-Jun-07 9:32
HexaDeveloper17-Jun-07 9:32 
AnswerRe: Export data to excel sheet Pin
Jimmanuel18-Jun-07 3:48
Jimmanuel18-Jun-07 3:48 
GeneralRe: Export data to excel sheet Pin
HexaDeveloper21-Jun-07 2:17
HexaDeveloper21-Jun-07 2:17 
GeneralRe: Export data to excel sheet Pin
Jimmanuel21-Jun-07 2:23
Jimmanuel21-Jun-07 2:23 
QuestionComboBox change font on specific item.. Pin
akkram17-Jun-07 9:16
akkram17-Jun-07 9:16 

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.