Chapter 13. Discovering the Menu
Our addition of the "section" feature worked fine, except for an irritating beep every time we insert a section. A bit of learning suggests that this is a menu-related problem, even though we don’t have a menu—yet.
Exploring the Problem
As soon as we added the new section logic to the GUI, using Alt+S, and began using the software through the GUI, Chet and I discovered an irritating beep every time we typed the Alt+S. We tried to be sure that we were properly telling Microsoft Windows that we had consumed the character, but that didn’t suppress the beep. So we did a little experimenting: we added a couple of Console.WriteLine sends to the KeyPress and KeyDown handlers, to print out what was happening and when. In ...
Get Extreme Programming Adventures in C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.