473,888 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.ColTrackBa r.DoubleClick += new
System.EventHan dler(this.ColTr ackBar_DoubleCl ick);

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 3275
_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.c om...
TrackBar DoubleClick event is not accessible via the Control
Properties event pane. So I tried adding the handler directly:

this.ColTrackBa r.DoubleClick += new
System.EventHan dler(this.ColTr ackBar_DoubleCl ick);

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.c om>
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
1392
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 event never happen to the label. What did I wrong? Or is it a .NET bug? (Similar discussions I found:...
3
5403
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 trackBar1_Scroll so how do I print out the Scroll value?
5
3146
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 do I use javascript to run a server side function? Currently, I am using a Next button to accept the change, but it would be a faster UI to have the option to doubleclick instead. thanks a ton! david lozzi
4
1796
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 column or row header. How is it possible to get a DoubleClick event to occur on a row wherever it is DoubleClick. I also want, when a cell within the row is selected, that the entire row is marked as selected not just the actual cell. TIRislaa
3
8277
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 outside the data. The trouble is, the underlying cells or columns or whatever would like to have something to say about this. The cells respond to the DoubleClick but not the grid. How do I get my event handler to handle all double clicks...
2
10197
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 that direction by a fixed value. Has anyone implemented something like this before? I haven't found anything on codeproject, or searching the .NET newsgroups. This seems like it would be a common control type, am I missing the easy solution? I...
2
18939
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; trackVolume.TickFrequence = 25; Then I added an event for the value:
2
4553
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 program. When I run it I get these errors. Odly enough I linked 8007000b to and update forum on m$ live, followed a bunch of steps and then the updates rolled in. still didnt work and I still have the problem, which brings me here. I have copy &...
0
1188
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 fired. This same event gets fired if I move the slider on the trackbar. How do I distinguish between a user action and a coding action? Thanks Jon
0
9961
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
9800
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11182
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
10778
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
10886
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,...
1
7990
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
7148
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();...
1
4642
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
2
4245
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.