Click here to Skip to main content
16,015,661 members
Home / Discussions / C#
   

C#

 
QuestionRe: Shell.Run Pin
carbon_golem24-Apr-08 4:32
carbon_golem24-Apr-08 4:32 
GeneralRe: Shell.Run Pin
mihai12324-Apr-08 7:32
mihai12324-Apr-08 7:32 
GeneralRe: Shell.Run Pin
Thomas Stockwell25-Apr-08 14:12
professionalThomas Stockwell25-Apr-08 14:12 
Generalurgent.. help plzz Pin
hhani24-Apr-08 3:50
hhani24-Apr-08 3:50 
GeneralRe: urgent.. help plzz Pin
J4amieC24-Apr-08 3:53
J4amieC24-Apr-08 3:53 
GeneralRe: urgent.. help plzz Pin
Colin Angus Mackay24-Apr-08 7:52
Colin Angus Mackay24-Apr-08 7:52 
QuestionNumericUpDown Mouse Wheel Pin
cooltoad12324-Apr-08 2:46
cooltoad12324-Apr-08 2:46 
GeneralRe: NumericUpDown Mouse Wheel [modified] Pin
Anthony Mushrow24-Apr-08 3:13
professionalAnthony Mushrow24-Apr-08 3:13 
Its because the numericUpDown's value gets changes by the mouse wheel, and then you handle the event for the mouss wheel and plus/minus 1 to the value. So your actually changing the value twice, if you see what i mean.

What you need to do is something like this:

if (e.Delta > 0) {
    numericUpDown1.Value -= e.Delta;
    numericUpDown1.Value++;
}
else if (e.Delta < 0) {
    numericUpDown1.Value += e.Delta;
    numericUpDiwn1.Value--;
}

That way you undo what the mouse wheel did, and then change the value yourself.

EDIT:Never mind, that doesn't quite work, other way around, mouse event handled first, which may cause problems with minimum and maximum for the numreicUpDown. I'm not sure what you could do then. Even the ValueChanged event gets handled before the value has actually changed.

My current favourite word is: Bacon!
-SK Genius


modified on Thursday, April 24, 2008 9:47 AM

GeneralRe: NumericUpDown Mouse Wheel Pin
cooltoad12324-Apr-08 4:04
cooltoad12324-Apr-08 4:04 
AnswerRe: NumericUpDown Mouse Wheel Pin
bscaer23-Apr-09 10:36
bscaer23-Apr-09 10:36 
Questionform or buttons in rtf [modified] Pin
panoskatws24-Apr-08 2:09
panoskatws24-Apr-08 2:09 
GeneralRe: form or buttons in rtf Pin
Christian Graus24-Apr-08 2:30
protectorChristian Graus24-Apr-08 2:30 
GeneralRe: form or buttons in rtf Pin
Duncan Edwards Jones24-Apr-08 5:57
professionalDuncan Edwards Jones24-Apr-08 5:57 
QuestionTreeNode question Pin
Muammar©24-Apr-08 1:46
Muammar©24-Apr-08 1:46 
GeneralRe: TreeNode question Pin
Simon P Stevens24-Apr-08 2:00
Simon P Stevens24-Apr-08 2:00 
GeneralRe: TreeNode question Pin
Muammar©24-Apr-08 2:04
Muammar©24-Apr-08 2:04 
GeneralRe: TreeNode question Pin
Ruben Jönsson25-Apr-08 13:34
Ruben Jönsson25-Apr-08 13:34 
GeneralSQL Data Access Class and Casting DataSets Pin
blakey40424-Apr-08 0:22
blakey40424-Apr-08 0:22 
GeneralRe: SQL Data Access Class and Casting DataSets Pin
Broken Bokken24-Apr-08 3:13
Broken Bokken24-Apr-08 3:13 
AnswerRe: SQL Data Access Class and Casting DataSets Pin
blakey40424-Apr-08 3:54
blakey40424-Apr-08 3:54 
GeneralRe: SQL Data Access Class and Casting DataSets Pin
Broken Bokken24-Apr-08 9:28
Broken Bokken24-Apr-08 9:28 
GeneralConvert CCITT ulaw To PCM Audio format Pin
Gopal.S24-Apr-08 0:19
Gopal.S24-Apr-08 0:19 
GeneralRe: Convert CCITT ulaw To PCM Audio format Pin
Mike Dimmick24-Apr-08 4:40
Mike Dimmick24-Apr-08 4:40 
GeneralRe: Convert CCITT ulaw To PCM Audio format Pin
ChrisKo24-Apr-08 9:00
ChrisKo24-Apr-08 9:00 
QuestionConnecting C# with microsoft access through a netwok Pin
Yousefjt7724-Apr-08 0:13
Yousefjt7724-Apr-08 0:13 

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.