Prevent users from editing text in ComboBox-DOT NET
How we can prevent users of the application from editing a text in ComboBox controls in the .NET 4.0?
Expert
ComboBox class has DropDownStyle property that is used to describe display style of an item in a ComboBox control. DropDownStyle property allows the value from a ComboBoxStyle enumeration that contains three members to describe styles for items like: DropDownList, Simple and DropDown. DropDownList value of a ComboBoxStyle enumeration is selected to set ComboBox control as non-editable by the users, as described in the following code:
Code for C#:
ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
Code for VB:
ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList
Which statement can be used to replace many if-else statements in the code.
Specify the pre-requisites for connection pooling?
What do you know about parameter and explain new types of the parameters introduced in the C# 4.0?
Briefly describe the function of a CheckState property of a CheckBox control?
Write differences between the while and for loop in C#.
Which classes are used to handle standard menu in the MenuStrip control.
How one can retrieve the customized properties of the .NET application from a XML .config file?
What does it signify to state ‘the canonical’ form of the XML?
Describe four workflow principles?
How docking is different from anchoring?
18,76,764
1930520 Asked
3,689
Active Tutors
1429043
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!