The Latest

DevX - Software Development Resource

Vemod PropertyWindow

This PropertyWindow control is similar to the one found in the VB 6 IDE. Youcan add how many properties you want and specify if a property acceptsstring, numerical, boolean or

DevX - Software Development Resource

Getting a pixel color

The Point method returns the color value of a given pixel, but is rather slow because it has to convert its argument from twips (or whatever ScaleMode is currently active)

DevX - Software Development Resource

Count distinct characters in a string

When you need to count how many occurrences of a given character are in a string, you might be tempted to go along the “traditional” Visual Basic way: ‘ count

DevX - Software Development Resource

Animated form icons

You can add a professional touch to your apps by showing an animated icon when the main form is minimized. To achieve this effect, prepare an array of Image controls,

DevX - Software Development Resource

Counting characters in a file

Ever needed to count how many characters of a given type are in a file? For instance, how many alphabetical characters, or digits, or spaces? You might read each line

DevX - Software Development Resource

Setting a pixel color

The PSet method is much slower than it should actually be, and in most cases you will find it convenient to substitute it with direct calls to the SetPixel API

DevX - Software Development Resource

A Quick Guide to Installing Tomcat on Windows

akarta Tomcat, an Open Source Servlet and JSP container, provides a simple (and free) environment for developing and testing Web applications. Tomcat is the reference implementation for the Servlet API

DevX - Software Development Resource

CheckUSState – Validate a US state initial

‘ Return True if the passed State initials are valid’ Example:’ MsgBox CheckUSState(“NY”)Public Function CheckUSState(ByVal State As String) As Boolean If Len(State) = 2 And InStr(“,AL,AK,AZ,AR,CA,CO,CT,DE,DC,FL,GA,HI,ID,IL,IN,I” _ & “A,KS,KY,LA,ME,MD,MA,MI,MN,MS,MO,MT,NE,NV,NH,NJ,NM,NY,NC,ND,OH,OK,OR,P” _

DevX - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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