
Choosing Colors for Custom Components
When creating a custom user interface component, you often face the problem of deciding what colors to use while drawing the component on the screen. However, to a large extent,

When creating a custom user interface component, you often face the problem of deciding what colors to use while drawing the component on the screen. However, to a large extent,

To test whether an argument passed to a procedure is an object or something else, use the IsObject function in place of the VarType function. Consider this routine: Sub TestType(arg

To write reusable routines that work with multiple types of controls, test the control type using the TypeName function in place of the TypeOf…Is statement. For example, take a look

You can use the SysInfo control, distributed with VB5 and VB6, to write applications that can sport the Windows logo and that can behave intelligently when a system setting changes.

The SysInfo control lets you resize your forms to take any taskbar into account. For example, you might want to move and resize your form so it always appears at

Question: Let’s say I have a table (table1) with 100 unique ID numbers, each belonging to one of five categories. On another table (table2) I have a whole lot of

Question: I have a problem with one of my VB applications.This application has 40-50 forms, modules, and reports. My PC is configured with Windows 98, Pentium II 300 MhZ, and

Question: Does Netscape Navigator 4.5 offer a function similar to Internet Explorer’s createElement? I’d like to add an option to a listbox using client scripting. Answer: Netscape Navigator does not

Question: is there a way I can programmatically copy directories from one drive to another? Answer: The easiest way to do it is by using the File Scripting objects exposed

Question: How can i find out the week number of the year in Visual Basic? Answer: This is easy to do using the DateDiff function. The DateDiff function can calculate

Question: I wish to add my application to the popup menu that you get in Windows 95/98. I am referring to the menu that pops up whenever you click on

Question: I am trying to hide my application from the task manager in Windows NT 4.0. I have tried registering the app as a service, but this appears to have

Question: I have an app that has an MDI form (MDIForm1), one MDIChild form (Form1), and one standard form (Form2). I would like to make Form2 a floating one so

Question: I am creating an ActiveX DLL and I want to be able to fire events that can be cancelled similiarly to cancelling the Unload event for a form. however,

Question: I work for a VAR selling a SQL physician pratice management software product. My competition is a program that uses Foxmed Pro. What advantages does each product have, if,

Question: I have a Visual FoxPro 5.0a application running on Windows NT 4.0 workstation on all machines. Most of the stores have at least two workstations using peer-to-peer networking. The

Question: How can I freeze the left-most column in a multicolumn grid? Normally when you scan records to the right side of the grid, you lose the information on the

Bare pointers can sometimes be used to iterate through the elements of a container: #include #include using namespace std;void hack(){ vector vi; vi.push_back(5); int *p = vi.begin();//bad programming practice, although

It’s often desirable to replace a class or method with one that provides similar or identical functionality. This could be because the implementation has been improved, or simply because a

Many Web sites publish useful data that you may want to retrieve and post on your own Web pages. The Microsoft Internet Transfer Control (Inet) provides a way for your

Question: I’m a database administrator for a medium-sized company. I would like to be able to retrieve the names of the tables within the company’s database using SQL so that

Question: I want to create a function that will calculate four values. I want to return these four values as an array back to an array in the main procedure.

Question: select issuelog.analysts,issuelog.helpdesk,isssuelog.issue.issuelog.customer.issuelog.status.issuelog.logged,issuelog.date FROM issuelogWHERE(((issuelog.date)like “*24/01/99*”))ORDER BY issuelog.helpdesk; How do I get it to search for a series of dates, such as the 24th, 25th, 26th etc., in one query?

Question: Is it possible for a running program to dynamically create/add a menu or add a specific item to an existing menu based on an action by the program user?

Question: I have a statement: “Select * from table order by price DESC” but I want only the top 50 price products, not all the list ordered by price. How

Question: I created a view that does a lot of calculations and references several tables. If I do a select * from linkview everything comes up instantaneosly. However, if I

Question: I have data that is broken into multiple tables depending on the month. For example: 99jan table99feb table These tables are all built the same and are very large

Question: I want to use replication between two SQL servers in which I used Identity properties in some tables. How can I preserve data integrity and maintain my application functionality

Question: I want to run my VB5 app with different parameters, for example, like this: c:Myapp.exe -C to run in a mode I want to call “config-mode.” Is this possible

Question: Where is the install builder (how to make the app standalone)? Answer: PowerBuilder 6+ includes the install shield lite edition, which you can use to build installation scripts for