473,782 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TypeConverter PropertyGrid and the MouseWheel event

3 New Member
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 "GetStandardVal ues()" (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 "GetStandardVal ues()" 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 2614
Tomy Rodrigue
3 New Member
Anyone ???
Sep 8 '10 #2

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

Similar topics

1
2227
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, I have a boolean variable (blnMousewheel) that is set to true. In the beforeupdate form event, an If statement cancels any changes if the blnMousewheel is true. It also sets the boolean variable to false. It works most of the time, but some...
0
1247
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 not listed... Any ideas? Is this a bug? What else can I do to react on a mousewheel event...? Thanks, Rud.
0
1049
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 to my control. If my control doesn't have the focus, the MouseWheel event isn't fired for mycontrol. I don't want to set the focus to my control whenever the mouse moves over or even hovers over it. it as that would be impolite to the enduser...
2
5204
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 the control by code. Is there any way to automatically get the event for when the mouse is over the control area. Cheers and thank in addvance for any help provided Adrian
1
4791
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
3832
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 I program that? Thanks in advance
7
11516
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 form is visible, the vertical scroll bar of the MDI parent appears automatically. What I want to do is write a routine within the MouseWheel event of the MDI
3
3593
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 discuss the mousewheel event... but there doesn't seem to BE a mousewheel event. in VS 2003 or 2005, in C# or in VB.NET... and on the couple systems I've checked. I can't find a single control that gives me a "MouseWheel" event option in it's...
0
2494
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 receives this event and the result showed that only the top Tk widget gets it. This is really annoying. I wonder if this problem exists on other platform. I googled, but found no appliable solution, so I wrote one as following. It's not perfect,...
0
1380
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 turning the wheel. Does it not work like this? If I add a Form Mousewheel event then this does fire - even when the mouse is over the picturebox. -Jerry
0
9639
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10311
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8967
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7492
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.