Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

post a unique example of code that assigns a property of a control to a value. Y

ID: 3732044 • Letter: P

Question

post a unique example of code that assigns a property of a control to a value. You may pick any control type, and any property.
Add three comment lines before the line of code
1. to explain what the code is doing and
2. what the property is used for, and
3. state whether that property can be changed using the Design time, Properties window.
For example:

'following line assigns the text property of a label named usernamelbl to a string value
'The text property of a label displays some text on the form
'The text property of a label is available in the properties window during Design time
usernamelbl.Text = "Enter your username"

Explanation / Answer

//The following line adds new item to the listbox named listbox using the property items

//The items property of a listbox enables to add items, delete items and get size of list box,

//The items property of the listbox is present during design-time using property window.

listbox.Items.Add("Chegg")