Visual Basic 6 Black Book:The Visual Basic Development Environment
function GetCookie (name)
{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen)
{
var j = i + alen;
if (document.cookie.substring(i, j) == arg) {
var end = document.cookie.indexOf (";", j);
if (end == -1)
end = document.cookie.length;
return unescape(document.cookie.substring(j, end));
}
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
var m1='';
var gifstr=GetCookie("UsrType");
if((gifstr!=0 ) && (gifstr!=null)) { m2=gifstr; }
document.write(m1+m2+m3);
Keyword
Title
Author
ISBN
Publisher
Imprint
Brief
Full
Advanced Search
Search Tips
Please Select
-----------
Components
Content Mgt
Certification
Databases
Enterprise Mgt
Fun/Games
Groupware
Hardware
IBM Redbooks
Intranet Dev
Middleware
Multimedia
Networks
OS
Prod Apps
Programming
Security
UI
Web Services
Webmaster
Y2K
-----------
New Titles
-----------
Free Archive
To access the contents, click the chapter and section titles.
Visual Basic 6 Black Book
(Publisher: The Coriolis Group)
Author(s): Steven Holzner
ISBN: 1576102831
Publication Date: 08/01/98
function isIE4()
{
return( navigator.appName.indexOf("Microsoft") != -1 && (navigator.appVersion.charAt(0)=='4') );
}
function bookMarkit()
{
var url="http://www.itknowledge.com/PSUser/EWBookMarks.html?url="+window.location+"&isbn=0";
parent.location.href=url;
//var win = window.open(url,"myitk");
//if(!isIE4())
// win.focus();
}
Search this book:
Previous
Table of Contents
Next
Setting A Projects Version Information
Five years from now, a user stumbles across your EXE file, which youve conveniently named CDU2000.exe. This makes perfect sense to youwhat else would you name the EXE file for a utility named Crop Dusting Utility 2000? However, the user is a little puzzled. How can he get more information directly from the EXE file to know just what CDU2000.exe does? He can do that by interrogating the files version information.
A programs version information includes more than just the version number of the program; it also can include the name of the company that makes the software, general comments to the user, legal copyrights, legal trademarks, the product name, and the product description. All these items are available to the user, and if youre releasing your software commercially, you should fill these items in. Heres how you do it:
1. Open the Project Properties box in Visual Basic now by selecting the Properties item in the Project menu.
2. Select the Make tab, as shown in Figure 2.19.
Figure 2.19 Setting a projects version information.
3. Fill in the information you want, including the programs version number, product name, and so on.
4. Create the EXE file, which in our case is CDU2000.exe, using the Make CDU2000.exe item in the File menu.
5. To look at the version information in CDU2000.exe, find that file in the Windows Explorer and right-click the file, selecting Properties from the pop-up menu that opens. As you can see in Figure 2.20, our version informationincluding the name of the productappears in the Properties box.
Figure 2.20 Reading a programs version information.
Sometimes, version information is all that users have to go on when they encounter your program, so be sure to include it before releasing that product.
Setting An EXE Files Name And Icon
Youre about to release your software commercially, but you suddenly realize that Project1.exe might not be the best name for your products executable file. The stockholders meeting is in five minuteshow can you change your EXE files name?
To set the EXE files name, you just set the projects name. Heres how you do it:
1. Select the Properties item in the Project menu to open the Project Properties box, as shown in Figure 2.21.
Figure 2.21 Setting a projects name.
2. Select the General tab in the Project Properties box (if its not already selected).
3. Enter the name of the project you want to use, such as CDU2000 in Figure 2.21.
4. The projects name will become the name of the EXE file when you create it with the Make CDU2000.exe item in the File menu.
Now youve named your EXE file, but how do you set the programs icon that will appear in Windows? The programs icon is just the icon of the startup form, and you can set that by setting that forms Icon property in the Properties window. If you have a new icon in ICO file format, you can load that icon right into that form by setting the forms Icon property to the ICO file name.
Displaying The Debug, Edit, And Form Editor Toolbars
By default, Visual Basic displays one toolbar, the standard toolbar. However, there are other toolbars availablethe Debug, Edit, and Form Editor toolbars. If you want them, you add those toolbars with the Toolbars submenu of the Visual Basic View menujust click the new toolbar you want to add. You can also remove one or all toolbars the same way.
The Debug toolbar has the following buttons:
Start
Break
End
Toggle Breakpoint
Step Into
Step Over
Step Out
Locals Window
Immediate Window
Watch Window
Quick Watch
Call Stack
The Edit toolbar includes these buttons:
List Properties/Methods
List Constants
Quick Info
Parameter Info
Complete Word
Indent
Outdent
Toggle Breakpoint
Comment Block
Uncomment Block
Toggle Bookmark
Next Bookmark
Previous Bookmark
Clear All Bookmarks
The Form Editor toolbar includes these buttons:
Bring To Front
Send To Back
Align
Center
Width
Lock Controls
The Debug, Edit, and Form Editor toolbars appear from left to right in the top toolbar in Figure 2.22.
Figure 2.22 Visual Basic with the Debug, Edit, and Form toolbars.
Previous
Table of Contents
Next
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc.
All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited.
Wyszukiwarka
Podobne podstrony:
2010 01 02, str 059 063059 063Hardwell On Air 063v 03 059059 ENGLISHB 70 059 by Salsakidv 01 059A 70 059 by ZeeI F 059więcej podobnych podstron