2

I am creating a Command Line tool in C#. I can't scroll through my console application using mouse wheel.

How can I enable mouse wheel scroll in my Console . ?

Farhan S.
  • 698
  • 8
  • 26

2 Answers2

1

Its not as easy as a standard window app event as you need to hook in to the win32API. Here's a guide on how to do it:

Capturing mouse wheel events in console application

Community
  • 1
  • 1
KnowHoper
  • 4,352
  • 3
  • 39
  • 54
0

I don't think this is possible. If you want this, probably the best you can do is make a WinForms/WPF application with a single textbox (multiline) that has this feature automatically.

Michel Keijzers
  • 15,025
  • 28
  • 93
  • 119