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

DevX

Get Date by Totaling All Seconds

Question: How do I get the total number of seconds between two dates? Answer: You can use the DATEDIFF function to calculate the difference between two dates. The value can

DevX

Database Property

Question: How do I programmatically change the database property of Forms so that I can put my data files anywhere? Answer: You can set the database properties of cursors in

DevX

Threading and SimpleDateFormat

Question: Is SimpleDateFormat threadsafe? I am trying totrack down a bug where a date formatted “yyyy-MM-dd” actually came outas 2000-06-0001. I have four threads accessing the format method ofmy date

DevX

NT Admin

Question: Can I move 600+ users from a standalone server to a PDC with all rights and information intact, without having to recreate the users on the PDC? Answer: Well,

DevX

Using the VFP Grid Without Bound Data

Question: Is there anything similar to the “Microsoft grid control” in Visual Basic that just displays a grid and does not bind data from a table? Answer: You could use

DevX

Visual FoxPro 6

Question: With an application compiled into an EXE, why when I select 1 topic, enter into it, and exit do I get booted out of FoxPro to the main Windows

DevX

Array Enumeration

Question: Is it possible to return an Enumeration of an array? Answer: There is no standard class for creating an Enumeration of an array.More often than not, when you use

DevX

Designing Tiers and Placing Business Rules in Them

Sometimes in a multi-tier system, designers tend to follow rigid object-oriented design rules to perform heavy data-centric manipulations in the middle tier. Remember, a thin line separates the operations that

DevX

Display an animated GIF using the WebBrowser control

The standard PictureBox control doesn’t support the Animated GIF graphic format. However, you can display these images by using a WebBrowser control: WebBrowser1.Navigate “c:ImagesAnimated.Gif” The only problem of this technique

DevX

Using XSLT to Comma Delimit Node Values

Question: I have the following code in an XML file: Fredonia AFB Russia Luka Russia 140N4506 64E3507 Sevastopl Bosie 140N4506 64E3507 Ukraine How can I set up an XSL sheet

DevX

Changing Link Color with Mouseovers

Question: How can I change the color of a link when the mouse is over the link? And how can I remove the line that underlines the links? I am

DevX

Creating Frames

Question: I want to make a simple frame for my Web site, but I don’t know how. I’ve looked through your tutorial but I still don’t fully understand. Can you

DevX

The Error Handler Add-in

This addin greatly simplifies adding error handling to VB programs. Simply register the DLL using REGSVR32 and the addin will be added into the Visual Basic tools menu. Keep the

DevX

The Tao of Recursion: Named Templates in XSLT

ascally RecursionExtensible Stylesheet Language Transformations, or XSLT, allows you to transform XML documents into other XML documents using XSL. Using XSLT can be very trying, but it is, in fact,

DevX

Bringing the Web to Your In-Box

ave you visited sites that allow you to “E-mail this page to your friend”? Have you tried it and sent the page to yourself to see what it looks like?

DevX

Use Property Functions to Query Metadata

nce you get past the point of creating a solid database design and ensuring the integrity of your database, inevitably you need to know about the objects in your database.

DevX

Prevent dragging elements in a ListView control

The ListView control doesn’t expose any property that lets you disable the dragging of its elements. To do so, you must trap the WM_NOTIFY message that the ListView control sends

DevX

Bind a group of OptionButtons to a Data control

You can’t directly bind a group of OptionButton controls to a Data control, RDO Data control or ADO Data control. However, you can work around this limitation by adding an

DevX

Highlight current word and line in a TextBox control

Here’s a simple way to highlight the current word in a TextBox control (i.e. the word where the caret is): Text1.SetFocusSendKeys “^{LEFT}+^{RIGHT}” Similarly, you can highlight the current line in

DevX

Get the handle of the edit portion of a ComboBox

The ComboBox control contains an invisible Edit window, which is used for the edit area. In most cases you don’t need to access this inner control directly, but occasionally a

DevX

Create arrowed buttons without icons

You don’t need to use icons or bitmap to create buttons with arrows on them. In fact, you just have to select the “Windings” font, set a suitable font size

DevX

Converting Time Zones and Dates

The java.util.TimeZone class can be used to convertdates and times from local values (default) to othertime zones. The following example shows how: import java.util.*;public class TimeZoneTest {public static void main(java.lang.String[]

DevX

Calculate Exponentiation Using Math.pow() Method

You can use pow() method which is part of the Math classin java.lang for calculating the exponentiation. Java doesnot provide any direct operator (like ‘^’ in VB) for calculating the

DevX

Avoid Increment/Decrement Operators in Expressions

You should avoid usage of increment and decrement operators inside other expressions. Increment operator (++) adds 1 to the current valueof the variable and decrement operator (–) subtracts 1 from