Category Archive for: Visual Basic and the Web

Using the Rates Control

Before examining the actual code of the control, let’s see how it’s used in the test project. The test project consists of a single Form that contains an instance of the Rates control and a.Command button. When the button is clicked, the control contacts a Web server and requests the exchange rates of various currencies. The code behind…

Read More →

The, Location Object

The Location object applies to the Wmdow and Frames objects and provides information about the window’s (or frame’s) current URL. You’ve already seen examples of the Location object, hut we haven’t looked at all its properties yet. Here are all the properties of the Location object. The Location object’s properties return information about the URL of the current document.…

Read More →

Loading and Rendering Files

The code of the IITMLEditor application has two more interesting procedures. The Save command on the File menu stores the contents of the RichTextBox control (thE HTML source code) to a disk file with the Savef’ile method of the RichTextBox control. The HfMl, source code is saved as  text with the following procedure: The Open command is a…

Read More →

VB6 at Work: The HTMLEditor Project

The HTMLEditor project is the simplest HfML editor you can imagine. It consists of two panes, which can be resized at runtime with the mouse (see Figure 21.11) The upper pane is a RichTextBox control; where you can enter HfML code. The lower pane is a WebBrowser control, where the HTML code is rendered. The HTMLEditor project (you’ll find…

Read More →

The Methods of the Document Object

The Document object supports a few methods as well, which let you manipulate its contents. The Document object’s methods manipulate the contents of the current document. Open Thismethod opens the document for output The current document  cleared, and new strings can be placed on the document with the Write and Write methods. Write string This method writes the string…

Read More →

VB6 at Work: The Cookie Page

To store a string on the client computer’s system and access it from another page or to access it the next time the page is opened, use the Cookie property, as outlined in the Cookie page. The Cookie page, shown in Figure 21.8, is a revision of the Pagel page. This time we prompt the user for his…

Read More →

The Methods of the Scripting Objects

The scripting objects also have methods. The Document object, for example, provides the Write method, which lets your script place text directly on the Web page. In other words, with the Write method you can create Web pages on the fly. The Write method displays a string on the current page. The following statement: Document.Write Date() displays the…

Read More →

The IE Scripting Object Model

The Scripting Model is a hierarchy of objects through which you can access the properties of HfML documents displayed in the browser and the properties of the browser itself. The model’s organization is similar to the organization of the Database Access objects, which were covered in Chapter 17, Database Programming with VtSwU Basic. H you read Chapter 17,you have…

Read More →

Using Hyperlinks in Visual basic Applications

What makes Web pages tick is the hypertext mode! they use to connect to other pages, anywhere on the World Wide Web. Although you can access the functionality of Web technology from within your Visual Basic applications with objects such as the WebBrowser and InternetExplorer, you still can’t exploit this tecl:nology by making itan integral part of you Visual…

Read More →

Using the WebBrowser Control

You can use the WebBrowser control to build customized Web browsers, because it supports all the browsing functionality of Internet Explorer. You can implement the Back and Forward buttons of Internet Explorer with the GoBack and GoForward methods, capture the jumps to hyperlinks, control which sites the user of the application can visit, and so on.Of course, the…

Read More →

Back to Top