devxlogo

The Latest

IsExcelInstalled – Checking whether MS Excel is installed

‘ this code assumes that you have used this Imports statement’ Imports Microsoft.Win32Function IsExcelInstalled() As Boolean ‘ Define the RegistryKey objects for the registry hives. Dim regClasses As RegistryKey =

ReverseString – Reversing a String

‘ Reverse the input string, without using the StrRever function in the VB6 ‘ compatibility assemblyFunction ReverseString(ByVal source As String) As String Dim chars() As Char = source.ToCharArray() Array.Reverse(chars) Return

IsWordInstalled – Checking whether MS Word is installed

‘ this code assumes that you have used this Imports statement’ Imports Microsoft.Win32Function IsWordInstalled() As Boolean ‘ Define the RegistryKey objects for the registry hives. Dim regClasses As RegistryKey =

CountOccurrences – Counting the number of string occurrences

‘ Count the number of string occurrencesPublic Function CountOccurrences(ByVal source As String, ByVal search As String, _ Optional ByVal ignoreCase As Boolean = False) As Integer Dim options As System.Text.RegularExpressions.RegexOptions

Translate Your Program Easily

If you want your program to be easily translated into a different language, consider making every displayed text a resource in a dll. Every language will have its own .dll

Never Have to Rename the Form Action Page

You will never have to check the form tag for local page postbacks.This nipped me once. Related Posts PIVOTing Data in SQLIs Temu Legit or Chinese spyware?CA Acquires BlazeMeterNavigating an

Do Your Web Pages Use JavaScript?

What happens if your visitors have it disabled?Include the following code to: Let them know that JavaScript is disabled. Tell them how to enable it in their browser. To view

Case-sensitive Comparisons

To program a case-sensitive comparison of a user-typed password on a case-insensitive SQL Server 7.0 instance, assume that the value of the password stored in your table is BamBi2000 (notice

Improve Your Search Algorithms

A normal practice in implementing a search is to use the “like” operator. As long as you are searching for your keyword in only one column, there will be no

A Preview of Visual C++ .NET 2003

y the time you are reading this Microsoft will be very close to shipping Visual Studio .NET 2003 and its associated language products?including Visual C++. February 2003 marks an exciting

Shaped .NET Windows Forms

ince the earliest versions of the Windows operating system, all Windows have been rectangular. However, the number of applications that break out of this boring mold is rising. Even Microsoft,

Scripting SQL Server 2000 Indexes

dding indexes to tables is the most effective way to optimize your SQL Server query performance. Tables that you query often may require several indexes in order to handle the

Using Remote Object Models in .NET

odern applications are no longer isolated, stand-alone applications, limited to a single process or machine. Distributed applications allow you to put components in close proximity to the resources they use,

Reflection Part II: Emit

irst, a quick review of exactly what reflection is and what it is used for. From Part 1, you know that “Reflection is a means of discovering information about objects

Office Server Quirks

ord, Excel and PowerPoint all use VBA, so you would think that using Automation in one should be pretty much like using Automation in another, right? In fact, they do

Working with Extender Classes

xtender classes do just that; they allow you to extend the functionality of a .NET control class. The Error Provider and Tooltip classes are two examples of extender classes in

Random Ramblings

elcome to this first issue of 2003. We have some interesting things in this issue for you. The first item to note is our coverage of Visual C++ 2003. YES,

Customize the Windows Forms DataGrid Control

hen I first met the ASP.NET DataGrid control, it was love at first sight. Together we built several applications, taught dozens of classes, published countless articles and tips; we even

Become a Cross-platform Wireless UI Expert

he promise of write-once-run-anywhere is arguably more attractive and far more economically advantageous for developers targeting mobile devices; mobile hardware is so diverse that cutting development time by writing one

Reevaluating the Wireless World

everal months ago I sat down to write an editorial for DevX, which I had tentatively titled “Where’s My Wireless Killer App?” The premise of this editorial was to be,