Question: Activity 3 Create a simple Hello World application Type or copy and paste the C# code to 1. Add three instance variables to your MainEQcm


Activity 3 Create a simple Hello World application Type or copy and paste the C# code to 1. Add three instance variables to your MainEQcm class 2. Add an O method to instantiate, set properties, and add the controls to the form's Controls collection 3. Modify the constructor method to cal InitializeMcontrolsO method 4. Use the Debug menu (or the toolbar icon), Select Start Debugging to run you MainForm windows application Note: your OK button will have no effect yet, you will add the code to handle the event in the next activity name space windows ut public partial class MainFocm Form Instance variables private Textaa nameTextBax; private Button okButtan: private Label gceetingLabel: public MainEacm CO private void Loitializecontrols O //Initialize the text box = new nameTextBox.size. = new size (100, 20); nametextBox.location - new Point new Point(50, 50) /Initialize the ok button okButton new ButtonO akButton.size. = new size (50, 20); akButton cation = new Point(70, 100)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
