devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Autoforwarding to an Outside Address

Question: How do I set up forwarding in Exchange? I have a user who wants all mail coming into his current Exchange e-mail box to be forwarded to a personal

You Cannot Pass the Window Handle in ASP

Question: Is there a way to determine the Window Handle (hWnd) in an Active Server Page? I am calling an ActiveX DLL from ASP written in Visual Basic and need

Display Graphics Using the colorDepth Property

Browsers Targeted: Internet Explorer 4+ Designing effective Web graphics is always a challenge?you want to provide the best looking graphics on all platforms, but when one person runs their browser

Display Local Date and Time

Question: JavaScript’s date() function gives the user’s computer date and time. How do I display my local date and time on my Web page regardless of where the user surfs

IE and Netscape Cache Components

Question: Is there any way to cache a .js file at the client, just like an image file, to reduce the number of trips to the server? Answer: You don’t

Cannot Flash Window’s Title Bar Using JavaScript

Question: How can I make the title bar of a window flash? Answer: This can’t be done using JavaScript. Most browsers delegate the responsibility for how their windows are displayed

Using More Than One OnLoad Command

Question: Is it possible to use more than one onLoad command in my tag? Answer: Sure. Like other event handlers, the onLoad event handler you’re including within the tag on

Redirect More Efficiently in IIS 5

If you are using Internet Information Server version 5, you can redirect browsers to a new page more efficiently. In IIS 4, you had to use Response.Redirect as in this

Iterate Through Control Arrays

When you need to iterate through all the elements of a control array, use this code: Dim J As IntegerFor J = Text1.LBound to Text1.Ubound With Text1(J) ‘ Work here…

Insert Soft Breakpoints

If you want to step through the code behind a certainscreen element at run time, you might do something like this in break mode: Hit Ctrl-Break from run mode, use

Split Strings Cleanly

The Split function is great for parsing strings, but what happens when a string has more than one consecutive delimiter? It might seem odd that Split() returns empty substrings as

Change the Gray Applet Background

Applets use a default background of gray, which may not be visually appealing to you. Besides, gray may be the background color of the web page on which the applet

Java Consoles Show What’s Going On With Applets

Modern Java IDEs like Symantec’s Visual Cafe and Inprise’s JBuilder offer advanced applet debugging facilities. However, if you develop your applets using only the freely distributed JDK, it might be

On Throwing Exceptions From Constructors

It sometimes makes a lot of sense to throw an exceptionfrom the constructor of a class; look at constructors ofthe java.net.URL for an example. But what do we do if

Paint Outside The GUI Thread

A call to repaint() will schedule a component to be repainted when the gui thread is free. But what if we can’t wait till then? Well, we can use the

Load an HTML Page From Within an Applet

Applets are executed within a web browser, and there’s an easy way to load show a specific URL. 1. Get a reference to the applet context 2. Call the showDocument

See Which Fonts Are Installed With Your VM

Sometimes, it is useful to know which fonts are installed. This can differ from one Java Virtual Machine (JVM) implementation to another. The following code displays the names of all

Get a Hold of the Bits in Your Integers

Sometimes, it is useful to obtain a binary representation of integer, or a character. For example, we might want to represent the character ‘a’ by its binary 01100001, the letter

Trigonometry With Java

The java.lang.Math package has useful trigonometric functions such as: public static native double sin(double a) public static native double asin(double a). So, if we write code: double x = 90;

Using ShowHelp with Windows 95 and NT

Question: When we call the ShowHelp function in Windows 95, it works with a topic ID but not with a keyword. However, the same source works just the opposite in

Swap Images With JavaScript

A nice touch to a Web page is a button that changes appearance when clicked. All you need is two GIFs and a little JavaScript. The following code initially displays

Stick With Jet 3.51 for Access 97 Databases

It is natural to assume that later versions of software will improve performance and fix bugs. However, you may run into the opposite if you try that with an Access

Copying Controls From Form to Form

Question: I have a VB application that contains two forms. Form A is a Control Library that contains several Frames, Labels, Text Boxes, and Command buttons. (Note: some of these

VB Inheritance

Question: I would like some help with implementing inheritance in VB6. Answer: VB, as of the current version doesn’t really support inheritance, all you can do is have one class

Returning the Last Day of a Month

Question: I have a form from which I am searching a database.The search is being conducted between a startdate and an enddate.As the default I’d like to have the first

FTP in VB

Question: What’s the best way to transfer a file via FTP in Visual Basic? Answer: This is a simple procedure. All you have to do is use the Microsoft Internet

No Response from Server: Part I

Question: Our Informix 7.31 TC2 server has had some troubles recently. It worked properly for about four or five hours but then it rejected any request! Users who are already