Assignment of Visual Programming: Govrnment College Women University Faisalabad

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 16

GOVRNMENT COLLEGE WOMEN UNIVERSITY

FAISALABAD

ASSIGNMENT OF VISUAL PROGRAMMING


SUBMITTEDE BY SYEDA SHIFA GILLANI

ROLL NO 18328

SEMESTER 4 TH E(A)

REGISTRATION NO 2018-GCWUF-3778

DEPARTMENT COMPUTER SCIENCE


QUESTION NO 1:-
Describe the main difference between a Windows Forms
application and a Web Forms application.

Windows Forms Web Application


It consist of one or more windows and It consists of one or more web forms
runs in its own window on the client that define pages that are displayed in
PC a browser on the user’s and it runs on
a web server.

Complex. New forms of Simple. Need to convey gatherings


congregations, design documents, and design documents on the
and other required records must be worker as it were. Straightforward
conveyed on all customer machines. to the customer
Typically client association
required.
It’s performance is faster than web It’s performance is slower than
application window form application
It is easy to build It is difficult to build
This is runs on client machine This is runs on web server
When Catastrophic failure, the When Catastrophic failure, then
user interaction is required the user interaction are not
required
Frame work dependency Frame work dependency

All customer machines need to Just server needs to have .NET


introduce required adaptations of framework and other required
.NET structure and other required libraries.
libraries.

2
QUESTION NO 2:-
List two additional types of .NET applications that you
can develop with Visual Studio 2019

The two additional .NET applications of 2019 Visual studio is:-

 ASP.NET MVC

 WPF

ASP.NET MVC
“Runs on a web worker and comprises of pages that are shown in a
program on the customer machine. Not at all like ASP.NET Web Forms,
ASP.NET MVC utilizes a Model-View-Controller configuration example
to make its pages.

Features of MVC

 Simple and frictionless testability


 Full power over your HTML, Java Script , and URLs
 Influence existing ASP.Net Features
 Test-Driven Development
 Backing for equal turn of events

3
 MVC architectural Pattern

Models
Model articles are portions of the application which execute the
rationale for the application's information space. It recovers and stores
model state in an information base. For instance, item article may recover
data from an information base, work on it. At that point compose data back
to items table in the SQL worker.

Views
View are the components which are used to display the application's
user interface (UI). It displays the .Net MVC application's which is created
from the model data.
The common example would be an edit view of an Item table. It displays text
boxes, pop-ups and checks boxes based on the current state of products & object

Controller
Controllers handle user interaction, work with the model, and select
a view to render that displays Ul. In a .Net MVC app, the view only displays
information, the controller manages and responds to user input &
interaction.

4
For example, the controller manages query-string values and passes those values
to the model.

WPF
“Runs in windows on the client's PC and gives an upgraded client experience.”

Windows Presentation Foundation (WPF) and XAML consolidate into a


rich introduction framework for building Windows work area applications with
outwardly staggering client encounters that join UI, media, and complex plans
of action. Quickly create undertaking class line of business applications with a
complete arrangement of highlights like controls, information official, activity,
styles, formats and then some.

QUESTION NO 3:-
Name the two languages that you can use for rapid
application development with Visual Studio 2019.

The two languages are as following


5
 C# sharp

 Visual Programming
C# (C Sharp): -
C# is a universally useful, current and article arranged
programming language articulated as "C Sharp". It was created by
Microsoft drove by Anders Hejlsberg and his group inside the .NET
activity and was endorsed by the European Computer Manufacturers
Association (ECMA) and International Standards Organization (ISO). C# is
among the dialects for Common Language Infrastructure. C# is a ton like
Java grammatically and is simple for clients who know about C, C++ or
Java.

