We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

DevX - Software Development Resource

RestartDefaultSite – Restarting the default website in IIS

‘ Restarts the default web site in IIS Sub RestartDefaultSite() Dim p As New Process() p.StartInfo.FileName = “net.exe” p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden ‘ set the parameters to STOP the service p.StartInfo.Arguments

DevX - Software Development Resource

KXML: A Great Find for XML Parsing in J2ME

was recently working on a project to develop a multiplayer game for J2ME devices. In this application communication from the server to the device was originally coded as simple key-value

DevX - Software Development Resource

Book Excerpt: .NET Windows Forms in a Nutshell

evelopers are beginning to understand that .NET Windows Forms are a powerful technology for building a large class of applications for the Windows .NET platform. They offer nearly the same

DevX - Software Development Resource

Are You Passing the Requirements Buck?

he more time I spend thinking about alternative programming methodologies, the more I wonder why there’s so much resistance. Which is to say that I generally believe in the concepts

DevX - Software Development Resource

Get Personal with C# Custom Attributes

henever I bump into one of my Java friends, he invariably tells me C# is no better than Java. I generally reply that one of my favorite features of C#

DevX - Software Development Resource

Book Excerpt: How to Do Everything with JavaScript

ring interactivity to any Web site with this easy-to-follow guidebook on JavaScript. Author Scott Duffy takes the fear out of working with a programming language by delivering instruction and theory

DevX - Software Development Resource

IsValidEmail – Validating an e-mail address

‘ Validate an e-mail address’ Example:’ MessageBox.Show(IsValidEmail(“[email protected]”)) ‘ True’ MessageBox.Show(IsValidEmail(“vb2themax.com”)) ‘ False’ MessageBox.Show(IsValidEmail(“mbellinaso@vb2themax”)) ‘ FalseFunction IsValidEmail(ByVal email As String) As Boolean Return System.Text.RegularExpressions.Regex.IsMatch(email, _ “^w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*$”)End Function

DevX - Software Development Resource

IsValidUsZip – Validating a US ZIP code

‘ Validate a US ZIP code’ Example:’ MessageBox.Show(IsValidUsZip(“12345”)) ‘ => True’ MessageBox.Show(IsValidUsZip(“12345-1234”)) ‘ => True’ MessageBox.Show(IsValidUsZip(“12345-12345”)) ‘ => FalseFunction IsValidUsZip(ByVal zip As String) As Boolean Return System.Text.RegularExpressions.Regex.IsMatch(zip, _ “^(d{5}-d{4})|(d{5})$”)End Function

DevX - Software Development Resource

IsValidUrl – Validating a URL

‘ Validate a URL’ Example: MessageBox.Show(IsValidUrl(“http://www.vb2themax.com”))Function IsValidUrl(ByVal url As String) As Boolean Return System.Text.RegularExpressions.Regex.IsMatch(url, _ “(http|ftp|https)://([w-]+.)+(/[w- ./?%&=]*)?”)End Function

DevX - Software Development Resource

IsValidIP – Validating an IP address

‘ Validate an IP address’ Example:’ MessageBox.Show(IsValidIP(“123.14.0.255”)) ‘ => True’ MessageBox.Show(IsValidIP(“256.14.0.255”)) ‘ => FalseFunction IsValidIP(ByVal ipAddress As String) As Boolean Return System.Text.RegularExpressions.Regex.IsMatch(ipAddress, _ “^(25[0-5]|2[0-4]d|[0-1]?d?d)(.(25[0-5]|2[0-4]d|[0-1]?d?d)){3}$”)End Function

DevX - Software Development Resource

IsValidUsSSN – Validating a US Social Security Number (SSN)

‘ Validate a US Social Security Number’ Example:’ MessageBox.Show(IsValidUsSSN(“123-12-1234”)) ‘ True’ MessageBox.Show(IsValidUsSSN(“123-123-1234”)) ‘ FalseFunction IsValidUsSSN(ByVal ssn As String) As Boolean Return System.Text.RegularExpressions.Regex.IsMatch(ssn, _ “^d{3}-d{2}-d{4}$”)End Function

DevX - Software Development Resource

IsValidUsPhoneNumber – Validating a US phone number

‘ Validate a US phone number’ Example:’ MessageBox.Show(IsValidUsPhoneNumber(“(123) 456-7890”)) ‘ True’ MessageBox.Show(IsValidUsPhoneNumber(“(123) 456-78901”)) ‘ FalseFunction IsValidUsPhoneNumber(ByVal phnNum As String) As Boolean Return System.Text.RegularExpressions.Regex.IsMatch(phnNum, _ “^(((d{3}) ?)|(d{3}-))?d{3}-d{4}$”)End Function

DevX - Software Development Resource

IsValidPath – Validating a system path

‘ Validate a system path’ Example:’ MessageBox.Show(IsValidPath(“C:TestMemo.txt”)) ‘ => True’ MessageBox.Show(IsValidPath(“\RemotePCTestMemo.txt”)) ‘ => True’ MessageBox.Show(IsValidPath(“C:TestMem|o.txt”)) ‘ => FalseFunction IsValidPath(ByVal path As String) As Boolean Try Dim f As New System.IO.FileInfo(path)

DevX - Software Development Resource

Book Excerpt: J2ME: The Complete Reference

ava developers, here’s your chance to survey the scope of J2ME (Java 2 Micro Edition) knowledge in one solidly written reference. Discover the basic architecture and functionality of J2ME and

DevX - Software Development Resource

Understanding the Psychology of Programming

t has often been said that programmers are introverts. I find that this isn’t true, in the majority of cases, but programmers usually do have a longer attention span and

DevX - Software Development Resource

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 =

DevX - Software Development Resource

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

DevX - Software Development Resource

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 =

DevX - Software Development Resource

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