473,396 Members | 1,846 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.

Enable TrackBar DoubleClick event

_DD
TrackBar DoubleClick event is not accessible via the Control
Properties event pane. So I tried adding the handler directly:

this.ColTrackBar.DoubleClick += new
System.EventHandler(this.ColTrackBar_DoubleClick);

It compiles but never fires. I suspect that individual Click events
are getting gobbled up by the main trackbar position event handler.
Any way around this?

May 19 '06 #1
4 3234
_DD,

That's why the DoubleClick event is hidden from the property grid.

I'm afraid you can't handle that. The WNDCLASS doesn't have CS_DBLCLKS style
and cannot be added (or at least I can't do it).
--

Stoitcho Goutsev (100)

"_DD" <_D*@nospam.com> wrote in message
news:2t********************************@4ax.com...
TrackBar DoubleClick event is not accessible via the Control
Properties event pane. So I tried adding the handler directly:

this.ColTrackBar.DoubleClick += new
System.EventHandler(this.ColTrackBar_DoubleClick);

It compiles but never fires. I suspect that individual Click events
are getting gobbled up by the main trackbar position event handler.
Any way around this?

May 19 '06 #2
I am not sure that this is good idea as this won't be user friendly
feature.

This could be well hidden feature :)) unless it is documented :)

Regards
Galin Iliev[MCSD.NET]
www.galcho.com

May 19 '06 #3
_DD
On 19 May 2006 11:28:58 -0700, "Galcho[MCSD.NET]" <ga****@gmail.com>
wrote:
I am not sure that this is good idea as this won't be user friendly
feature.


Thanks for the replies. In this case it *is* a user-friendly feature,
and maybe even intutive. I want to center an audio panning control.
It's tough to get the slider exactly zero'd manually.

I could have sworn I saw this documented somewhere.

May 20 '06 #4
you can check if user is dragging slider and if position is very close
to 0 the you can throw slider to 0.
check how WinAmp behaves when you move its windows close to desktop
border.

I hope this helps
Galin Iliev[MCSD.NET]
www.galcho.com

May 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Koo Min | last post by:
Hello, I've added drag-and-drop feature to a windows forms label control which is contained in a panel. And I added a doubleclick event handler to the drag-and-drop-abled label, but doubleclick...
3
by: Geoff Cox | last post by:
Hello, I am using Visual C++ 2005 Express Beta 2 and cannot sort out how to use the Scroll property value for a trackBar. Under Event properties the name for the Scroll property is...
5
by: David Lozzi | last post by:
Hey All, I have a listbox that I would like to fire an event on doubleclick. the onDoubleClick property of the listbox isnt available be default, and I know it will work with Javascript, but how...
4
by: Tor Inge Rislaa | last post by:
DoubleClick in DataGrid Hi I have a Datagrid bound to a dataset that I want to write a DoubleClick procedure on. My problem is that the DoubleClick event is raised only when DoubleClicking the...
3
by: C Glenn | last post by:
I would like one DoubleClick event handler to handle all double clicks throughout a DataGrid. I've assigned a DoubleClick event handler to the DataGrid and it works nifty-spiffy so long as I click...
2
by: mmdst23 | last post by:
I'm working on a video player app, and I want to implement a trackbar that behaves like the one in Media Player, that is the cursor position moves to where the user clicked instead of moving in...
2
by: John | last post by:
Ok, something that I thought would be easy is giving me fits. Using .NET 2.0 and C# I've added a Trackbar to a form. Set some values: trackVolume.Maximum = 100; trackVolume.Minimum = 0;...
2
Jensen01
by: Jensen01 | last post by:
I am currently using windows xp he sp2. I recently reloaded windows from disc. Updated .net 1,2,&3 . Im working with a program that uses .net framework 2 called FAVC. Its a dvd editing/menu-burning...
0
by: Bully | last post by:
How do I determine whether the Value of a trackbar has been changed by the user, or changed programatically? For example, if I set trackbar1.value = 10 in code, then the ValueChanged event gets...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.