PF101 Week-11-12 - Working With .NET Framework and MDI

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 17

Week 11-12

Working with .NET Framework


and Multi Document Interface
PF101 - OBJECT ORIENTED PROGRAMMING
LESSON 9 – Working with .NET Framework

At the end of the session, the students should be able to:


Week 11
1. Define Visual Basic .Net Framework
2. Explain the uses of Snippets and My Components
3. Enumerate different Classes
4. Demonstrate Drawing.
Week 12
5. Define different Printing Controls and Methods in .Net
Framework
6. Demonstrate how to Handle different Strings and Characters

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 2
Week 11-12 – Working with .NET Framework

.NET Framework
The .NET framework is a software
development framework from Microsoft. It
provides a controlled programming
environment where software can be
developed, installed and executed on
Windows-based operating systems.

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 3
Week 11-12 – Working with .NET Framework

• Language Independence: Common language


infrastructure specifications (CLI) allow for
the exchange of data types between two
programs developed in different languages.
• Base Class Library: A library of code for most
common functions--used by programmers to
avoid repetitive rewriting of code.

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 4
Week 11-12 – Working with .NET Framework

• Ease of Deployment: There are tools to


ensure the ease of installing programs
without interfering with previously installed
applications.
• Security: Programs developed in .NET are
based on a common security model.

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 5
Week 11-12 – Working with .NET Framework

.NET is central to Microsoft’s over-arching


development strategy and is the
organization’s competition to Java. It is so
central to development on Windows
platforms, the term’s usage depends on
context.

Even though the term is written as “.NET”, it is not an


acronym. It is pronounced as “dot net” and is sometimes
written as dotnet or dot-net.

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 6
Week 11-12 – Working with .NET Framework
Components of .Net Framework
There are many articles are available in the web on
this topic; I just want to add one more article over
the web by explaining Components of .Net
Framework.

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 7
Week 11-12 – Working with .NET Framework

.NET Framework is a platform that provides


tools and technologies to develop Windows,
Web and Enterprise applications. It mainly
contains two components,

⮚Common Language Runtime (CLR)


⮚.Net Framework Class Library.

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 8
Week 11-12 – Working with .NET Framework

MULTI DOCUMENT INTERFACE (MDI)


- was designed to simplify the exchange of information among
documents, all under the same roof. With the main application, you can
maintain multiple open windows, but not multiple copies of the
application.

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 9
Week 11-12 – Working with .NET Framework

An MDI application must have at least two Form, the parent Form and
one or more child Forms. Each of these Forms has certain properties.
There can be many child forms contained within the parent Form, but
there can be only one parent Form.

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 10
Week 11-12 – Working with .NET Framework

Printing
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostback)
{
Literal myText = new Literal()
{
Text = "some text"
};
Content2.Controls.Add(myText);
}}

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 11
Week 11-12 – Working with .NET Framework

<%=Response.Write("some text") %>

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 12
Week 11-12 – Working with .NET Framework

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 13
Week 11-12 – Working with .NET Framework

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 14
Week 11-12 – Working with .NET Framework

• You can use the Option Compare statement to set


whether strings are compared using a case-
insensitive text sort order determined by your
system's locale (Text) or by the internal binary
representations of the characters (Binary). The
default text comparison method is Binary.
• Example

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 15
Week 11-12 – Working with .NET Framework

PF101 - OBJECT ORIENTED PROGRAMMING


PF101 – OBJECT ORIENTED PROGRAMMING 16
PF101 - OBJECT ORIENTED PROGRAMMING 17

You might also like