Assume that you are working on a VB project where you need to change the color of the text in a text box named InformationTextBox.The color is to be selected by the user of the project.Explain which CommonDialog component you need to add to your form,indicate where it appears,and write the code needed to change the color of the text box.
A.Add a ColorDialog component,ColorDialog1.
B.It will appear in the component tray.
C.This is the code to show the dialog box: ColorDialog1.ShowDialog()
This is the code to change the textbox font color -
InformationTextBox.ForeColor = ColorDialog1.Color
Correct Answer:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q27: Which of the following is the method
Q28: Which of the following statements is NOT
Q29: Which of the following is the correct
Q30: If you right-click an object,what type of
Q31: Which of the following statements is NOT
Q33: Which of the following is NOT true
Q34: Explain the differences between ByVal and ByRef
Q35: Which of the following statements about context
Q36: Which of the following is NOT true
Q37: Which of the following is NOT true
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents