Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 2, Problem 12RQ
Program Description Answer
Text boxes must have their BorderStyle property set to “Fixed3D”.
Hence, correct answer is option “B”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
The __________ property can be used to change the text’s alignment in the label. a. TextPosition b. AutoAlign c. TextCenter d. TextAlign
Most controls have a __________ property that determines whether the control is visible on the form at run time. a. Render b. Viewable c. Visible d. Draw
Create an application with a form that resembles Figure 3-48. The PictureBox controls display the images of four fruits (a banana, an apple, an orange, and a pear) and each fruit’s calories. You can find these images in the Chap3 folder of the Student Sample Programs.
When the application starts, the total calories should be zero. Each time the user clicks one of the PictureBoxes, the calories for the fruit should be added to the total calories, and the total calories should be displayed. When the user clicks the Reset button, the total calories should be reset to zero.
Hello, I recently sent this question, but didn't provide images as needed. I apologize for that, I'm not sure how to upload the other three fruits (an apple, an orange, and a pear) since I can only upload two. If there is a way, please let me know. Just for clarification on this question, everytime the PictureBox (fruit) is clicked on, it will display the fruits calories on the label under "Total Calories", and…
Chapter 2 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 2 - Prob. 1MQ1Ch. 2 - Prob. 2MQ1Ch. 2 - Prob. 3MQ1Ch. 2 - Prob. 4MQ1Ch. 2 - Prob. 1MQ2Ch. 2 - Prob. 2MQ2Ch. 2 - Prob. 3MQ2Ch. 2 - Prob. 4MQ2Ch. 2 - Prob. 1MQ3Ch. 2 - Prob. 2MQ3
Ch. 2 - Prob. 3MQ3Ch. 2 - Prob. 4MQ3Ch. 2 - Prob. 1RQCh. 2 - Prob. 2RQCh. 2 - Prob. 3RQCh. 2 - Prob. 4RQCh. 2 - Prob. 5RQCh. 2 - Prob. 6RQCh. 2 - Prob. 7RQCh. 2 - Prob. 8RQCh. 2 - Prob. 9RQCh. 2 - Prob. 10RQCh. 2 - Prob. 11RQCh. 2 - Prob. 12RQCh. 2 - Prob. 13RQCh. 2 - Prob. 14RQCh. 2 - Prob. 15RQCh. 2 - Prob. 16RQCh. 2 - Prob. 17RQCh. 2 - Prob. 18RQCh. 2 - Define sentence capitalization.
Ch. 2 - Prob. 20RQCh. 2 - Prob. 2ECh. 2 - Create an application that calculates and displays...Ch. 2 - Prob. 4ECh. 2 - Create an application that calculates and displays...
Knowledge Booster
Similar questions
- The _________ property causes a control to be positioned directly against one of the form’s edges.arrow_forwardLabel controls have a(n) __________ property that controls the way they can be resized.a. Stretchb. AutoSizec. Dimensiond. Fixedarrow_forwardSizing Handles make it very easy to resize virtually any control whendeveloping applications with Visual Basic. When working in the FormDesigner, how are these sizing handles displayed? choose the correct answer A) A rectangle with 4 arrows, one in each corner, around yourcontrol.B) A 3-D outline around your control.C) A rectangle with small squares around your control.D) None of the above.arrow_forward
- Once you have created a PictureBox control, you use its __________ property to specify the image that it will display. a. Image b. Source c. DrawSource d. ImageListarrow_forwarduse any language GUI The form should contain five command buttons, two labels only, and three picture boxes. The three picture boxes, each containing a flag, are on top of one another, but only one should be visible at a time. For each picture box: Be sure to add the image as a local resource. Set the Size property to 100, 50 Click the Size Mode list arrow, then click StretchImage in the list. For the Labels: One label will have your name as the programmer – see bottom left corner of the windows above. The other label will be used to display the name of the capital city. When a country button is clicked assign the name of the city into this label.arrow_forwardYou can use a(n) __________ control to display a graphic image on a form. a. Graphics b. PictureBox c. Drawing d. ImageBoxarrow_forward
- Shape1. Shape =5 will make the shape control appears as a rectangle O square O oval O rounded square Oarrow_forwardThe PictureBox control’s __________ property specifies how the control’s image is to be displayed. a. RenderMode b. DrawMode c. SizeMode d. ImageModearrow_forwardIf several __________ controls exist in a GroupBox, only one of them may be selected at a time. a. CheckBox b. RadioButton c. ListBox d. SelectionButtonarrow_forward
- To make the PictureBox1 control the same size as the PictureBox2 control, you first select the________ control.arrow_forwardA button’s caption should be entered using________ capitalization. a. book titleb. sentencearrow_forwardQ5/Private Sub Form Activate() Font.Name = "arial": Font.Bold = True: Font.Size = 14 start: 9 = InputBox("input wave length"., "input"., 6000, 2000) If q = "s" Then End Visual Basic Select Case q Case 0.005 To 0.009: Print, "Gamma ray" Case 0.01 To 5: Print, "X-ray" Case 10 To 3999: Print, "Ultraviolet" Case 4000 To 7499: Print "Visible Light" Case 7500 To 4000000#: Print, "Infrared" End Select GoTo start End Sub 1- Rewrite the code by using (IF) Instead of (Select case) 2- Write the input and the output the programarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning