CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #5
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: KeyEvents

    Changed my app to display another windows form. This new form contains one button that is associated with the CancelButton property of the form.
    Code:
    private void showDlgToolStripMenuItem_Click(object sender, EventArgs e)
    {
        Dlg d = new Dlg();  // Dlg is the name of the class of my new form
        d.ShowDialog();     // not d.Show() as this prevent the button from closing the form
    }
    Now it works perfectly in both cases, without sound. So it seems as though the standard message box makes a noise.

    Can you post your menu handler code....
    Last edited by rliq; August 20th, 2009 at 09:41 PM.
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured