.Net windows controls interview questions
61. What is the difference between a ListBox control and a ComboBox control? With a ListBox control, the user can […]
61. What is the difference between a ListBox control and a ComboBox control? With a ListBox control, the user can […]
55. Is it possible to enter more than one line in a TextBox control? Yes, it is possible to enter
49. What are the three states set in the CheckState property of CheckBox? Checked Unchecked Indeterminate 50. How can you
43. What is the importance of a Button control? A Button control is an important Windows control, which provides the
37. How can you place a border around a picture box? The PictureBox control offers the BorderStyle property, which can
31. How can you attach a horizontal scroll bar with the ListBox control? You need to set the the MultiColumn
25. How do you retrieve the customized properties of a .NET application from the XML .config file? Initialize an instance
9. Define the TrackBar control. The TrackBar control, also known as the slider control, works as a navigator to display
3. What is the function of the CheckState property of the CheckBox control? The CheckState property gets or sets the
7. How will you pick a color from the ColorDialog box? To pick a color from the color dialog box,
1. How can we auto size a button to fit its text? The Button control has the AutoSize property, which
49. What are the different ways a method can be overloaded? The different ways to overload a method are given
43. What do you mean by data encapsulation? Data encapsulation is a concept of binding data and code in single
37. Give a brief description of properties in C# and the advantages that are obtained by using them in programs.
1. What are methods? Methods are the building blocks of a class, in which they are linked together to share
25. How has exception handling changed in .NET Framework 4.0? In .NET 4.0, a new namespace, System.Runtime.ExceptionServices, has been introduced
19. Define enumeration? Enumeration is defined as a value type that consists of a set of named values. These values
13. What is the difference between a class and a structure? Class: A class is a reference type. While instantiating
7. What are collections and generics? A collection can be defined as a group of related items that can be
1. What is object-oriented programming (OOP)? OOP is a technique to develop logical modules, such as classes that contain properties,
19. Give the syntax of using the for loop in C# code? The syntax of using the for loop in
13. What is a parameter? Explain the new types of parameters introduced in C# 4.0. A parameter is a special
.Net Programming concept interview questions7. Differentiate between the while and for loop in C#. The while and for loops are
1. Define variable and constant. A variable can be defined as a meaningful name that is given to a data
31. What is Common Language Specification (CLS)? CLS is a set of basic rules, which must be followed by each