Академический Документы
Профессиональный Документы
Культура Документы
.NET Framework is a complete environment that allows developers to develop, run, and deploy the
following applications:
Console applications
Windows Forms applications
Windows Presentation Foundation (WPF) applications
Web applications (ASP.NET applications)
Web services
Windows services
Service-oriented applications using Windows Communication Foundation (WCF)
Workflow-enabled applications using Windows Workflow Foundation (WF)
.NET Framework also enables a developer to create sharable components to be
used in distributed computing architecture. NET Framework supports the objectoriented programming model for multiple languages, such as Visual Basic, Visual
C#, and Visual C++. .NET Framework supports multiple programming languages
in a manner that allows language interoperability. This implies that each
language can use the code written in some other language.
16. Explain the basic features of OOPs. The following are the four basic features of OOP:
Abstraction - Refers to the process of exposing only the relevant and essential data to the users
without showing unnecessary information.
Encapsulation - Prevents the data from unwanted access by binding of code and data in a single unit
called object.
Inheritance - Promotes the reusability of code and eliminates the use of redundant code. It is the
property through which a child class obtains all the features defined in its parent class. When a class
inherits the common properties of another class, the class inheriting the properties is called a derived
class and the class that allows inheritance of its common properties is called a base class.
a RTF (Rich Text Format) file and load value of RTF file to the
RichTextBox control.
22. What does the OpenFile() method of the OpenFileDialog
control do?
The OpenFile() method opens the file selected by the user with read-only
permission. The file is specified by the FileName property.
23. How can you attach a horizontal scroll bar with the ListBox control?
You need to set the the MultiColumn property of the ListBox control to True to attach a horizontal
scroll bar with it.
24. What is the use of the Panel control? Does it display at runtime?
Panels acts as a container to group other controls. It is an important control, when you want to
show/hide a group of controls and relocate a number of controls simultaneously. When you generate
a new control at runtime, it works as a container control. As we know, it is a container control;
therefore, it is not displayed at runtime.
25. What is die difference between a CheckBox control and a RadioButton control?
A CheckBox control is square shaped; whereas, a RadioButton control is round in shape. Moreover,
you can select more than one CheckBox control from a group of CheckBox controls; whereas, you
can select only a single RadioButton control from a group of RadioButton controls.
26. What are the three states set in the CheckState property of CheckBox?
Checked
Unchecked
Indeterminate
27. How can you display an icon at runtime on the StatusStrip control?
The following code snippet shows the code to display an icon at runtime on the StatusStrip control:
toolStripStatusLabel2.Image = Bitmap.FromFile("D:\\Indiabix\\Images\\1.bmp");
28. What is the difference between a ListBox control and a ComboBox control?
With a ListBox control, the user can only make a selection from a list of items; whereas, with a
ComboBox control, the user can make a selection from the list of items as well as can add custom
entry and select the same.