CHAPTER1
3
The Windows Graphical User Interface
Microsoft Windows uses a
graphical user interface
, or
GUI
(pronounced“gooey”). The Windows GUI defines how the various elements look and function.As a Visual Basic programmer, you have available a toolbox of these elements.You will create new windows, called
forms
. Then you will use the toolbox to addthe various elements, called
controls
. The projects that you will write follow aprogramming technique called
object-oriented programming (OOP)
.
Figure 1.2
A Web Form application created with Visual Web Developer,running in a browser.
Programming Languages—Procedural, Event Driven,and Object Oriented
There are literally hundreds of programming languages. Each was developed tosolve a particular type of problem. Most traditional languages, such as BASIC,C, COBOL, FORTRAN, PL/I, and Pascal, are considered
procedural
lan-guages. That is, the program specifies the exact sequence of all operations. Pro-gram logic determines the next instruction to execute in response to conditionsand user requests.The newer programming languages, such as Visual Basic, C#, and Java, usea different approach: object-oriented programming. As a stepping stone betweenprocedural programming and object-oriented programming, the early versions of Visual Basic provided many (but not all) elements of an object-oriented language.For that reason, Microsoft referred to Visual Basic (version 6 and earlier) as anevent-driven programming language rather than an object-oriented language. Butwith Visual Studio, which includes Visual Basic, C#, and F#, we have pro-gramming languages that are truly object oriented. (Another language, C++, haselements of OOP and of procedural programming and doesn’t conform fully to ei-ther paradigm.) F#, introduced in 2007, applies the object-oriented paradigm toscripting languages for cross-platform development.