The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Create a Console Application project (C#).
Within the namespace and outside of the wrapper class for Main create a class named assignment8 that inherits from System.Windows.Forms.
Instantiate a button control from System.Windows.Forms and name it btnClickMe.
Instantiate a button control from System.Windows.Forms and name it btnExit.
Set the form title bar to display "Assignment 8".
Set the form size properties to 300, 150.
Set the btnClickMe text to "Press Me" and the btnExit text to "Exit".
Add the two button controls to the form.
Set the btnClickMe location to coordinates 15, 20 and the btnExit location to coordinates 15, 60.
Register a new EventHandler for the Click event of the btnClickMe button and a new EventHandler for the Click event of the btnExit button.
Write the btnClickMe_Click event method and code the method to show a messagebox with "The Button Has Been Clicked" as text and "Click Me" in the MessageBox title bar when the Click event is fired.
Write the btnExit_Click event method and code the method to exit the application when the Click event is fired.
In Main run/instantiate an assignment8 form.
Internal documentation.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll