30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1 Introduction <strong>to</strong> Computers, Internet and <strong>Visual</strong> <strong>Basic</strong> .<strong>NET</strong> 25<br />

Chapter 16—Graphics and Multimedia<br />

In this chapter, we discuss GDI+ (an extension of the Graphics Device Interface—GDI),<br />

the Windows service that provides the graphical features used by .<strong>NET</strong>. The extensive<br />

graphical capabilities of GDI+ can make programs more visual and fun <strong>to</strong> create and use.<br />

We discuss <strong>Visual</strong> <strong>Basic</strong> .<strong>NET</strong>’s treatment of graphics objects and color control, and we<br />

discuss how <strong>to</strong> draw arcs, polygons and other shapes. We use various pens and brushes <strong>to</strong><br />

create color effects and include an example demonstrating gradient fills and textures. This<br />

chapter introduces techniques for turning text-only applications in<strong>to</strong> exciting, aesthetically<br />

pleasing programs that even novice programmers can write with ease. The second half of<br />

the chapter focuses on audio, video and speech technology. We discuss adding sound, video<br />

and animated characters <strong>to</strong> programs (primarily using existing audio and video clips). You<br />

will see how easy it is <strong>to</strong> incorporate multimedia in<strong>to</strong> <strong>Visual</strong> <strong>Basic</strong> .<strong>NET</strong> applications. This<br />

chapter introduces an exciting technology called Microsoft Agent for adding interactive animated<br />

characters <strong>to</strong> a program. Each character allows users <strong>to</strong> interact with the application,<br />

using natural human communication techniques, such as speech. The agent characters accept<br />

mouse and keyboard interaction, speak and hear (i.e., they support speech synthesis and<br />

speech recognition). With these capabilities, your applications can speak <strong>to</strong> users and can<br />

even respond <strong>to</strong> their voice commands!<br />

Chapter 17—Files and Streams<br />

Imagine a program that could not save data <strong>to</strong> a file. Once the program is closed, all the<br />

work performed in the program is lost forever. For this reason, this chapter is one of the<br />

most important for programmers who will be developing commercial applications. We explain<br />

how <strong>to</strong> input and output streams of data from and <strong>to</strong> files, respectively. We present<br />

how programs read and write data from and <strong>to</strong> secondary s<strong>to</strong>rage devices (such as disks).<br />

A detailed example demonstrates these concepts by allowing the user <strong>to</strong> read and write<br />

bank account information <strong>to</strong> and from files. We introduce those classes and methods in <strong>Visual</strong><br />

<strong>Basic</strong> .<strong>NET</strong> that help perform file input and output conveniently—they demonstrate<br />

the power of object-oriented programming and reusable classes. We discuss benefits of sequential<br />

files, random-access files and buffering. This chapter is crucial for developing <strong>Visual</strong><br />

<strong>Basic</strong> .<strong>NET</strong> file-processing applications and networking applications, which also use<br />

the techniques in this chapter <strong>to</strong> send and receive data.<br />

Chapter 18—Extensible Markup Language (XML) 7<br />

The Extensible Markup Language (XML) derives from SGML (Standardized General<br />

Markup Language), which became an industry standard in 1986. Although SGML is employed<br />

in publishing applications worldwide, it has not been incorporated in<strong>to</strong> mainstream<br />

computing and information technology curricula because of its sheer size and complexity.<br />

XML is an effort <strong>to</strong> make SGML-like technology available <strong>to</strong> a much broader community. It<br />

was created by the World Wide Web Consortium (W3C) for describing data in a portable format,<br />

is one of most important technologies in industry <strong>to</strong>day and is being integrated in<strong>to</strong> almost<br />

every field. XML differs in concept from markup languages such as the HyperText<br />

Markup Language (HTML). HTML is a markup language for describing how information is<br />

rendered in a browser. XML is a language for creating markup languages for virtually any<br />

7. The reader interested in a deeper treatment of XML may want <strong>to</strong> consider our book, XML <strong>How</strong> <strong>to</strong><br />

<strong>Program</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!