Write a VB program to show different image and description based on the user selection on the combo box.
*set the Visible properties of RichTextBox to False
*set the ComboBox list items to: Cat, Dog, Rabbit
Step 1 – Choose an animal
The PictureBox’s Image will be changed to corresponding Image while the SelectedIndexChanged event of the ComboBox is triggered.
Tips: The Text of the RichTextBox will be changed at this point.
Step 2 – Checked the Description CheckBox
The RichTextBox will be displayed while the CheckedChanged event of the Description CheckBox is triggered.
You may use the following description:
-Cat: The cat is a domestic species of small carnivorous mammal.
-Dog: The dog or domestic dog, is a domesticated descendant of the wolf, characterized by an upturning tail.
-Rabbit: The rabbits also known as bunnies or bunny rabbits, are small mammals in the family Leporidae (along with the hare) of the order Lagomorpha (along with the pika).
Comments
Leave a comment