










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











Pass Merit Distinction LO2 Explain the characteristics of procedural, object- oriented and event driven programming, conduct an analysis of a suitable Integrated Development Environment (IDE) P2 Give explanations of what procedural, object-oriented event driven paradigms are; their characteristics and relationship between them. M2 Analyse the common features that a developer has access to in an IDE. D2 Critically evaluate the source code of an application which implements the program paradigms, in terms of the code structure and characteristics.
▪ The Toolbox contains the various elements that can be added to the forms while developing. ▪ Allows you to add controls to a design surface
▪ Developing windows applications involve working with data. ▪ Use this window to open data connections and to log on to servers and explore their databases and system services
▪ The solution explorer displays the various files and folders included in our project. ▪ These files can be the C# code files, class files, configuration file, XML files, database files and more.
private void clickMe_Click(object sender, EventArgs e) { MessageBox.Show("Welcome to HND !", "WELCOME", MessageBoxButtons.OK, MessageBoxIcon.Information); }
▪ Design this Form by simply using Check Boxes, Text Box and a Buttons ▪ Double click the Submit button and type the code given in the next slide
Design this Form by using 6 Buttons, a List Box and a Text Box. Code for Add Button listBox1.Items.Add(textBox1.Text); textBox1.Clear(); Code for Insert Button listBox1.Items.Insert(0,textBox1.Text); textBox1.Clear(); Code for Clear Button listBox1.Items.Clear(); Code for Sort Button listBox1.Sorted = true;
int x = listBox1.Items.IndexOf(textBox1.Text); if (x == - 1) MessageBox.Show("Item Not Found", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); else listBox1.Items.Remove(textBox1.Text); textBox1.Clear(); Implement Remove as follows : Remove – An item is typed in the Text Box, if it is found in the list box it is removed otherwise an error message is displayed using a message box.
Design this Form by using Buttons, Labels and Text Boxes. The Code for + Button int n1 = int.Parse(textBox1.Text); int n2 = int.Parse(textBox2.Text); int ans = n1 + n2; textBox3.Text = ans.ToString(); Modify the Sign and Implement the other operators too. Change the code to get a precise answer for Division using Float type.
Create a Menu as shown here. For the Exit Menu Application.Exit(); For All the other Menus var f1 = new Form1(); // Create an Object of the form f1.Show(); // Show the form