Using the Visual Studio IDE, create a Form that contains a buttonlabeled \"About
ID: 3619178 • Letter: U
Question
Using the Visual Studio IDE, create a Form that contains a buttonlabeled "About". When a user clicks the button, display aMessageBox thatcontains your personal copyright statement for the program. Save the project as About.cs.Additional comments in the code are required. Thank you. Using the Visual Studio IDE, create a Form that contains a buttonlabeled "About". When a user clicks the button, display aMessageBox thatcontains your personal copyright statement for the program. Save the project as About.cs.
Additional comments in the code are required. Thank you.
Explanation / Answer
I hope You know about Visual Studio IDE toolbars and windowsalready. Please follow the steps to create windows Forms Project in VisualStudio IDE. 1. Open Visual Studio IDE 2. Go to New -> Project. Then New Project selection wizardappears. 3. Left side of that window, Installed templates will bedisplayed. 4. In that list, select C# and then Select Windows. 5. Then all the available windows projects templates will bedisplayed in the Middle area of the wizard. 6. Select Windows Form Application template and provide proper nameand other details. 7. Click Ok. Then it will create and open the Windows FormsProject. By Default it will add and emptyform(Form1.cs) to the project and opens it for editing. 8. Rename this form to About.cs 9. Drag and Drop a button control from toolbox to the form. 10. Right click on the newly added button control, and then selectProperties. 11. Properties window appears. Then Select Text Property and entertext "About" in the text box next to Text Property. 12. Go to the Form and Double click on the Button. It will addEvent handler method to the forms's background code the method will be something likethis, private void button1_Click(object sender,EventArgs e) { //Add your code here } 13. Then add the following code to this Even handler method. MessageBox.Show("@Copyright 2009, ABC Company PrivateLimited","Copy Right Information",MessageBoxButtons.OK); 14. Save the project and Run the project(Press F5). Thats, You will get the out Form with One Button(About). If youclick that button, it will display message box with copy right information. I hope, it is clear to you.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.