8/6/08

Figure 3 Toolbox window with its controls available commonly.

Control Description
  1. Pointer : used to interact with the controls on the form
  2. PictureBox : used to display images
  3. TextBox : used to accept user input which can display only editable text
  4. Frame : used to group other controls
  5. CommandButton : used to initiate an action by pressing on the button
  6. CheckBox : used to do a choice for user (checked or unchecked)
  7. OptionButton : used in groups where one at a time can be true
  8. ListBox : used to provide a list of items
  9. ComboBox : used to provide a short list of items
  10. HScrollBar : a horizontal scrollbar
  11. VScrollBar : a vertical scrollbar
  12. Timer : used to perform tasks in specified intervals.
  13. DriveListBox : used to access to the system drives
  14. DirListBox : used to access to the directories on the system
  15. FileListBox : used to access to the files in the directory
  16. Shape : used to draw circles, rectangles, squares, ellipses
  17. Line : used to draw lines
  18. Image : used to display images. But less capability than the PictureBox
  19. Data : used to connect a database
  20. OLE : used to interact with other windows applications
  21. Label : used to display texts which cannot be edited

Project -Project 1

The window titled Project -Project 1 is called the project explorer which contains the project files Property window displays the properties of a form or a control. Properties are attributes such as size, name etc. as well as the form all the controls have its own set of properties Toolbox window contains a set of controls which are used to customize forms. Using this controls user can create an interface between user and the application

Figure 2 Standard Exe project

Getting started

To open the Visual Basic environment and to work with it select and click on Microsoft Visual Basic 6.0 in the start menu. When Visual Basic is loaded the New Project dialog shown in figure 1.1 will be displayed with the types available in Visual Basic. You can notice that Standard Exe is highlighted by default. Standard Exe allows the user to create standard executable. Standard executable is a type which has most of the common features of Visual basic.

Visual basic 6. 0

Visual basic is a high level programming language developed from the earlier DOS version called BASIC. Although Visual Basic .NET is the dominator in the current IT trend, Visual basic 6. 0 hasn't lost it's powerful status among the programmers. Visual Basic was developed from the BASIC programming language. In the 1970s, Microsoft started developing ROM-based interpreted BASIC for the early microprocessor-based computers. In 1982, Microsoft QuickBasic revolutionized Basic and was legitimized as a serious development language for MS-DOS environment. Later on, Microsoft Corporation created the enhanced version of BASIC called Visual Basic for Windows. Visual Basic is an event-driven programming language. This is called because programming is done in a graphical environment unlike the previous version BASIC where programming is done in a text only environment and executed sequentially in order to control the user interface. Visual Basic enables the user to design the user interface quickly by drawing and arranging the user elements. Due to this spent time is saved for the repetitive task.

8/1/08

Are Java and JavaScript the Same? NO! Java and JavaScript are two completely different languages in both concept and design! Java (developed by Sun Microsystems) is a powerful and much more complex programming language - in the same category as C and C++.

What can a JavaScript Do?

  1. JavaScript gives HTML designers a programming tool - HTML authors are normally not programmers, but JavaScript is a scripting language with a very simple syntax! Almost anyone can put small "snippets" of code into their HTML pages
  2. JavaScript can put dynamic text into an HTML page - A JavaScript statement like this: document.write("

    " + name + "

    ") can write a variable text into an HTML page
  3. JavaScript can react to events - A JavaScript can be set to execute when something happens, like when a page has finished loading or when a user clicks on an HTML element
  4. JavaScript can read and write HTML elements - A JavaScript can read and change the content of an HTML element
  5. JavaScript can be used to validate data - A JavaScript can be used to validate form data before it is submitted to a server. This saves the server from extra processing
  6. JavaScript can be used to detect the visitor's browser - A JavaScript can be used to detect the visitor's browser, and - depending on the browser - load another page specifically designed for that browser
  7. JavaScript can be used to create cookies - A JavaScript can be used to store and retrieve information on the visitor's computer

Basic

JavaScript is THE scripting language of the Web. JavaScript is used in millions of Web pages to add functionality, validate forms, detect browsers, and much more. JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, and Opera. What is JavaScript?

  • JavaScript was designed to add interactivity to HTML pages
  • JavaScript is a scripting language
  • A scripting language is a lightweight programming language
  • A JavaScript consists of lines of executable computer code
  • A JavaScript is usually embedded directly into HTML pages
  • JavaScript is an interpreted language (means that scripts execute without preliminary

compilation)

  • Everyone can use JavaScript without purchasing a license