Showing posts with label VB.net. Show all posts
Showing posts with label VB.net. Show all posts
Monday, January 11, 2016
Saturday, January 09, 2016
What do you mean by Common Language Runtime (CLR)?
Solution:-
The Common Language Runtime (CLR), is the runtime environment
of the .NET framework, which manages the execution of code and provides
services. It has five components namely:
·
CTS - Common Type
System
·
CLS - Common
Language Specification
·
CIL - Common
Intermediate Language
·
JIT -
Just in Time Compiler
·
VES - Virtual
Execution System
The .NET Framework is an integral Windows component that supports
building and running the next generation of applications and XML Web services.
The .NET Framework has two main components: the common language runtime (CLR)
and the .NET Framework class library.
CLR is the foundation of the .NET Framework. It runs the code and
provides services that make the development process easier.Thus, we need .NET
Framework to support our .NET application to run on the target machine.
We need the .net framework on the machine to run our application or
software based on .net. For example, As we need JVM where ever we want to run
java applications, right same as .net it require CLR and .net framework on the
machine Java and .net are Platform Independent, not JVM and Nor CLR.
What are the different types of access specifier in VB.Net ?
Solution:-
Friend:-
Access
specifiers describe the accessibility scope of a variable, method or a class.
By using access specifiers we can control the scope of the member object of a
class. Access specifiers were used for providing security of our applications.
In Visual Basic .Net there are five access specifiers and they are as follows:
Public:-
Public:-
It have no restriction on accessibility. We can use the public
members from any were inside the class or outside the class.
Private:-
Private:-
Their accessibility scope is limited to only inside the class
in which they are declared. We can't access the Private members from outside
the class and it is the least permissive access level.
Protected:-
Protected:-
The protected members have scope of accessibility within the
class and classes derived(Inherited) from that class.
Friend:-
Friend members have the accessibility scope from the same
assembly and program that contain their declarations.
Protected Friend:-
Protected Friend:-
It behave like both protected and friend access
specifiers. We can access the protected friend member from anywhere in same assembly
and the classes inherited from the same class.
List out the major 5 toolbox object with function in VB.Net?
Solution:-
Label:-
Labels are those controls that are used to display text in other parts of the application. They are based on the Control class. Notable property of the label control is the text property which is used to set the text for the label.
Labels are those controls that are used to display text in other parts of the application. They are based on the Control class. Notable property of the label control is the text property which is used to set the text for the label.
Button:-
One of the most popular control in Visual Basic is the Button Control (previously Command Control). They are the controls which we click and release to perform some action. Buttons are used mostly for handling events in code, say, for sending data entered in the form to the database and so on. The default event of the Button is the Click event and the Button class is based on the ButtonBase class which is based on the Control class.
One of the most popular control in Visual Basic is the Button Control (previously Command Control). They are the controls which we click and release to perform some action. Buttons are used mostly for handling events in code, say, for sending data entered in the form to the database and so on. The default event of the Button is the Click event and the Button class is based on the ButtonBase class which is based on the Control class.
ListBox:-
The ListBox control displays a list of items from which we can make a selection. We can select one or more than one of the items from the list. The ListBox control is based on the ListControl class which is based on the Control class. The image below displays a ListBox.Notable Properties of the ListBox
The ListBox control displays a list of items from which we can make a selection. We can select one or more than one of the items from the list. The ListBox control is based on the ListControl class which is based on the Control class. The image below displays a ListBox.Notable Properties of the ListBox
ComboBox:-
ComboBox is a combination of a TextBox and a ListBox. The ComboBox displays an editing field (TextBox) combined with a ListBox allowing us to select from the list or to enter new text. ComboBox displays data in a drop-down style format. The ComboBox class is derived from the ListBox class. Below is the Image of a ComboBox.
ComboBox is a combination of a TextBox and a ListBox. The ComboBox displays an editing field (TextBox) combined with a ListBox allowing us to select from the list or to enter new text. ComboBox displays data in a drop-down style format. The ComboBox class is derived from the ListBox class. Below is the Image of a ComboBox.
Checkbox:-
CheckBoxes are those controls which gives us an option to select, say, Yes/No or True/False. A checkbox is clicked to select and clicked again to deselect some option. When a checkbox is selected a check (a tick mark) appears indicating a selection. The CheckBox control is based on the TextBoxBase class which is based on the Control class. Below is the image of a Checkbox.
CheckBoxes are those controls which gives us an option to select, say, Yes/No or True/False. A checkbox is clicked to select and clicked again to deselect some option. When a checkbox is selected a check (a tick mark) appears indicating a selection. The CheckBox control is based on the TextBoxBase class which is based on the Control class. Below is the image of a Checkbox.
Thursday, December 24, 2015
How to check Positive or Negative Number in VB.Net (Nepali)?
How to create simple calculator in VB.Net (Nepali)?
Tuesday, December 01, 2015
What are the major feature of .Net Framework?
Interoperability
:-
Because computer systems commonly require
interaction between new and older applications, the .NET Framework provides
means to access functionality that is implemented in programs that execute
outside the .NET environment. Access to COM components is provided in the
System.Runtime.InteropServices and System.EnterpriseServices namespaces of the
framework; access to other functionality is provided using the P/Invoke
feature.
Common Runtime
Engine :-
The Common Language Runtime (CLR) is the execution engine of
the .NET Framework. All .NET programs execute under the supervision of the CLR,
guaranteeing certain properties and behaviors in the areas of memory
management, security, and exception handling.
Language Independence
:-
The .NET Framework introduces a Common Type System, or CTS.
The CTS specification defines all possible data types and programming
constructs supported by the CLR and how they may or may not interact with each
other conforming to the Common Language Infrastructure (CLI) specification.
Because of this feature, the .NET Framework supports the exchange of types and
object instances between libraries and applications written using any
conforming .NET language.
Base Class
Library :-
The Base Class Library (BCL), part of the Framework Class
Library (FCL), is a library of functionality available to all languages using
the .NET Framework. The BCL provides classes which encapsulate a number of
common functions, including file reading and writing, graphic rendering,
database interaction, XML document manipulation and so on.
Simplified Deployment :-
The .NET Framework includes design features and tools that
help manage the installation of computer software to ensure that it does not
interfere with previously installed software, and that it conforms to security
requirements.
Security :-
The design is meant to address some of the vulnerabilities,
such as buffer overflows, that have been exploited by malicious software.
Additionally, .NET provides a common security model for all applications.
Portability :-
The design of the .NET Framework allows it to theoretically
be platform agnostic, and thus cross-platform compatible. That is, a program
written to use the framework should run without change on any type of system
for which the framework is implemented. While Microsoft has never implemented
the full framework on any system except Microsoft Windows, the framework is
engineered to be platform agnostic, and cross-platform implementations are
available for other operating systems.
Microsoft submitted the specifications for the Common
Language Infrastructure (which includes the core class libraries, Common Type
System, and the Common Intermediate Language), the C# language, and the C++/CLI
language to both ECMA and the ISO, making them available as open standards.
This makes it possible for third parties to create compatible implementations
of the framework and its languages on other platforms.
Subscribe to:
Posts
(
Atom
)