Please give me back the focus for my mouse wheel (VS 2010-Testversion)

E

Ernst Sauer

Hello,

I have a Form1 with a ToolStrip and a ToolStripCommboBox.
In Form1 I have a Window Form2 with ScrollBars.
When I select an item in the ComboBox it is highlighted, ok ...

But after clicking elsewhere in Form2, I would expect that the selected
item is no longer highlighted and (main problem) that I could use the
MouseWheel in Form2. But this is not the case.
I can scroll the Form2 with the ScrollBars, but not with the MouseWheel,
because the ComboBox has the focus for it.

this.Focus();
in the MouseDownHandler for the Form2 has no effect.

Thanks for help
E.S.
 
E

Ernst Sauer

Am 16.04.2011 22:35, schrieb Peter Duniho:

....
Personally, I wouldn't worry about it. It's not your job as the C#
programmer to modify the way automatic focus control works.

Hm, but Form2 is my GraphicWindow and I would like to scroll there
with the MouseWhell after selecting an item in the ComboBox.
And this.Focus() did not work in the MouseDownHandler for the Form2

Ernst
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top