VISUAL BASIC: -
LIKE THE BASIC PROGRAMMING LANGUAGE, VISUAL BASIC WAS
INTENDED TO HAVE A SIMPLE EXPECTATION TO ABSORB INFORMATION.
DEVELOPERS CAN MAKE BOTH BASIC AND COMPLEX GUI APPLICATIONS.
PROGRAMMING IN VB IS A MIX OF OUTWARDLY MASTERMINDING PARTS
OR CONTROLS ON A STRUCTURE, DETERMINING PROPERTIES AND
ACTIVITIES FOR THOSE SEGMENTS, AND COMPOSING EXTRA LINES OF
CODE FOR GREATER USEFULNESS. SINCE VB CHARACTERIZES DEFAULT
CREDITS AND ACTIVITIES FOR THE SEGMENTS, A DEVELOPER CAN BUILD UP
A STRAIGHTFORWARD PROGRAM WITHOUT COMPOSING A LOT OF CODE.
PROJECTS WORKED WITH BEFORE VARIANTS ENDURED EXECUTION ISSUES,
HOWEVER QUICKER PCS AND LOCAL CODE ASSEMBLAGE HAS MADE THIS
LESS OF AN ISSUE

Characteristics of VISUAL BASIC:-

6
 Rather than being distinguished by line number alone, code might be
assembled into named subroutines or techniques: Sub. End Sub. Visual
Basic backings client included line numbers through rendition 6, or later
 Code Statements have no ending character other than a line finishing
