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
How a complex number can be instantiated?
Explain the use of App_Code folder in ASP.NET?
Briefly explain the use of a Panel control? And also state whether it displays during runtime?
Write the difference between the Literal control and Label control?
What is the way to identify that a Page is Post Back?
Write down the different ways of hosting the WCF service?
Define constant and variable.
Briefly describe contra-variance and covariance in .NET Framework 4.0 and give an example for both?
State the function of the “Try-Catch-Finally” block
Define the roles of CLR in .NET Framework and also explain the responsibilities?
18,76,764
1952019 Asked
3,689
Active Tutors
1431712
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!