Professional Documents
Culture Documents
CH 05
CH 05
CH 05
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-2
Menu Bar
◦ Menus that drop down to display a list of menu
items
Menu items are controls with properties and events
Each menu item has a Name and Text property and a
Click event (similar to a button)
Easy to create menus for a Windows form
using Visual Studio's Menu Designer
◦ Menus look and behave like standard Windows
menus
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-3
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-5
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-6
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-7
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-8
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-9
colorDialog1.ShowDialog();
fontDialog1.ShowDialog();
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-10
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-11
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-12
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-13
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-14
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. 5-15