(carriage return/line feed). Variants since at any rate VB 3.0 permitted that
announcements can be verifiably multi-line with link of strings or expressly
utilizing the underscore character (_) toward the finish of lines.
 Code remarks are finished with a solitary punctuation (') character.

QUESTION NO 4:-
Describe the two main components of the .NET
Framework.

The .NET Framework involves a huge class library called the Framework Class
Library (FCL) and the Common Language Runtime (CLR), which permits
programming applications created on the stage interoperability over different
programming dialects.
It is consisting of two main components
 COMMON LANGUAGUE RUNTIME
 CLASS LIRARY

Common Language
The Common Language Runtime is the part that executes all the projects
composed on the .NET Framework. It offers a few administrations, including:
 Memory the board, code execution and strings, aggregation, check of code
wellbeing and other framework administrations
 Executes code access security
 Performs type-wellbeing through a sort and-code confirmation foundation
called the basic kind framework (CTS) to guarantee code strength

7
 Trash assortment, for example eliminating undesirable assets that fill no
need in the library
 Normal Intermediate Language code (CIL) to permit interoperability among
the diverse programming dialects upheld on .NET Framework
 Allow worker side applications like Microsoft SQL Server to have run-time

CLASS LIBRARY
.NET Framework Class Library is the collection of the of classes, namespaces,
interfaces and worth sorts that are utilized for .NET applications.
It contains a huge number of classes that underpins the accompanying capacities.
 Base and client characterized information types
 Backing for special cases taking care of
 input/yield and stream activities
 Correspondences with the fundamental framework
 Admittance to information
 Capacity to make Windows-based GUI applications
 Capacity to make web-customer and worker applications
 Backing for making web administrations

QUESTION NO 5:-
In general terms, describe the C# compiler, Microsoft
Intermediate Language, the assembly, and the Common
Language Runtime.
8
C# Compiler:-
A compiler is a program that changes source code written in one
programming language into another programming language.
The C# code that we compose must be changed over into something that PC's
processor can comprehend. The processor is, off base, the cerebrum of the PC ,
the part that plays out the entirety of its estimations. The processor doesn't know
C#, it just comprehends machine codes.
At the point when we run the C# compiler, it takes significant level code that
comprehend by Human as an info, does some preparing, and afterward yields our
program in middle language (IL) code which is spared in *.exe or *.dll records.
Microsoft Intermediate Language; -
After the IL code is created, we actually don't have anything for our
processor to peruse on the grounds that processor just comprehend machine
code. A person or thing hence needs to change over the transitional language
code to machine codes. The name for that something is the Common Language
Runtime, or CLR.
The Assembly Language: -
Low level computing construct is a low-level programming language. It
helps in understanding the programming language to machine code. In PC, there
is constructing agent that helps in changing over the get together code into
machine code executable. Low level computing construct is intended to
comprehend the guidance and give to machine language to additional handling.
The common Language Runtime:-
CLR is a program running on your PC that deals with the execution of IL
code. In straightforward terms, it realizes how to manage IL and how to execute
programs that are written in IL code. It utilizes a without a moment to spare, or
JIT, compiler to make an interpretation of the IL code into machine code (some of
the time called "local" code). The JIT compiler is named as such in light of the fact

9
that it assembles IL code right now that the client attempts to utilize it; for
instance, when you double tap the .exe document.

QUESTION NO 6:-
Describe the use of each of these windows in the Visual
Studio IDE: Form Designer, Code Editor, and Solution Explorer

Solution Explorer: -
Solution explorer is an special window that enables you to manage the
arrangements, activities, and records. It gives a total perspective on the
documents in a project, and it enables you to add or eliminate files and to sort out
documents into subfolders.

10
As should be obvious, the venture is at the root level. Settled under it are
code records and subfolders containing pictures, information, and reports. You
can likewise get a rundown of the apparent multitude of references in the
undertaking. You use Solution Explorer to include and oversee things in ventures.

Windows Forms Designer:-


The Windows Forms Designer gives many tools for building Windows Forms
applications. This article outlines how to fabricate an application utilizing the
different instruments gave by the creator, including the following tasks:
 Organize controls utilizing snap lines.
 Achieve creator undertakings utilizing savvy labels.
 Set edges and cushioning for controls.
 Organize controls utilizing a Table Layout Panel control.
 Parcel your control's design by utilizing a Split Container control.
 Explore your format with the Document Outline window.
 Position controls with the size and area data show.
 Set property estimations utilizing the Properties window.

11
At the point when you're done, you'll have a custom control that has been
amassed utilizing a large number of the format highlights accessible in the
Windows Forms Designer. This control actualizes the (UI) for a straightforward
number cruncher.

Code Editor:-
Visual Studio Code is a lightweight however powerful source code editorial
manager which runs on your work area and is accessible for Windows, macOS and
Linux. It accompanies worked in help for JavaScript, TypeScript and Node.js and
has a rich biological system of augmentations for different dialects, (for example,
C++, C#, Java, Python, PHP, Go) and runtimes, (for example, .NET and Unity). Start
your excursion with VS Code with these initial recordings.

12
QUESTION NO 7:-
In general terms, explain what makes it possible to
select a target framework with Visual Studio 2019.

In Visual Studio, you can determine the form of .NET that you need your
venture to target. System focusing on helps ensure that the application utilizes
just usefulness that is accessible in the predetermined structure adaptation.
For .NET Framework applications to run on another PC, the system form that the
application targets must be viable with the structure form that is introduced on
the PC.

A Visual Studio arrangement can contain ventures that target various adaptations
of .NET. Notwithstanding, note that you can just form against a solitary
adaptation of .NET either utilizing reference conditionals for a solitary form or
recursively manufacture various doubles for every rendition. For more data about
objective systems, see Target structures.

Framework Targeting Features: -

13
 At the point when you make a .NET Framework venture, you can determine
the rendition of the .NET Framework that you need to target.
 You can focus on numerous structures in a solitary undertaking.
 You can focus on an alternate rendition of .NET in every one of a few
undertakings in a similar arrangement.
 You can change the rendition of .NET that a current undertaking targets.
 At the point when you change the rendition of .NET that a task targets,
Visual Studio rolls out any necessary improvements to references and
arrangement documents.
 At the point when you chip away at a task that objectives a previous system
rendition, Visual Studio powerfully changes the advancement condition, as
follows:
 It channels things in the Add New Item exchange box, the Add New
Reference discourse box, and the Add Service Reference exchange box to
discard decisions that are not accessible in the focused on form.
 It channels custom controls in the Toolbox to eliminate those that are not
accessible in the focused on form and to show the main the most
exceptional controls when different controls are accessible.
 It channels IntelliSense to exclude language includes that aren't accessible
in the focused on variant.
 It channels properties in the Properties window to discard those that aren't
accessible in the focused on form.
 It channels menu choices to preclude choices that aren't accessible in the
focused on form.
 For fabricates, it utilizes the rendition of the compiler and the compiler
choices that are proper for the focused on variant.

Select a target Frame version:-


At the point when you make a .NET Framework venture, you can choose
the objective .NET Framework adaptation after you select an undertaking layout.
The rundown of accessible systems incorporates the introduced structure forms
that are appropriate to the chosen layout type.

14
Change the target Framework:-
 In Solution Explorer, open the right-click menu for the undertaking that you
need to change, and afterward pick Properties.
 In the left column of the Properties window, pick the Application tab.

15
 In the Target Framework list, pick the rendition that you need.
 In the check exchange box that shows up, pick the Yes button.

THE END
___________________________________________________________

16

You might also like