How can I Write an Event that Happens when Mouse Scrolls in TextBox?

Amir Pourmand امیر پورمند

I wanna change the number of the TextBox when The Mouse Scrolls.
I have a Scroll TextBox But I Don't wanna use that. Is There any Event related to this? Should I write an TextBox Event? If yes, How can I write a textBox event that Happens when Mouse Scrolls?

TaW

The MouseWheel event is there alright:

public Form1()
{
    InitializeComponent();
    textBox1.MouseWheel += textBox1_MouseWheel;
}

void textBox1_MouseWheel(object sender, MouseEventArgs e)
{
    throw new NotImplementedException();
}

But it is not visible in the event editor. No idea why..

You can find the full list of events through Intellisense like this:

Enter the Control's name and a dot. Now watch the dropdownlist for the event you need. When you have it write += add press Tab twice. This hooks up the event and creates a stub for it.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How can I create a Mouse Enter event on a specific UserControl(Index)?

分類Dev

How can I get a global mouse event in GTK?

分類Dev

How can i write Focus Gained event for Particular column in JTable?

分類Dev

how to create random UUID in Android when button click event happens?

分類Dev

How can I make a scene switcher in Python Pygame when mouse is clicked?

分類Dev

Facebook notification when event happens on my server

分類Dev

How can i avoid a deadlock in Spring when creating a bean while triggering an application event?

分類Dev

How can i avoid a deadlock in Spring when creating a bean while triggering an application event?

分類Dev

How can i avoid a deadlock in Spring when creating a bean while triggering an application event?

分類Dev

How can I assure consistency when using an event-carried state transfer approach in Kafka

分類Dev

How can I write a small script to clean every directory's files when the computer starts?

分類Dev

How can I, in C++, write a templated RAII wraper with custom function calls when functors are not an option?

分類Dev

How to write the app version in a textbox

分類Dev

how can i check if event exist on calendar

分類Dev

How can I automate a task on a certain event?

分類Dev

How can I write to a global variable in Aurelia?

分類Dev

How can I write a WebSocket client in Julia?

分類Dev

How can I write code that makes a spiral?

分類Dev

How can I write a collection of objects to file?

分類Dev

How can I write this Query in another way

分類Dev

how i can write local url

分類Dev

How can I convert textbox value to double in c#?

分類Dev

How can I select all the text within a Windows Forms textbox?

分類Dev

How can I get textbox value into array and convert into integer in java

分類Dev

how can i set the background color of the TextBox in an editable ComboBox?

分類Dev

How can I stop XScreenSaver from waking up on Mouse Input?

分類Dev

How can I assign actions to all my mouse buttons?

分類Dev

Middle mouse click emulation on trackpad, how can I set it?

分類Dev

Android Facebook Logout: Where can I make code run when this happens?

Related 関連記事

  1. 1

    How can I create a Mouse Enter event on a specific UserControl(Index)?

  2. 2

    How can I get a global mouse event in GTK?

  3. 3

    How can i write Focus Gained event for Particular column in JTable?

  4. 4

    how to create random UUID in Android when button click event happens?

  5. 5

    How can I make a scene switcher in Python Pygame when mouse is clicked?

  6. 6

    Facebook notification when event happens on my server

  7. 7

    How can i avoid a deadlock in Spring when creating a bean while triggering an application event?

  8. 8

    How can i avoid a deadlock in Spring when creating a bean while triggering an application event?

  9. 9

    How can i avoid a deadlock in Spring when creating a bean while triggering an application event?

  10. 10

    How can I assure consistency when using an event-carried state transfer approach in Kafka

  11. 11

    How can I write a small script to clean every directory's files when the computer starts?

  12. 12

    How can I, in C++, write a templated RAII wraper with custom function calls when functors are not an option?

  13. 13

    How to write the app version in a textbox

  14. 14

    how can i check if event exist on calendar

  15. 15

    How can I automate a task on a certain event?

  16. 16

    How can I write to a global variable in Aurelia?

  17. 17

    How can I write a WebSocket client in Julia?

  18. 18

    How can I write code that makes a spiral?

  19. 19

    How can I write a collection of objects to file?

  20. 20

    How can I write this Query in another way

  21. 21

    how i can write local url

  22. 22

    How can I convert textbox value to double in c#?

  23. 23

    How can I select all the text within a Windows Forms textbox?

  24. 24

    How can I get textbox value into array and convert into integer in java

  25. 25

    how can i set the background color of the TextBox in an editable ComboBox?

  26. 26

    How can I stop XScreenSaver from waking up on Mouse Input?

  27. 27

    How can I assign actions to all my mouse buttons?

  28. 28

    Middle mouse click emulation on trackpad, how can I set it?

  29. 29

    Android Facebook Logout: Where can I make code run when this happens?

ホットタグ

アーカイブ