473,473 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Adding auditory feedback to button clicks

I have a Windows Forms App with a number of buttons. I need to add
auditory feedback to the buttons being clicked since they will be
clicked using a touch sensitive LCD screen.

I added the following method call to every button click event:

private void keyClick()
{
System.Console.Beep(1000,50);
}

While this works, it seems a bit unwieldy to add this call to every
method. Is there any other way to add this type of functionality? Can
I add more than one event handler through the designer? I also thought
of using an Extender provider but not sure how this would work.

Any suggestions?

Thanks

Apr 26 '06 #1
2 1285
There are many things in a touch screen application and interface that are
different - rather than look at this small picture, you might want to step
back and look at the larger picture: how do you get a bunch of controls that
behave and do things in a way that makes sense for a touch based interface?

The solution for us was to make our own set of controls. We built our own
versions of the message gox, listviews, and what not, controls designed to
interact with finger touches better than the common controls.

In the case of a button, you'd make a new control, inherit the button
control, and then add the beeping, or whatever else you need. With out
button control, we also made it flash yellow when touched.

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
I have a Windows Forms App with a number of buttons. I need to add
auditory feedback to the buttons being clicked since they will be
clicked using a touch sensitive LCD screen.

I added the following method call to every button click event:

private void keyClick()
{
System.Console.Beep(1000,50);
}

While this works, it seems a bit unwieldy to add this call to every
method. Is there any other way to add this type of functionality? Can
I add more than one event handler through the designer? I also thought
of using an Extender provider but not sure how this would work.

Any suggestions?

Thanks

Apr 26 '06 #2
I do have a custom button class that I am using for this app, but this
button could also be used in standard Windows Apps that do not use a
touch screen so I am hesitant to add this directly to the button, but
thanks for the response, I'll definitely consider it.

Apr 26 '06 #3

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

Similar topics

0
by: Andrés Giraldo | last post by:
Hi! I'm adding an asp button to a datagrid on the ItemDataBound event, when the user clicks on this button, I basically remove the button and create other 2 buttons... my problem is.. the 2 last...
10
by: AdamG | last post by:
I am trying hard for days now to add and delete rows to a table. I could really use some help... Each row contains two buttons (images) - 'add row' and 'delete row'. When the user clicks add...
2
by: RobG | last post by:
I am trying to dynamically add an onclick to an element, however I just can't get the syntax right. consider the following function: function doClick (evt,x) { // do things with evt and x } ...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
1
by: Andrew | last post by:
Hey all, I am very new to ASP.Net (and .Net in general), but that isn't stopping the boss from wanting to begin new projects in it. This latest project has me kinda stumped and after a couple...
4
by: PK9 | last post by:
I have a button at the top of my page that I have an onClick event handler for which makes some new controls (at the bottom of my page) visible. When the user clicks the button I make the new...
3
by: Byron Hopp | last post by:
Anybody have code to add a ToolBar, and its buttons to a MDI Child window. I have added the Toolbar, and added the buttons, but how do you determine what the button is going to execute upon the...
1
by: lali | last post by:
hi everybody, i am doing a project and i have strucked in middle of my code usiong asp. the problem is, in the feedback form there are many fields which are manidatory.when an user fills the form...
4
by: Lewis Holmes | last post by:
Hi I have the following situation in one of my asp.net pages. The user can add multiple table rows to a form by selecting a button. These rows can contain asp.net controls. When this button is...
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
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
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,...
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...
1
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...
0
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,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.