Pages
-
Recent Posts
Archives
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- December 2008
- November 2008
- October 2008
Meta
Category Archives: VB.NET
PHPHOST BLOG
Web Hosting Related Articles You May Need
.NET Programming for Absolute Beginners [Free Video Series]
Channel 9 has just launched an absolute beginner programming series to help people learn to program. This FREE training series is created for programmers who have no experience with C# or VB.NET
The series of 49 episodes (24 episodes for C# and 25… Continue reading
Posted in C#, Free Learning, Syndicated, VB.NET
Leave a comment
Remove all Lower Case Letters using C#
I came across a discussion where the OP wanted to use only the first letter of a word in a string. The first letter of each word was capitalized, so his requirement was to abbreviate the sentence by removing all lower case letters in a string.
For exam… Continue reading
Posted in C#, Syndicated, VB.NET
Leave a comment
Remove all Lower Case Letters using C#
I came across a discussion where the OP wanted to use only the first letter of a word in a string. The first letter of each word was capitalized, so his requirement was to abbreviate the sentence by removing all lower case letters in a string.
For exam… Continue reading
Posted in C#, Syndicated, VB.NET
Leave a comment
Use Anonymous Method with a Delegate in C#
A colleague of mine asked me a question – ‘How can we use an Anonymous method with a Delegate and when should we do it”.By using anonymous methods, you reduce the coding overhead in instantiating delegates, by eliminating the need to create a separ… Continue reading
Posted in C#, Syndicated, VB.NET
Leave a comment
Determine if your Laptop is Running on battery using C# or VB.NET
Here’s some code to programmatically find out if your laptop is currently running on battery power. I have created a Windows Form application and added the following code on a button click event which uses the SystemInformation.PowerStatus propertyC#… Continue reading
Posted in C#, Syndicated, VB.NET
Leave a comment
Check Database connection using C# or VB.NET
As a programmer, one of the most common tasks in your application is to connect to the database. Here’s a very simple way to check your database connection before you start any task or use this as a service to check the connection and pause tasks if … Continue reading
Posted in C#, Syndicated, VB.NET
Leave a comment
Programmatically find CLR version for a .NET assembly
When it comes to extracting information from an assembly, Red Gate’s Reflector or the .NET Framework ILDASM tool are two obvious choices.However if you have to programmatically determine the CLR version of an assembly it was compiled against, then us… Continue reading
Posted in C#, Syndicated, VB.NET
Leave a comment
Convert DateTime to Different TimeZones
The TimeZoneInfo.ConvertTimeBySystemTimeZoneId in .NET 3.5 and 4.0, converts a time to the time in another time zone, based on a time zone identifier. Here’s how to use this method using different time zone identifiers like “India Standard Time”,… Continue reading
Posted in C#, Syndicated, VB.NET
Leave a comment
Programmatically Determine the Operating System using .NET
Here’s how to programmatically determine the Windows OS you are using. I will make use of the ManagementObjectSearcher class hereC#using System;using System.Management;namespace ConsoleApplication1{class Program{ public static void Main() { … Continue reading
Posted in C#, Syndicated, VB.NET
Leave a comment
Detect if a String contains Special Characters
There are many ways to detect if a String contains Special Characters. In this code snippet, I will show a quick way to detect special characters using Regex.C#static void Main(string[] args){ string str = “Th!s $tri^g c@n$ist $pecial ch@rs”; Mat… Continue reading
Posted in C#, Syndicated, VB.NET
Leave a comment
LATEST NEWS
