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
Differentiate between the ASP.NET session and a ASP session?
Explain abstract classes and List the different characteristics of an abstract class?
State the relationship between Class and an Object?
What is meant by the DTD?
What can be inferred from the term Methods?
What is meant by XCOPY?
How can we programmatically prevent the Combobox from dropping, in the .NET 4.0?
Which statement can be used to replace many if-else statements in the code.
Explain the role of a DISTINCT clause in the LINQ query?
Differentiate between the ComboBox control and the ListBox control?
18,76,764
1957205 Asked
3,689
Active Tutors
1415491
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!