The Latest

DevX - Software Development Resource

Generic Listbox Columns Routine

Use the SendMessage API to set tab stops in a VB listbox by creating these declarations and this routine in a module: Private Declare Function SendMessage Lib _ “user32” Alias

DevX - Software Development Resource

Use IsLoaded to Check for Forms

The IsLoaded function tests to determine if any instances of a form are already loaded or exist in memory: If IsLoaded(“frmMyForm”) Then Debug.Print “frmMyForm is loaded”End IfPublic Function IsLoaded(sForm As

DevX - Software Development Resource

CheckboxGroup

Question: I am trying to put all the checkboxes in a CheckboxGroup into anunselected state, but Checkbox.setState(false) does notautomatically unselect the checkbox once a checkbox has been selectedwithin a CheckboxGroup.

DevX - Software Development Resource

Servlet Attributes and Parameters

Question: When a request message is processed through the HttpServlet doGetmethod, who sets the parameters and attributes for theHttpServletRequest argument? And what is the difference between anattribute and a parameter?

DevX - Software Development Resource

Simple HTML Display

Question: How can I have my servlet display an HTML file,located on the server, on the client’s browser? Answer: The HttpServlet class makes it very simple to send and receiveinformation

DevX - Software Development Resource

Enterprise JavaBeans

Question: What is the basic difference between JavaBeans and Enterprise JavaBeans? Answer: JavaBeans are a set of conventions and APIs for creating reusablesoftware components. The primary benefit is for visual

DevX - Software Development Resource

Binary Representation of a Char

Question: How can I get the binary representation of a letter or number? Forexample, the letter “A” is 100 0001, the letter “B” is 100 0010, etc… Answer: You can

DevX - Software Development Resource

Getting Started with Exchange

Question: I am in the process of installing Exchange 5.5 for the first time. I need some help understanding the basic concepts of this system. How do I get the

DevX - Software Development Resource

Use Recordset.Supports() Method for Robust Code

You can use Supports() method of ADODB.Recordset object to write robust code. This method takes in a enum parameter and returns a boolean value which can be used to determine

DevX - Software Development Resource

Avoid Typedefs When Defining Structs

In olden days, before C++ appeared, it was customary to declare a struct as a typedef name. For example: typedef struct DATE_TAG { int day; int month; int year; }

DevX - Software Development Resource

Display Popup Windows

Here is a simple way to provide popup window functionality in your Webpages. The idea is to display a popup window if the user moves the mouseover certain text areas

DevX - Software Development Resource

Translate Color Values Faster

This tip is an update to “Translate Color Values”. That method converted numbers to strings, then performed string manipulation to get individual RGB values. This solution uses a concept near

DevX - Software Development Resource

Avoid Excessive use of Fully Qualified Names

To some extent, the use of fully qualified names is the recommended way of referring to namespace members because it uniquely identifies and yet it avoids name conflicts. For example:

DevX - Software Development Resource

Loading Dynamic Forms

Question: I have a menu system that loads the name of a form into the appropriate menu item. How would you load the form from that item, considering that when

DevX - Software Development Resource

Arctan Function Problems

Question: I have to use the arctan function but there are onlyarcsin and arccos in VB. And arctan is not equal toarcsin/arccos. I have lost almost all of my trigonometry

DevX - Software Development Resource

Adding a New Label at Run Time

Question: I have been unable to add a new label onto my form at run time because the ‘new’ command doesn’t seem to work for a label. What’s the best

DevX - Software Development Resource

Difference Between Subs and Functions

Question: As new to Visual Basic, I am having trouble understanding the difference between Sub a Procedure and a Function Procedure. And I would also like to know where and

DevX - Software Development Resource

ADO Data Control

Question: I hope that you might be able to help me with the problem I am experiencing. I am developing an application in VB6 using ADO Data Control. I need

DevX - Software Development Resource

Dynamically Change the Title of an HTML Page

Here is a simple way by which you can dynamically change the title of the browser window (or an HTML page). There are certain scenarios where you can use this

DevX - Software Development Resource

Check if Provider Supports Transactions

A transaction can be defined as a related set of operations that read and modify data in a single batch. Every transaction should follow the ACID rule, where ACID stands

DevX - Software Development Resource

Initialize Class’s Data Members Easily

Consider the following class: class Book { private: char ISBN[11]; int year bool in_stock; char name[100]; // Related Posts Microsoft to Release Windows 10 SDK Preview This MonthSamsung Galaxy Z

DevX - Software Development Resource

Opaque Pointer

Question: What exactly is an opaque pointer? Answer: The term “opaque pointer” is used in component-based programming, e.g., COM and CORBA. It refers to a pointer to an object of

DevX - Software Development Resource

Bit Classes

Question: Are there power bit set classes around that can do what Verilog, VHDL can do so easily? a[3:2,0] = b[4:1] & c[5]; // collections of width n mixed with

DevX - Software Development Resource

dynamic_cast implementation

Question: How does dynamic_cast work? How is it implemnted in compilers? Answer: dynamic_cast accesses the runtime type information that C++ automatically generates for every polymorphic class. This information is stored

DevX - Software Development Resource

Custom Right-Mouse-Click Menus

Question: How do I customize the mouse’s right-click menu? That is, instead of Cut, Copy, Paste, Select All, Delete in Edit-Masks, etc., I would like to display my custom menu,

DevX - Software Development Resource

Formatting Data in Tabular Form

Question: I use SQL 6.5 in an industrial setting. I have an application that writes a new record into the database every time a pallet blocks a photoswitch. After 24

DevX - Software Development Resource

Verifying Whether a String Contains a Number

Question: Is there a function that gives me a simple way to know whether a string contains a number or not? I’ve already done something with ASCII values, but this

DevX - Software Development Resource

Counting Specific Records

Question: How do I count the records for a specific field? For example, I’m building a table for homes in a county. In the table are fields for cities and

DevX - Software Development Resource

Group By Statement

Question: How do I use the Group By statement in SQL Query? Answer: Group By is a way to collapse a result set around a textual value summarizing its contents