---
title: "Scroll in NumericUpDown"  
description: "Scroll in NumericUpDown"  
author: "marcel ethan"  
published: 2014-01-28  
updated: 2014-01-29  
canonical: https://www.mindstick.com/forum/1899/scroll-in-numericupdown  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Scroll in NumericUpDown

I want to have an [event](https://www.mindstick.com/articles/167719/marquee-hire-benefits-of-event-lighting-hire-london) triggered when I scroll in my [NumericUpDown](https://www.mindstick.com/forum/442/validation-on-numericupdown-control-in-c-sharp-dot-net). This [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) seems to ignore the scrolling when I'm inside a NumericUpDown:

```
public Form1(){   
InitializeComponent();    MouseWheel += new MouseEventHandler(mousewheel);}void mousewheel(object sender, MouseEventArgs e){    System.Windows.Forms.MessageBox.Show("message");}
```

## Replies

### Reply by Pravesh Singh

Hi Marcel,

```
public Form1()    {       
InitializeComponent();       
numericUpDown1.MouseWheel += new
System.Windows.Forms.MouseEventHandler(this.numericUpDown1_MouseWheel);    }    private void numericUpDown1_MouseWheel(object sender, System.Windows.Forms.MouseEventArgs e)    {       
MessageBox.Show("hello");    }
```


---

Original Source: https://www.mindstick.com/forum/1899/scroll-in-numericupdown

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
