The Latest

DevX - Software Development Resource

SetProperty – Setting a property via reflection

‘ Set a property via reflection and return True if successful’ Example: SetProperty(Button1, “Text”, “Click me”)Function SetProperty(ByVal obj As Object, ByVal propertyName As String, _ ByVal val As Object) As

DevX - Software Development Resource

GetProperty – Reading a property via reflection

‘ Read a property via reflection or return a default value’ Example: MessageBox.Show(GetProperty(Button1, “Text”, “”))Function GetProperty(ByVal obj As Object, ByVal propertyName As String, _ ByVal defaultValue As Object) As Object

DevX - Software Development Resource

InvokeMethod – Invoking a method via reflection

‘ Invoke a method via reflection and return its result – return null if method ‘ doesn’t exist or throws’ Note: requires Imports System.Reflection” Example:’ Function GetCompleteName(ByVal firstName As String,’

DevX - Software Development Resource

IsMemberSupported – Check whether an object supports a member with the specified name

‘ Check whether an object supports a member with the specified name” Examples:’ Debug.WriteLine(IsMemberSupported(Button1, “BackColor”)) ‘ => True’ Debug.WriteLine(IsMemberSupported(Button1, “Focus”)) ‘ => True’ Debug.WriteLine(IsMemberSupported(Button1, “TextColor”)) ‘ => False’ Debug.WriteLine(IsMemberSupported(Button1, “Print”))

DevX - Software Development Resource

Wireless Data Shot: Making Platform/Device Decisions

The Evans Wireless Development Survey is a detailed report of extensive, in-depth interviews with almost 500 developers active in wireless application or infrastructure development. It was conducted in March 2003.

DevX - Software Development Resource

From the Editor: DevX Joins Jupitermedia

n Friday afternoon, DevX, which has operated as an independently-owned media company for nearly four years, agreed to become part of a larger group of online publications. Jupitermedia, the publisher

DevX - Software Development Resource

GetApplicationPath – Retrieving the path of the running application or add-in

‘ Return the application’s path.’ Note: it also works with add-ins’s dll, whereas Application.StartupPath ‘ returns’ Visual Studio .NET’s startup path instead’ Example: MessageBox.Show(GetApplicationPath())Function GetApplicationPath() As String Return System.IO.Path.GetDirectoryName _

DevX - Software Development Resource

Book Excerpt: Creating Applications with Mozilla

ozilla is not just a browser. Mozilla provides a framework that allows developers to create cross-platform applications by utilizing its accessible components, including JavaScript, CSS (Cascading Style Sheets), and Mozilla’s

DevX - Software Development Resource

Book Excerpt: Tomcat: The Definitive Guide

omcat is a Java servlet container and Web server from the Jakarta project of the Apache Software Foundation. A Web server is, of course, the program that dishes out Web

DevX - Software Development Resource

How To Move Items Between Lists with JavaScript

ntil recently, moving data between HTML lists was problematic due to differences in each browser’s DOM; however, as browsers move toward W3C DOM compliance, those differences are disappearing rapidly. In

DevX - Software Development Resource

Book Excerpt: 802.11 Security

he integrity and confidentiality of information traveling through the air has always been a concern. Who is really broadcasting the signal you are receiving? Is anyone eavesdropping on the signal?

DevX - Software Development Resource

GetOsqlPath – Get the path of the SQL Server’s OSQL.exe utility

‘ Get the path of the SQL Server’s OSQL.exe utilityFunction GetOsqlPath() As String Dim regKey As Microsoft.Win32.RegistryKey = _ Microsoft.Win32.Registry.LocalMachine.OpenSubKey( _ “SOFTWAREMicrosoftMicrosoft SQL Server80ToolsClientSetup”) If regKey Is Nothing Then Return

DevX - Software Development Resource

RegisterEnterpriseService – Register an Enterprise Service in the COM+ Catalog

‘ Register an Enterprise Service in the COM+ Catalog’ Note: requires a reference to the System.EnterpriseServices.dll assembly’ This version identify the enterprise service with its path’ Example: RegisterEnterpriseService(“C:TempTestService.dll”)Sub RegisterEnterpriseService(ByVal servicePath

DevX - Software Development Resource

GetSqlPlusPath – Get the path of the Oracle’s SqlPlus.exe utility

‘ Get the path of the Oracle’s SqlPlus.exe utilityFunction GetSqlPlusPath() As String Dim regKey As Microsoft.Win32.RegistryKey = _ Microsoft.Win32.Registry.LocalMachine.OpenSubKey(“SOFTWAREORACLE”) If regKey Is Nothing Then Return “” End If Dim sqlplusPath

DevX - Software Development Resource

How to Find 10 Million Developers

n the software industry, developers of smaller-scale workgroup applications haven’t exactly been tres chic. It’s true that Microsoft has taken very good care of this enormous universe of developers for