The Latest

DevX - Software Development Resource

Creating Tablet PC Applications with VS .NET

n the Fall of 2002, Microsoft introduced Tablet PCs based on the popular Windows XP operating system. By default, this new platform includes applications with special Tablet PC features enabled,

DevX - Software Development Resource

Five ASP.NET Controls You Might Be Craving

SP.NET is a terrific platform for Web applications. That does not mean that tricky coding is always one or two clicks away within a dockable and resizable Visual Studio .NET

DevX - Software Development Resource

The MB InputBoxEx Control

This ActiveX control is an extended version of the VB’s InputBox function. You can center the input box on your form or open it anywhere you want. It is based

DevX - Software Development Resource

SetPropertyEx – Set a property of multiple controls/objects

‘ Set a property of multiple controls/objects in a single step,’ and return True if successful’ Note: requires the SetProperty function” Example: SetPropertyEx(“Text”, “OK!!!”, TextBox1, Button1, Button2)Function SetPropertyEx(ByVal propertyName As

DevX - Software Development Resource

Enable a key-skipping mechanism for a TextBox

‘ Enable the key-skipping mechanism for the input TextBox and for the input ‘ chars’ Example: don’t process the ‘A’, ‘b’ and ‘0’ chars’ EnableTextBoxCharSkip(TextBox1, “A”c, “b”c, “0”c)Sub EnableTextBoxCharSkip(ByVal tb

DevX - Software Development Resource

SQL Server Database Restore Via Stored Procedure

The following stored procedure will restore the database. This is helpful when you need to restore the database from other applications: CREATE PROCEDURE [dbo].[sp_db_restore]@DBName varchar(60),@BackName varchar(120),@DataName varchar(60),@DataFileName varchar(120),@LogName varchar(60),@LogFileName varchar(120)

DevX - Software Development Resource

Constructors of Built-in Types

The way we have constructors for user defined data types, we also have constructors for built in data types like chat, int, float and so on. Here is a program

DevX - Software Development Resource

XML Made Easy with XMLBeans

very once in a while there comes around a tool so useful it makes you wonder why nobody ever did it before, or why it hasn’t been a part of

DevX - Software Development Resource

Manipulate Complex Numbers

The following demonstrates how to manipulate complex numbers: class Complex{ double real; double imag; Complex() { } Complex(double real,double imag) { this.real=real; this.imag=imag; } void addComplexNos(Complex comp1,Complex comp2) { this.real=comp1.real+comp2.real;

DevX - Software Development Resource

A Simple Way to Debug a Stored Procedure

Debugging stored procedures can be a headache, but heres an easier way to trace a stored procedure’s execution: Use the PRINT statement. PRINT lets you output and analyze variable values,

DevX - Software Development Resource

Set Up Passport Authentication in ASP.NET

his first installment of a two-part series on Microsoft Passport in ASP.NET applications discusses Passport’s basic authentication mechanism and demonstrates the use of related .NET classes. It describes the design

DevX - Software Development Resource

Application Framework with the ECC pattern

This COM-based framework provides the basis for easily building a fully functional application, by using the Engine-Collection-Class Design Pattern. It can be deployed across a Microsoft Windows 2000 network using

DevX - Software Development Resource

GetDriveLabel – Retrieving the label of the specified drive

‘ Retrieve the drive name (label) of the specified drive’ Note: requires a reference to the System.Management assembly’ Example: MessageBox.Show(GetDriveLabel(“D”c))Function GetDriveLabel(ByVal driveLetter As Char) As String Dim driveFilter As String

DevX - Software Development Resource

SetFileLength – Set the length in bytes of the input file

‘ Set the length in bytes of the input file’ Example:’ Dim filePath As String = “c: est.txt”‘ MessageBox.Show(“Original length: ” & New System.IO.FileInfo(filePath)’ .Length)’ SetFileLength(filePath, 50000)’ MessageBox.Show(“New length: “

DevX - Software Development Resource

Book Excerpt: XForms Essentials

ritten by Micah Dubinko, a member of the W3C XForms working group and an editor of the specification, this book explains the hows and whys of XForms, showing readers how

DevX - Software Development Resource

Build an Internet Server on a Shoestring

he wide availability of free or low-cost operating system, Web server and firewall software, and the penetration of relatively low-cost broadband service have reached the point where you can set

DevX - Software Development Resource

Clearing the Clipboard

VB6’s Clipboard object has methods such as GetData, GetText, SetData, and SetText, which allow the developer to store to and retrieve data from the clipboard. VB.NET’s System.Windows.Forms.Clipboard class also has