473,396 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

TypeConverter PropertyGrid and the MouseWheel event

Hi everyone,

I display some data in a propertygrid using different TypeConverters that I created. Those TypeConverters have different behaviors but they all support the Mouse wheel event to change the property.

If you scroll the mouse wheel, the selected property change as it should, no problem there. But if there are enough properties to generate a vertical scroll bar on the propertygrid, the property change as it should but the scroll bar also scroll, which makes it a little bit awkward for the user.

I tried intercepting all the MouseWheel events I could with no success... The propertygrid thinks the user wants to move the scrollbar with the MouseWheel.

I realized that if you override the function "GetStandardValues()" (and two other functions) in your new TypeConverter, everything works like a charm out of the box. What I mean is that the property iterates between the "standard values" without any modification and the scroll bar doesn't scroll. You don't even have to catch the MouseWheel event.

My question is... What's the difference between a TypeConverter that overrides "GetStandardValues()" and one that doesn't? How can I tell the propertygrid that the MouseWheel event is processed by my property? (Not overriding the function is equivalent to returning "new object[0]" in the function).

I hope you understand my question, it's kind of hard to summarize.
Thank you
Jul 15 '10 #1
1 2598
Anyone ???
Sep 8 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Niranjan | last post by:
I have a data entry form. I am trying to avoid users accidentally using the mouse wheel and saving an incomplete record (or saving record that skips the validation routine). In Mousewheel event,...
0
by: Rud | last post by:
The documentation clearly explains the MouseWheel event for a picturebox. Unfortunately I am not able to select this from the declarations dropdown list for the picturebox control on my form. It's...
0
by: Dennis | last post by:
I have a usercontrol I'm working on and it has several rows of data. I would like to scroll the data when the Mouse moves onto the control and the scroll wheel is turned without setting the focus...
2
by: Adrian Game | last post by:
Hi to all that read, I have created a usercontrol for which i want to be able to use the mouse wheel. Currently I have to make the form that the control is used in pass the mousewheel event to...
1
by: Qwert | last post by:
Hello, when a NumericUpDown control has the focus, the mousewheel increases/decreases its value. How does one prevent this from happening? How does one turn off its mousewheel event? Thanks.
4
by: tlemcenvisit | last post by:
Hi, I program a windows form application with VC++.NET, I wish to program an event which occurs when the user uses the mouse wheel in a pictureBox control. Which event should I use? And how can...
7
by: James | last post by:
Hi, I have a Windows Forms application which uses multiple child forms (MDI interface). The height of one of the child forms is larger than the height of the MDI client area, so when this...
3
by: Dave K | last post by:
I seem to be missing something... I want to use a mousewheel event in my VB.NET app... and there's a lot of example code on the net showing how to use the mousewheel event... and the .NET docs...
0
by: WaterWalk | last post by:
Hello. When I tried to make Tkinter canvas widget respond to MouseWheel event on Windows XP, I failed. The canvas just doesn't receive MouseWheel event. I used bind_all to find out which widget...
0
by: Jerry Spence1 | last post by:
I have a picturebox on a form. All the events seems to work such as MouseEnter, MouseLeave etc. However I can not get the MouseWheel event to fire. I am hovering the mouse over the picture and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.