Pages
-
Recent Posts
- Revolving Door: MPAA Hires Chief USTR Negotiator Behind ACTA And TPP’s IP Chapter
- Copyright Maximalists’ Incredible Sense Of Entitlement: If It Challenges The Biz Model We Chose, It Must Be Illegal
- Turkey’s Prime Minister Sues His Own Country Over Twitter
- Picturefill 2
- Police File On Student ‘Bullied Into Committing Suicide’ Strangely Lacking In Evidence Of Bullying
Archives
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- 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
Comments Off on .NET Programming for Absolute Beginners [Free Video Series]
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
Comments Off on Remove all Lower Case Letters using C#
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
Comments Off on Remove all Lower Case Letters using C#
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
Comments Off on Use Anonymous Method with a Delegate in C#
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
Comments Off on Determine if your Laptop is Running on battery using C# or VB.NET
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
Comments Off on Check Database connection using C# or VB.NET
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
Comments Off on Programmatically find CLR version for a .NET assembly
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
Comments Off on Convert DateTime to Different TimeZones
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
Comments Off on Programmatically Determine the Operating System using .NET
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
Comments Off on Detect if a String contains Special Characters