Write the statement(s) to convert the value in the text box, PriceTextBox, to decimal and store the result in the variable PriceDecimal which has already been created (you don't have to write the Dim statement). Add a Try/Catch block so that when an error results during the conversion, display the error message "Error in input data" in the label MessageLabel.

MessageBox.Show("Quantity should be numeric and greater than 0!", "Error", _
MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

Write the statement(s) to display a Message Box on the screen with the message "Quantity should be numeric and greater than 0!". The Message Box should use "Error" in the title bar and should use the OK button and the Exclamation icon.

Visual Basic is fun

What will display in MessageLabel when the following statements are executed? Assume that CountInteger=10.
MessageString = "Visual Basic is fun"
IF CountInteger <= 10 Then
MessageLabel.Text = MessageString.ToLower
ELSEIF CountInteger > 20 Then
MessageLabel.Text = MessageString.ToUpper
ELSE
MessageLabel.Text = MessageString
END IF

And

The Autos Window

You can use _______________ as your project executes in order to view the values of variables and control contents that are referenced in the current statement and a few statements on either side of the current statement.

True

True

If you want the user to be able to use the dialog boxes from the Windows environment so they can save files and change colors, you will need to add two common dialog components to your form, the SaveFileDialog for saving files, and the ColorDialog for changing colors.

Create a set of statements that will validate that the text box object InputTextBox is a numeric value and set the variable InputInteger to the integer value of the InputTextBox object using the Integer.Parse. If the value is not numeric and an exception occurs then display a message box saying "Input not numeric". Use Try/Catch to validate.

If LanguageTextBox.Text.ToLower() = "visual basic" Then
MessageBox.Show("You are programming in Visual Basic!")
End If

Write the statement(s) that will take the value a user has typed into the text box called LanguageTextBox, convert it to lowercase and then test to see if it is equal to the string "visual basic". If the strings match display a message box saying "You are programming in Visual Basic!".

End Sub

Write the code for the ColorToolStripMenuItem menu selection that will allow the user to change the color of the MessageLabel text to the color selected by the user from the ColorDialog1 Color dialog box when the menu selection is clicked. Below you will be given the first and last lines of the procedure and you are to write the rest.

With FontDialog1
.Font = NameTextBox.Font
.ShowDialog()
NameTextBox.Font = .Font
End With
End Sub

Write the code for the FontToolStripMenuItem menu selection that will allow the user to change the font properties of the NameTextBox text to the font properties selected by the user from the FontDialog1 Font dialog box when the menu selection is clicked. Below you will be given the first and last lines of the procedure and you are to write the rest. Be sure to include the Private Sub event header and the End Sub at the end.

True

MajorTextBox.SelectAll()

Write the statement(s) to make the entry in the text box called MajorTextBox appear selected when the text box's Enter event procedure occurs. The first and last lines of the procedure are given. You just need to write the single statement that will be placed inside the procedure.

For CountInteger = 50 to 0 Step ‐5
'statements in loop
Next CountInteger

For RowInteger as Integer = 0 to 5
For ColInteger as Integer = 0 to 5
AmountDecimal(RowInteger, ColInteger) = 0.0D
Next ColInteger
Next RowInteger

Given the declaration for the following 2 dimensional array, write the statements to initialize the elements of the AmountDecimal array to 0.0D. Assume that the array has already been loaded with decimal values and your code will be used to reinitialize the array back to 0. Include the Dim statements for any additional variables that you might need.

Given the following variable declarations, write a For/Next loop to add 5 to each element of the CountInteger array. Assume that the array has already been loaded with integer values and your code will increment each array element by 5.