Home » mcq » Visual basic » The . . . . . . . . is one of the controls that is used to handle graphics
picture box
combo
label
text
Answer is Wrong!
Answer is Right!
The correct answer is A. PictureBox.
A PictureBox is a control that allows you to display images on a form. It is one of the most commonly used controls in Windows Forms applications. You can use a PictureBox to display any type of image, including bitmaps, icons, and metafiles.
To add a PictureBox to
48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/>
Subscribe on YouTube
a form, drag it from the Toolbox to the form. You can then resize and position the PictureBox as needed. To display an image in a PictureBox, set the Image property to the path of the image file.
You can also use a PictureBox to create a simple image viewer. To do this, add a PictureBox to a form and set the Image property to the path of an image file. Then, add a button to the form and set the Click event handler to the following code:
private void button1_Click(object sender, EventArgs e)
{
PictureBox1.Image = new Bitmap("image.jpg");
}
When you click the button, the image file will be displayed in the PictureBox.
The other options are not controls that are used to handle graphics. A combo box is a control that allows users to select from a list of items. A label is a control that displays text. A text box is a control that allows users to enter text.