Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Visual Basic Create an application that displays these images in PictureBox cont

ID: 3834528 • Letter: V

Question

 Visual Basic  Create an application that displays these images in PictureBox controls. The application should perform the following: Click image 1, which should display the word "One" in a message box...Click image 2, should display the word Two...and so forth up until 5.  
 Add a StatusStrip control that allows the user to click an image and see the equivalent Spanish word displayed in a label at the bottom of the form.  
 Add comments/remarks that explain your code.  
 Select two colors of your choice and change the form's background and foreground to these colors.  
 Set the FormBorder Style property to FixedSingle, and lock the controls on the form. 

Explanation / Answer

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void pictureBox1_Click(object sender, EventArgs e)
{
MessageBox.Show("One"); // display the message in messagebox
}

private void Form1_Load(object sender, EventArgs e)
{
this.BackColor = System.Drawing.Color.Cyan; // change the color of form background
}

private void pictureBox2_Click(object sender, EventArgs e)
{
toolStripStatusLabel1.Text = (string)"Buenos dias"; // it display the content at the bottom of the form
}
}
}