The Latest

DevX

EnableRegistryTools – Enable or disable the RegEdit utility

‘ Enable/Disable the Registry editor (RegEdit.exe)’ NOTE: this routine requires the SetRegistryValue,’ DeleteRegistryValue and CheckRegistryValue routines,’ that you can find in the CodeBank under the Windows section.” Example:’ ‘ disable

DevX

Build an Animation Generator

ave you ever seen those Web pages where elements animate along a path, moving across a background like sprites? It’s fairly easy to imagine how that’s done?using the window.setTimeout function

DevX

API Viewer 2001

API Viewer 2001 is a very powerful replacement for VB5 and VB6 API Viewer. It supports multiple languages (including Italian, Spanish, Swedish, and even Chinese!), and comes with the API

DevX

GetDesktopVisible – Determine whether the desktop is visible

‘ Determine whether the desktop is visible’ Note: requires the GetRegistryValue routine, you can find it in the CodeBank’ Example:’ MsgBox “desktop is visible: ” & GetDesktopVisiblePublic Function GetDesktopVisible() As

DevX

SetIETitle – Change the title used for Internet Explorer

‘ Set the IE’s window title’ Note: requires the SetRegistryValue, CheckRegistryKey and CreateRegistryKey ‘ routines, you can find them in the CodeBank’ Example:’ SetIETitle “MY IE”‘ To set the default

DevX

GetIETitle – Read the title used for Internet Explorer

‘ Get the IE’s window title’ Note: requires the GetRegistryValue routine, you can find it in the CodeBank’ Example:’ MsgBox GetIETitlePublic Function GetIETitle() As String Const HKEY_CURRENT_USER = &H80000001 GetIETitle

DevX

Shark Attacks, Code Red, and Puerile Press Releases

ept. 12, 2001?This summer, there’s been a huge furor over shark attacks, leading to beach closings and enormous revenue losses for resorts where the attacks have taken place. The massive

DevX

Employ Radio Buttons in a ListView

A simple piece of code can force the checkboxes in a ListView control to behave like radio buttons. Set the ListView Related Posts Using SendKeys in C#Humane struggles with AI

DevX

Quick Recordset Copy to Excel Workbook

One of the most common things VB programmers do with Excel is load data into an Excel worksheet from a Recordset object. The method I see used most often to

DevX

Obtain a Regional Decimal Character Without an API

Use this function to read a number decimal symbol from regional settings: Sub Form_Load()Dim DecS As StringDecS = ReadDecimalSymbol()End SubFunction ReadDecimalSymbol() As StringReadDecimalSymbol = Mid$(CStr(1.1), 2, 1)End Function Related Posts

DevX

Retrieve File Descriptions

This routine takes a passed filename as an argument and generates a description for it. It returns the same string as Windows Explorer does when it has been set to

DevX

Trim the Contents of the Text Box

This tip will trim the contents in the input box of an HTML page using java script. Call the Trim function by sending the Textbox element as the parameter. Example:

DevX

How to Save an XML File on a User Computer

If you come across a situation where you need to prompt the user to download an XML file with Related Posts Container Orchestration with Docker SwarmGet Current Precision Level Used

DevX

Implementing Multilevel Ranking in T-SQL

You might have a table with different PEOs for each Company ID. For example: Table name : tblRankingCid peo———– ———–1 200003311 200006301 200009301 200012312 200003312 200006302 200009302 20001231 To give

DevX

Spreading Data across Months on a Single Row

This is a SQL trick for spreading out data across months on a single row. It also works with Sybase TSQL. The 1-ABS(SIGN()) function will evaluate to zero for all

DevX

C++ Smart Pointers

C++ smart pointers are the idea of using a selector to access a class. This gives the class writer an option to control access to class members and function. For

DevX

Automate Microsoft Office Programs from within ASP

Creating dynamic Microsoft documents may be useful. The problem is that creating Word documents in ASP will result in an error saying that IIS cannot run out of process components.

DevX

Get Value from the Control Irrespective of Control Type

This code shows how to get value from the control irrespective of the control type used in the client side Javascript. function GetValue(ControlName,FormName){var Control=document.forms[FormName].elements[ControlName]alert(Control.type) switch(Control.type) { case “select-one”: case “select-multiple”:

DevX

Using Count(*)

Using Count(*) is generally better than using Count() with a specific column name, because it gives the query engine the flexibility to find out the row count any way it

DevX

How to Make a Private Member Public

You can make a privately inherited member public by specifying its access modifier in the derived class. For example: #include class base{ public: int a; int b; base() { a=10;

DevX

Executing a Java Application in an End User System

The Java 2 Runtime Environment is the minimum standard Java computing environment for running applications written in the Java programming language. It contains the Java virtual machine, Java core classes,

DevX

Using the Java Robot Class

This tip demonstrates a user interaction (mouse move & mouse click) using native Robot methods.Here’s the algorithm of the program:1. Quickly to move the mouse cursor to the upper left

DevX

Use Mouse Wheel to Control JSpinner

Merlin (JDK1.4) introduces two new features: JSpinner and MouseWheelListener. Sometimes it is convenient to control the spinner values with the mouse wheel. Here’s an example: import javax.swing.*;import java.awt.event.*;public class TestSpinner