.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to make menus play Menu Popup sound

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :Windows Application
Programming in C# for .NET Framework 3.5:

I've noticed my Windows Forms menus (ToolStripMenuItems on a MenuStrip) do not make proper menu popup sounds when they open (a problem curiously shared by many flagship Microsoft applications, lately). How is this remedied? Is there just some flag I need to set somewhere? Or am I going to have to make a subclass of <some-ToolStrip*-class > and override <whatever-method-that-executes-when-menus-pop-up > so it properly makes sound? A bit of a daunting task for someone new to the language/library, however necessary.

If in fact the latter is necessary, any suggestions regarding the best class+method to override for the purpose?  Keeping in mind that I'd also like menu popup sounds for context menus, too.

View Complete Post

More Related Resource Links

How to Make CSS for Hyperlinks NOT Affect Menu Items


VWD 2008 Express.

I have the following CSS in my DefaultStyleSheet.css file.  I want this to only apply to text hyperlinks (like links to web sites or email addresses) but NOT to my asp:menu items.  I am finding that although I have defined my asp:menu items in the menu properties, the colors in the text in the menu tabs get overridden by the CSS below.  How can I make this not happen?  Thanks for any help.


{color:#6F928B; text-decoration: none}


{color: #660066;}


Menu doesn't popup when WIndow style set to AllowsTransparency="True" WindowStyle="None"

Hi,I'm facing an issue, when using Window style set to AllowsTransparency="True" WindowStyle="None", my menus in menubar doesn't popup, rather they gets hidden (not visible) and if you just click by guess then menu item will be executed, its just that menu item is not shown visisble.However, if I revert back the Window style to normal without Transparency then menus visible(popup) perfectly.I'm not sure what could be an issue?San

asp:Menu submenu hover/expansion + HTTPS = Security Information Popup

Hello,I have a an asp:Menu with a datasource and the page is being accessed by https. If I hover over one of the menu items that has a subitem I get this popup.Here is my code,//asp <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="UI_Common_Test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:Menu ID="Menu1" runat="server" DataSourceID="dsSiteMap" Orientation="Vertical" StaticDisplayLevels="2"> <DataBindings> <asp:MenuItemBinding DataMember="SiteMapNode" TextField="Title" /> </DataBindings> </asp:Menu> <asp:SiteMapDataSource ID="dsSiteMap" runat="server" SiteMapProvider="Public" /> </div> </form> </body> </html> //cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI;

How to make context menu as non selectable when the usercontrol is active

I am having a context menu displayed when i right click on a node of a treeview. Suppose my treeview is as follows Root |->some.txt |-> Child(For some.txt) |-> Child1(child for Child) If i right click on Child1 i will have an option as AddNew. If the user selects i will show a user control form for the user displayed in a panel. What i need is if the user selects the option as Child1 and if the user control is active and when the user again right clicks

want to play movie in popup

Hiiii Coders, I have an image and i want whenever user click on it, it should play a movie at the center of the page. Means on clicking image, it should open a popup window where my player will play a movie. How can i achieve this? plz rep asap thanx and regards 

Make Menu The Focus When Hovered

I have a menu as per the code below. When a menu item is hovered, the background text on the contentplace holder (body of web page) kind of mixes with the text from the menu items and it messes up the menu text items. It appears that the menu isn't on Focus (I may have the word Focus Incorrect here) and thats why the body text in the contentplaceholder is mixing with the text from the menu items.   <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" ForeColor="Black"                 Font-Size="13pt" Height="32px">      <StaticHoverStyle ForeColor="Blue" BackColor="#E4E4E4" BorderStyle="Outset" />      <DynamicHoverStyle ForeColor="Blue" BackColor="#E4E4E4" BorderStyle="Outset" />      <DynamicMenuStyle BackColor="#E4E4E4" BorderStyle="Solid"/>      <Items>          <asp:MenuItem Text="Home" Value="Home" NavigateUrl="~/Default.aspx"></asp:MenuItem>          <asp:MenuItem Text="Solutions" Value="

Add custom popup menu to treeview



I need to add a custom popup menu to a treeview.

The treeview is populated with a SharePoint site and displays all the lists from that specific site.

The treeview is something like this:

 |--+List Name 01
 |  |--+List01 Item 01
 |  |--+List01 Item 02
 |  |--+List01 Item 03
 |--+List Name 02
 |  |--+List02 Item 01
 |  |--+List02 Item 02
 |  |--+List02 Item 03

But i want to display that custom popup menu only when i right click on the list name (List Name 01, List Name 02.....).

If i right click on the root node or an item in the list i don't want to show the popup menu. Only if the selected node is a list.

Thank you very much for any info, code, help ...


how to make background Inactive when inline popup raised


how to make background Inactive when inline popup raised.....

I have created popups using divs in my page...Now i want to Inactive my form elements when popup raised.......I am operating popups using Jquery.....

Play Sound on Notification Pop Up


Hi All,

I wonder is it possible to play a sound  for example when i have a notification pop up?

If so please kindly assist.

Thank you in advance.

Warmest Regards,


Make modal popup scroll with page


I've got a modal popup and when it loads contents that are taller than the browser height I am unable to scroll down to view the rest of the information. Instead the background can scroll but the popup won't, I'd like to have the popup stay in place so the users can see the bottom of the modal.

How can i play short sound when im over the button in C#?

i want, whenever i was over the button in C#, short sound will play
I,m CRAZY about learning NEW things.

ASP.NET 4.0 Menu - No Auto Scroll for long sub menus


Previously, the ASP.NET 3.5 Menu control displays an automatic scrolling function (e.g. down arrow or up arrow) on its submenus when there isn't enough room in the browser area to display all the submenus.

I have migrated the same intranet site to ASP.NET 4.0 and the automatic scrolling function of the sub menus is gone i.e. is no longer there.

All I get is is the vertical and horizontal scroll bars for the web browser (but theese are useless, because when you go to scroll the browser, the menu has lost focus), NOT the up/down for the actual menu itself.

I am using Internet Explorer 8 and have tried with and without Compatability View.

Any ideas? Thanks ...


How to make asp:menu tabs with round top corners


I am using asp:menu control to display horizontal menu.


I need to display tabs with rounded top corners.


Any idea how can I do that? 

How do I make it possible for a popup to come up, based upon the selection a user makes in a grid vi


I've got a ListView object, with a GridView within it, where I'll be putting data.  The list view is in SingleMode.  I want it so that the user can select a row, and based upon criteria in that row, it would then bring up a popup display relevant data to the selected row.

There are 2 possible ways I envision this could happen.  I could put a button somewhere in the row (at this point I don't know how, but I'm sure it can be done), so that if the user clicks on the button, then my code would determine what it needs to from that client, to bring up the popup and display the additional data.

The second way I can envision this happening is I could make one of the columns a hyperlink field, still showing the data that column has to show for that row.  When the user clicks on the hyperlink, then it would bring up the same popup that I discribed for the first scenario.  However, again, I don't know how to do this.

So the question is, which is the "correct" or "more common" way of doing it, and how is it done?  (I'm working with VS 2010, so this is WPF 4).


UserControl: Change image and play sound on MouseDown using only XAML?



I am trying to develop a UserContorl which shows an image that changes and plays a sound when MouseDown is raised. This is my UserControl:


<UserControl x:Class="Jugues.contacteButton"

How to make dividers in top menu?


I want to brand our enterprise portal. Now I editing master page. I need to make deviders between top menu items. How can I do that?

ASP.NET Menu with jQuery Superfish

Choosing the right type of menu for a website is not easy at all. The ASP.NET Menu Control is definitely NOT a good starting point due to the horrendous markup it renders, nor is it good for SEO because of the Markup/Content ratio, neither can it be easily styled.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend