Search In Site

29 June, 2013

Adding ActiveX Controls To DHTML Pages In Visual Basic

Adding ActiveX Controls To DHTML Pages You can add ActiveX controls to DHTML pages just as you can to standard Visual Basic projects just use the Project Components menu item to open the Components dialog box and select the ActiveX control you want to add. Then just add that control to the Web page as you would in any standard Visual Basic project. For example, we add a standard HTML button and a progress bar ActiveX control to the Web page, Here’s the HTML code that the Page Designer adds to our Web page when we add those two new...

Adding HTML Controls To DHTML Pages In Visual Basic

Adding HTML Controls To DHTML PagesUsing the Visual Basic DHTML Page Designer, you can add the standard HTML controls to a Web page: buttons, Submit buttons, Reset buttons, text fields, text areas, password fields, option buttons, checkboxes, select controls, file upload controls, hidden fields, and lists. As you can see, the whole HTML control set is here, and you can use these controls with Visual Basic just as you would in a...

How to Create DHTML Pages In Visual Basic

Creating DHTML PagesThe Testing Department is on the phone. You may have heard of the company’s Web site crash they need to redesign the company Web page. From scratch. Can you do it? You start up Visual Basic sure, you say, no problem. You can use Visual Basic to design dynamic HTML pages. To do that, just select the Dynamic HTML Application item in the Visual Basic New Project dialog box. This opens the DHTML Page Designer.In...

28 June, 2013

How To Create Web Browser In Visual Basic

Web Browser In Visual Basic. If you have the Microsoft Internet Explorer installed, you can build Web browsers using Visual Basic.Microsoft has packaged the Internet Explorer in a control, the WebBrowser control, and we’ll be able to use that control to create a Web browser in this chapter that supports such browser functionality as Back, Forward, Home, Stop, and Refresh buttons. We’ll also let the user specify what URL to navigate to...

How To Create An ActiveX Document In Visual Basic

Creating An ActiveX Document The Testing Department is calling again. The ActiveX controls you’ve been building are fine, but what about going on to the next step? How about creating an ActiveX document? You ask, why are ActiveX documents the next step? Because, they say, although ActiveX controls can appear in Web pages, ActiveX documents can be Web pages.  That is, an entire Visual Basic form with all its controls can now appear in your...

Creating ActiveX Controls in Vb

ActiveX ControlsWe have seen ActiveX controls throughout the book those are the controls you can add to the Visual Basic toolbox using the Components dialog box. You can add those controls to a Visual Basic program like any other control. You can also use ActiveX controls on the Internet, embedding them in your Web pages, as we’ll see when we work on creating ActiveX controls. ActiveX controls can support properties, methods, and events. Your ActiveX control can be built entirely from scratch (in other words, you’re responsible for its appearance),...

Print Dialog Box in Visual Basic

Using The Print Dialog Box The Testing Department is calling again. The Print button you’ve placed in your word processor, Super Duper Text Pro, is very nice, but it doesn’t let the user set the number of copies of a document they want to print. You can’t do that with a button, you explain. Right, they say use a Print dialog box.You show the Print dialog box with the Common Dialog control’s ShowPrinter method. If you know your document’s length,...

27 June, 2013

How To Show Windows Help From A Visual Basic Program

Showing Windows Help From A Visual Basic Program You can display a Windows Help file (.hlp) with the Common Dialog control's ShowHelp method. To use this method, you first set the Common Dialog control's HelpCommand property to one of the following settings, and the HelpFile property to the actual name of the Help file to open. Here are the possible settings for HelpCommand: " cdlHelpCommand_&H102&; executes a Help macro. " cdlHelpContents_&H3&;...

How To Use Font Dialog Box in Visual Basic

Using A Font Dialog Box The Testing Department is calling again. Your new word processor, SuperDuperTextPro, is great, but why can't the users select the font they want to use? You ask, should they be able to do that? The Testing Department says, take a look at the Font dialog box. You use the Common Dialog control's ShowFont method to show a Font dialog box. Note that before you use the ShowFont method, you must set the Flags property of the...

 
Twitter Bird Gadget