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

Creating Classes Dynamically

One reader posted the following question: “I have two classes that have the same member functions and data members. However, the member functions perform different operations. Why can’t I do

Generate Unique String IDs

If you need unique string IDs and don’t have a sure-fire way of either generating or guaranteeing the generated ID is unique, then you need a Universally Unique ID (UUID)

Load Tree Subnodes on Demand

Here’s a quick way to drop a drive’s folder hierarchy into a TreeView control. The advantage to using this method is that folders are enumerated only when a node is

Translate Ole_Color to Actual RGB Value

Have you ever tried to pass a VB system color constant-such as vbButtonFace-to an API call that asks for a color? I frequently need to use system colors for GDI

Add Your Icon to the Add-Ins Menu

Say you’ve written a cool add-in for the VB design environment. It’s got its own menu item in the Add-Ins menu, and when you click on it, your add-in launches

Share Variables Between Multiple Apps

Sometimes it’s necessary to share variables between multiple instances of an application. For example, you might want to share a database connection. Here’s how: Create an ActiveX EXE with an

Disabling the Command Window

Question: I have compiled a program as an .APP file. When I run this file from VFP 6, I would like to disable the close button until the user clicks

Incorrect IP Lookup

Question: I have an application which uses dialup networking. If I connectafter starting my application, InetAddress.getLocalHost() alwaysreturns 127.0.0.1. Even if I connect before starting up,then disconnect and reconnect, the IP

Servlets vs. Applets

Question: We currently use applets to allow users to access a database,but are looking for ways to improve performance. Is a servlet-basedsolution faster than an applet-based solution? Answer: This will

Method Storage

Question: Does each instance of a class have its own copies of instance methodsin the same way it has its own copies of instance variables? Answer: Every time you instantiate

Attaching a DataGrid Control to ADO

Question: How can I use ADO and DataGrid (OLE DB) control in a VFP form? This code does not work in VFP as it works in VB 6.0: DataGrid1.DataSource=mADORecordset1 Answer:

Unexpected Socket Close

Question: How do you determine when a client has closed its socket, so that aserver can cease to wait for messages from that client? Answer: When a socket endpoint closes

Backspaces and Form Focus

Question: I have two questions: When using the Backspace key to delete content in a text box, the control is passed to the preceding text box once all data is

VB Web Components and MTS Security

Question: We’ve developed a human resources system based on the principles advocated by Rockford Lhotka in VB6 Business Objects. We used a SQL 7.0 database and stored procedures in conjunction

Direct Append from Excel Files

Question: I tried to use APPEND FROM any.xls TYPE XLS and it failed on some numerics. Instead of real numbers I received zeros (0). Is it a bug? What’s the

Enabling Sharing Tab

Question: Can you please tell me how I can enable the sharing tab when sharing local drives? I’m using an NT Workstation 4.0 and when I’m logged on as an

WordViewer and ASP

Question: I would like to open a .doc file (link) in Internet Explorer 4.0 with WordViewer. The problem is that if users have Word 8.0 installed on their PC, it

Dynamic Content Using Radio Buttons

Question: I wrote JavaScript code that displays different text depending on the radio button clicked. I used innerHTML to display text, which works fine on Internet Explorer 5 but not

Write Text Files to the Client

Question: I’m trying to figure out a way to pass along a questionnaire built in HTML so that users can fill it out in their browser, then have the answers

Scripting an Auto Reply

Question: How do I write a script so that every time a particular mailbox receives a new message, that mailbox generates an automatic standard reply? Answer: It’s fairly easy to

Scrollbar Value Notification

Question: Is there a way that I can dynamically determine the value of aScrollbar when I am scrolling? The adjustmentValueChanged method gets called only when you stop scrolling. But I

Serialization to Byte Array

Question: How can I convert a class instance to a byte array and thensubsequently reconstruct the original class from the byte array? Answer: Java’s Object Serialization API allows you to

Call a DLL From ASP

Question: I have a DLL called math911.dll and a function called a101. Private objM As MATH911.questionsSet objM = New MATH911.questions’use the functionCall objM.a101(level, TOPlevel, tipe, problem, ans, cpt, INSTRUCTIONS, AMT,

Append a NodeList to a Node

Question: Is it possible to append all the elements of a nodelist to a node as children without using a for loop? I want to overcome the performance problems incurred

Object Finalization

Question: How can I finalize an object without waiting for the garbage collector? Answer: The System class contains a convenience method called gc() that canbe used to ask the JVM

Expose Multiuse Classes in ActiveX Control Projects

A lesser-known, new feature in VB6 is the ability to have MultiUse and GlobalMultiUse classes within an ActiveX control project. This is useful if you have ActiveX controls and creatable

The Month of Calendar Class

For some reason unknown to me, the designers of java.util.Calendar class have enumerated months of the year from 0 to 11 inclusive. So, January would be month zero, and December

Using Applet Viewer the Easy way

To test your applets using the applet viewer, put the following comment in your Java file: /* */ Then you won’t need an HTML file for your applet code. The

Share Script Functions

In ASP pages, you can share script functions or libraries using the #INCLUDEdirective. This feature allows you to share subroutines and functions acrossmultiple pages. Instead of repeating similar (or rather