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
Can the 'throws' clause can be used to raise an exception?
Is it possible to create a Windows Service by using WPF?
By which method we can add or remove rows from a DataTable object of DataSet?
Explain briefly about Object Relational Designer (0/R Designer)?
Specify difference between the asynchronous postback and the synchronous postback?
List the binders that are provided by .NET Framework 4.0?
Illustrate Hybrid and Community cloud.
Write the difference between for loop and the while in C#.
Describe about the characteristic of Anonymous type?
Describe DataReader object?
18,76,764
1932274 Asked
3,689
Active Tutors
1455785
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!