Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of C#
  • Discussion

  • Study Guides

  • Table of Contents

Bookmark and Share
Lecture Comments (8)

2 answers

Last reply by: Timothy Davis
Thu May 1, 2014 10:17 PM

Post by Timothy Davis on April 30, 2014

Hello again Dr. Snape!
  How do you get the command button to recognize methods on another form?   or methods that are in the main program? Also, if I want to instantiate a class, how can I get the command button to recognize the instance of the class without getting an error if the class is on another form?      

2 answers

Last reply by: Timothy Davis
Sun Apr 27, 2014 11:14 AM

Post by Timothy Davis on April 27, 2014

Can I control the linklabel with a command button?  By that I mean by clicking on a command button it actually activates the linklabel as though it had been clicked?  

1 answer

Last reply by: John Snape
Mon Apr 21, 2014 10:58 AM

Post by Thuy Nguyen on April 20, 2014

Hi, when I used the .DropDownItems.Add for the context menu strip, I get an error:  Cannot find any method dropdownItem... are you missing a using or reference.  

Do I need to add any "using..." in order to make the DropDownItems.Add work?

Command Controls

  • Command Controls are immediate commands
  • The Command Controls are:
    • Button
    • ContextMenuStrip
    • MenuStrip
    • ToolStrip
  • The Button is used to cause an immediate action from the program
    • Using an ellipsis after the button text tells the user that a dialog box will open if they press the button
  • The ContextMenuStrip is a right-click menu that can be set differently for every control on a form
  • The MenuStrip is the standard menu along the top of a form
    • After placing it on the form, you can right-click on it and choose “Insert Standard Items” for quick creation of the standard menus
    • Using an & (ampersand) before a letter on a menu will make it the Alt- choice
    • You can have the same Alt- menu command for different levels of a menu
  • The ToolStrip gives you a condensed icon menu strip