<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CUEHR3YzeSp7ImA9WhRUFUU.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201</id><updated>2012-01-26T05:13:56.881-08:00</updated><category term="Convert .Net 3.5 Application to .Net 2.0" /><category term="How to Remove element from Queue in C#/VB.NET" /><category term="Function Keys in .NET" /><category term="Install Visual Studio 2008 Image Library" /><category term="C# auto-implemented properties" /><category term="Variable intialization in C#" /><category term="VB.NET Function with Multiple Arguments" /><category term="How to find absolute path using C# (.NET)" /><category term="CSharp Error" /><category term="Csharp Tips" /><category term="C# COM Interop" /><category term="Get SubDirectory Size using C#" /><category term="C# default value for long" /><category term="Get Directory Size using.Net" /><category term="Validate MAC Address using Vb.NET" /><category term="Word VSTO add custom property" /><category term="How to handle background events in C#" /><category term="assemblies in C#" /><category term="VSTO Word Addins" /><category term="Extract custom property from Word document using VSTO" /><category term="Visual Basic .NET Change Word Built-in property" /><category term=".NET Controls.Add" /><category term="XSLT XML to HTML conversion" /><category term="CSharp Error7CSharp  Control cannot fall through from one case label3C#  Control cannot fall through from one case label" /><category term="C# Length of the Array" /><category term="Writing XML Files using C#" /><category term="Extract Interface" /><category term="Using F8 in C#" /><category term=".Net Explicit Conversion with Casting in .Net" /><category term="List Add Method .NET" /><category term="ListView.Sorting in .NET" /><category term="Delete Files using C#" /><category term="VB.NET IsValueType" /><category term=".NET Environment.MachineName" /><category term="C# default value for Boolean" /><category term="declare the data type of the variable in .NET" /><category term="C# Error CurrentCulture" /><category term="Visual Studio 2008 Image Library" /><category term="C# Class Examples" /><category term="Default Constructors in .NET" /><category term="How to Enabling Smart Tags in Word / Excel" /><category term="VB.NET XML to HTML Conversion" /><category term="case sensitive String comparison" /><category term="Readonly Fields in C#" /><category term="Implicit conversion from 'Object'" /><category term="C# StreamWriter" /><category term="Retrieve data from SQLDataReader using FieldNames in C# (.NET)" /><category term="C# RGB Color code" /><category term="C# Indexer example" /><category term="Decimal to Hexadecimal Conversion using .NET" /><category term="Using Directive" /><category term="C# Today Method" /><category term="VB.Net OpenFileDialog" /><category term="Visual Basic .NET Option Explicit" /><category term="runtime errors could occur in .NET" /><category term="VSTO Addin Functions in VBA" /><category term="List ReadOnly files using C#" /><category term="VB.Net" /><category term="C# get Existing Instance of Excel" /><category term="DataColumns in VB.NET" /><category term="HTML with embedded messages using .NET" /><category term="C# What are Static Functions/methods?" /><category term="Friend Variable in VB.NET" /><category term="VSTO Get Built-in property to a Word Document" /><category term="Capture Closing of an application using VB.Net" /><category term="Multiple Return Parameters in C#" /><category term="Mutators in C#" /><category term=".Net" /><category term="String.Equals method" /><category term="Wait for user input in C# Console Application" /><category term="DataRows in C#/VB.NET" /><category term="Kill Word Runtime using VB.NET" /><category term="Add Range to List using C#/.NET" /><category term="List All files using .NET" /><category term=".NET Color Dialog" /><category term="C# Beep using Message boxes" /><category term="Cannot Delete a File Error in C#" /><category term="How to Create Interfaces in .NET" /><category term="Get and Set Methods in C#" /><category term="Default Constructors in .C#" /><category term="C# File Copy" /><category term="Backstage View Introduction" /><category term="Check Password using C# .NEt" /><category term="VB.Net Form Close vs Form Dispose" /><category term=".Serialization in .NET" /><category term="CE (.NET) Retrieve Desktop folder fullpath. How to get the full Desktop path using C# (.NET)" /><category term="C# Error Code CS0165" /><category term="C# PI Constant" /><category term="Modeless forms in .Net" /><category term="Subtracting Months using VB.NET" /><category term="C# Desktop" /><category term="Overwriting files using .NET" /><category term="C# code samples" /><category term=".NET List of Files" /><category term="UserDomainName Function in C#" /><category term=".NET Int64..::.Parse Method" /><category term="List View Control in .NET" /><category term="List All Directories using C#" /><category term="C# default values" /><category term="Visual Studio Immediate Window" /><category term="C# Class Interfaces" /><category term="C# (.NET) IsPathRooted method" /><category term="DataGridView columns" /><category term="Adding EventHandlers for control events" /><category term="Automatically send a mail with attachment using VB.NET" /><category term="Compiler Error CS0708 in C#" /><category term="C# Regular Expressions" /><category term="How to set Default Button in using C#" /><category term="Retrieve Stored Text from Clipboard using VB.NET" /><category term="Specify initial values of the array in C#" /><category term="Temporary Files in .NET (C#)" /><category term="C# Error ID:CS1526" /><category term="Add Child Nodes to Tree View using C#" /><category term="C# GetDirectories Method" /><category term=".NET Creating DLLs" /><category term="Kill Excel Runtime using VB.NET" /><category term="ASP.NET AJAX History" /><category term="C# Sin Function" /><category term="Accessing command line arguments as an array using C#" /><category term="FileNotFoundException  Error" /><category term="Get and Set Methods in .NET" /><category term="LINQ and C#" /><category term="VSTO and .NET 4.0" /><category term="VSTO Excel Application Addin" /><category term="Difference between Dates in VB.NEt" /><category term="C# ForEach Statement" /><category term="Subtracting Days using VB.NET" /><category term="Deploying VSTO applications" /><category term="Differences between .NET Structs and Classes" /><category term="Get Directory Size using C#" /><category term="VSTO Array to Range" /><category term="How to Sort Listbox" /><category term="DataTable in VB.NET/C#" /><category term="Show Line Numbers VB" /><category term="Imports Statement in .NET" /><category term="C# SelectionMode property of the listbox" /><category term="C# Date Time" /><category term="C# FileMove" /><category term="multiple instances of .Net Application" /><category term="VB2005 OpenFileDialog" /><category term="Base Class Constructors in .NET" /><category term="Split Function in Visual Basic .Net" /><category term="Automatic initialization of arrays in .NET (C#)" /><category term="VB.NET Regular Expression to Check URL" /><category term="Redim in VB.NET" /><category term="Flush in C#" /><category term="Windows Forms ErrorProvider component in VB.NET" /><category term="How to create a destructor in C#" /><category term="Re-install .NET Framework 3.5" /><category term="Insert Values for Multiple Cells using Excel VSTO" /><category term="Move and Overwrite files using C#" /><category term="VSTO C#/VB.NET Excel Autofilter" /><category term="ConnectionString retrieval" /><category term="C# Create XML Files" /><category term="List Sub Directories using C#" /><category term="Import aliases in .NET" /><category term="Immediate and Command window in Visual Studio" /><category term="VB.NET Count Number of Strings" /><category term="C# MouseHover event in Windows Forms" /><category term="How to get desktop screen size using VB.NET" /><category term="Form ShowDialog" /><category term="Partial Classes in VB.NET" /><category term="C# non-static field" /><category term="Extract External links in a web page using Vb.NET Regular Expressions" /><category term="Regular Expressions in .NET" /><category term="Pass by Reference/Pass by Value in VB.NET/C-Sharp/C#" /><category term="C# Multithreading Example" /><category term="Get Available Disk Space using VB.Net" /><category term="GetDomainName in .NET" /><category term="How to override functions in C#" /><category term="Copy files in .NET" /><category term="C# GetTempFileName method" /><category term=".NET Beep Function" /><category term="VB.NET ListBOx and Arrays" /><category term="Check LeapYear using VB.NET" /><category term=".NET Temp Folder" /><category term="C# Delete Files." /><category term="Literal of type double cannot be implicitly converted to type decimal" /><category term="How to call an abstract method" /><category term="#region in C#" /><category term="Threading in C#" /><category term="C# AddAccessRule" /><category term="'variable' but is used like a 'method' Error in Arrays" /><category term="Alternate Views in .Net" /><category term="Solution for Overload resolution failed Error" /><category term="Sorting ListView items in C#" /><category term="C# Environ" /><category term="Customize BackGround Color in Windows Forms using C#" /><category term="Select Case Statement - C#" /><category term="C# Get Method" /><category term="VB.NET Conversion functions" /><category term=".NET Temporary Folder" /><category term="VB.NET StringComparison" /><category term="Validate Strong Password rules using C#" /><category term="Differences between C# Structs and Classes" /><category term="Protected Friend in VB.Net" /><category term="Write ASCII Files using C#" /><category term="Private Constructors in .C#" /><category term="Autocomplete Text in VB.NET" /><category term="C# Get Computer Name" /><category term="VSTO Excel Autofit Columns" /><category term="virtual methods in C#" /><category term="Sleep Function VB.NET" /><category term="Get Week day" /><category term="C# GetObject Excel.Application" /><category term="Thread.Sleep in VB.NET" /><category term="VB.NET/C# Abstract methods" /><category term="Check if a Character is a WhiteSpace using .NET" /><category term="Validate URL Addresses using VB.NET Regular Expression" /><category term="Create Mail in Vb.Net with attachments" /><category term="Webbrowser Controls in VB.NET/C#" /><category term="C# Select Multiple Items in Listbox" /><category term="C# File Class" /><category term="Project Types in .NET 4" /><category term="Read Each Line Separately using C#" /><category term="Abstract classes and methods in .NET (C#)" /><category term="VS2005 Public Variable" /><category term="TextBox to Array in VB.NET" /><category term="C# Function overriding" /><category term="C# Path Class" /><category term="ListView.Sorting in C#" /><category term="VSTO" /><category term="C# convert 32 bit to 64 bit application" /><category term="Extract built-in property using Vb.NET" /><category term="Create Custom Task Panes for Word using VSTO. Create a Word Addin using Visual Studio" /><category term="Change style of Buttons to Microsoft XP Standard using .Net" /><category term="Use of unassigned local variable 'name'" /><category term="C# MultiEventHandlers" /><category term=".NET Find Odd Numbers" /><category term="Raise Exceptions in C# / .NET" /><category term="LinkClicked Event VB.NET" /><category term="C# String.Format Method" /><category term="Properties in C#" /><category term="C# fixed size buffer" /><category term="C# StringBuilder Class Append Method" /><category term="Avoiding Temporary Strings in C# / Reduce Unnecessary Garbage Collection in C#" /><category term="C# Enable Scripting" /><category term="Partial Classes in C# (.NET)" /><category term="Use F8 for Debugging .NET (C#) code" /><category term="How to reference a Excel Range using C#" /><category term="Listbox Sorted Error" /><category term="ASP.Net Get User Name" /><category term="Electronic Clock in VB.Net" /><category term="How to use resource files in C# Application" /><category term="C# Error Handling" /><category term="Write Text Files using C#" /><category term="Parametrized Query in .NET" /><category term="Get System Information in VB.NET" /><category term="Difference between Visual Studio Add-ins and Shared Add-ins" /><category term="Compiling Class to DLL using C#" /><category term="Add an Array to List" /><category term="C# Output Parameter" /><category term="C# Excel Error No overload for method 'get_Range' takes '1' arguments" /><category term="C# GetSubDirectories Method" /><category term="Integer to Scientific notation using .NET" /><category term="Nullable Type in C#" /><category term="C# GetNodeAt Method" /><category term="Programmatically insert XML Declaration using C# (.NET)" /><category term="C#/VB.NET Excel Autofilte" /><category term="C# XML to HTML Conversion" /><category term="Unloading Forms in .Net" /><category term="Adding Days using VB.NET" /><category term=".Net StreamWriter" /><category term="C# StatusStrip Control Example" /><category term="Retrieve Listbox Selected" /><category term="C# Default value for decimal" /><category term="Identify LeapYear using VB.NET" /><category term="How to call the base class constructor from a derived class" /><category term="How to get the return value from C# program (console application)" /><category term="C# ACL" /><category term="VB.NET Color name" /><category term="Public access modifier in VB.NET" /><category term="Setting Default Buttons in Visual Basic.Net" /><category term="C# Add nodes to Tree View" /><category term="C# Set Method" /><category term="Visual Studio 2010 Online Project Templates" /><category term="C# Resize Window Screen" /><category term="Extract Graphics from Clipboard using Vb.NET" /><category term="VB.NET Import aliases" /><category term="Protected Keyword in C#" /><category term="SelectNextControl method" /><category term="Add XML Declaration using C# (.NET)" /><category term="C# ActiveX control" /><category term="vbTab equivalent in C#" /><category term="C# Opening and Closing Text files" /><category term="VB.NET Controls - DomainUpDown Example" /><category term="C# Beep Sound" /><category term="C# access modifiers" /><category term="How to use Tab Characters in C#" /><category term="How to set Cancel Button in Windows Forms using C#" /><category term="Clear List View items using .NET" /><category term="System.Reflection in C#" /><category term="Application Types in .NET 4" /><category term="Check Multiple Instances using C#" /><category term="VB.NET CType operator overloaded" /><category term="Class Designer" /><category term="Array.Sort in C#" /><category term="C# Default Button" /><category term="Base Class Constructors in C#" /><category term="Computer Name in ASP.Net" /><category term="Excel is not closed in runtime using excel.Quit()" /><category term="Local Type Inference in .NET" /><category term="Validate URL Address using Vb.NET" /><category term="C# Processor Count" /><category term="C# Accept Button" /><category term="C# KeyPress in Console Application" /><category term="Imports Word = Microsoft.Office.Interop.Word" /><category term="C# Console Application" /><category term="C# how to set background colour or list view" /><category term="C# library (.dll)" /><category term="C# 'variable' but is used like a 'method' Error" /><category term="C# non-static property" /><category term="Accessors C#" /><category term="Copying Files using .NET" /><category term="How to convert dates to British format using C#" /><category term="How to find relative path using C# (.NET)" /><category term="How to get the list of files using .NET" /><category term="C# String Count" /><category term="C# Write-only properties" /><category term="How to specify NewLine Characters in C#" /><category term="VB.NET Windows Form Controls" /><category term="Initial values of the array in .NET" /><category term="Multithreading in C# Console Application" /><category term="Suppress ContextSwitchDeadlock Warnings in .NET" /><category term="List Sort Method C#" /><category term="Masking Password character using .NET" /><category term="C# default value for character" /><category term="Visual Studio 2010 Project Types in .NET 4" /><category term="Sleep Function" /><category term=".NET exception handling to detect incorrect email addresses" /><category term="xsltsettings" /><category term=".NET Imports Statement Aliases" /><category term="Windows Forms Color Dialog" /><category term="VB.NET Get No of Sundays for a specified time" /><category term="Internal Keyword in C#" /><category term="C# System.Disgnostics" /><category term="Attach Files to email using Vb.NET" /><category term="How to Search All Directories using C#" /><category term="Type conversions in C#" /><category term="C# Excel Offset Function" /><category term="Visual Studio ContextSwitchDeadlock Warnings" /><category term="System.Collections namespace in .NET" /><category term="Clear Clipboard Content using VB.NET" /><category term="Press any key to continue in C#" /><category term="Serialization of Classes in .NET" /><category term="Local Data file in VB.Net" /><category term="File.Exists in C#" /><category term="null reference exception in .NET" /><category term="Masking Password character using C#" /><category term="Formatted Text Oupuut in VB.NET" /><category term="C# Environment.MachineName" /><category term="Check if the OpenDialog is cancelled in C#" /><category term="C# ConsoleKeyInfo" /><category term="Setting  Cancel Buttons in Visual Basic.Net" /><category term="C# Variant" /><category term="VB.NET Abstract classes" /><category term="VB.NET SendCompleted event" /><category term="FileCopy in .NET" /><category term="OpenFileDialog  in Visual Basic .Net" /><category term="Send HTML Messages using VB.NET" /><category term="Enable VSTO Addin" /><category term="C# Default Constructors" /><category term="Use DateTime instead of Date or datetime in C#" /><category term=".Net Get Computer Name" /><category term=".NET Function to Count No of Days in a month" /><category term="Create an alias in C#" /><category term=".NET DLL Location" /><category term="Beep in .NET" /><category term="How to send mail using .C#" /><category term="Closing Forms in .Net" /><category term="C# Select Case" /><category term="Arrays in Excel AutoFilter C#" /><category term="C# XSLT" /><category term="C# default value for byte" /><category term="Frame Control in C#" /><category term="IsWhiteSpace Method C#" /><category term=".NET Mod Function. .NET Find Remainder" /><category term="Tristate Variables in C#" /><category term="Implicit Typed Variables in C#" /><category term="Win32 API QueryPerformanceCounter" /><category term="C# Listbox Selected Value" /><category term="Open Google from Windows Forms application" /><category term="Show Line Numbers in C#" /><category term="Visual Basic 2005 application Option Explicit" /><category term="Retrieve all XML elements using C#" /><category term="Mod Operator in C#" /><category term="Int.TryParse in .NET" /><category term="Visual Basic .NET Option Strict" /><category term="get_Range Method of Worksheet Class" /><category term="C# Kill Function" /><category term="Int.TryParse in C#" /><category term="Threading in VB.NET" /><category term="LINQ  List files based on Size" /><category term="Delete All List view Items using .NET" /><category term=".NET OpenFileDialog Control" /><category term="How to call a .NET DLL from VBA. How to call a VB.Net Function from Excel VBA/Word VBA" /><category term="Array.Sort function in Excel VBA. Using .Net DLLs in Excel VBA" /><category term="CSharp WriteLine Function Error" /><category term="How to use destructors in C#" /><category term="C# Alert User" /><category term="C# Function to return more than one value" /><category term="'HasValue' is not a member of 'Boolean'" /><category term="C# Add New Button to Excel Backstage" /><category term="VB.NET MailAddress" /><category term="SetError Method in VB.NET" /><category term="Retrieve Clipboard Text from using VB.NET" /><category term="C# Listbox Display Value" /><category term="Microsoft XP Style Buttons and Controls on Form in .Net" /><category term="C# Abstract classes" /><category term="Use Webmail in Contact us Page in ASP.NET" /><category term="FormClosing Event" /><category term="Common Dialog in VB.Net" /><category term="Check Email Addresses using Regular Expression" /><category term="VB.NET Set Built-in property of Word Document. Modify Word Document’s built-in property using Vb.NET" /><category term="Windows Forms Mouse Hover Event in C# (.NET)" /><category term="VB.NET Function Keys. VB.NT Keydown Event Function Keys" /><category term="Sign an assembly in VS 2008" /><category term="Filter by FileSize using .NET" /><category term="Protected Internal in C#" /><category term="Regex.Replace method" /><category term="VSTO Worksheet get_Range Method" /><category term="C# Windows Forms" /><category term="C# WriteLine Function Error" /><category term="How to Add Resources to C# Windows Application" /><category term="Public Variables in Visual Studio .Net" /><category term="FileCopy in C#" /><category term="Generic List to ListBox" /><category term=".NET Sin Function" /><category term="C# Excel Errors" /><category term="'XElement' in C#" /><category term="Name 'XlCellType' is not declared Error in VB.NET" /><category term="Type Inference in .NET" /><category term=".NET IDeserializationCallback.OnDeserialization" /><category term="Shared add-in" /><category term="C# assembly" /><category term="Copy Array to Excel Range usiong VSTO" /><category term="C# Command Line Arguments" /><category term="Get Current Date using C#" /><category term="C# Create Tunes" /><category term="Read XML Files using C#" /><category term="C# Write Text Files" /><category term="File conversions using C#" /><category term="VSTO get_Range Method" /><category term="Mod Operator in CSharp" /><category term="How to call a VSTO Addin Function from VBA" /><category term="VB.NET KeyDown Event" /><category term="Use of Partial Classes in .NET" /><category term="identifier expected" /><category term="Add a Tree View Control to the form" /><category term="Command Line Arguments in C#" /><category term="Beep Function in .NET" /><category term="Convert XML files to HTML files using C#" /><category term="Check if the Date is in DayLightSaving Range using VB.NET" /><category term="Method with Variable Parameters C#/VB.NET" /><category term=".NET Framework 2.0 update not found. The win32manifest will not be embedded" /><category term="Visual Studio Command Window" /><category term="How to close leftover Word Runtime using VB.NET" /><category term="List Sort Method .NET" /><category term="Interfaces in .NET" /><category term="VB.net EnableRaisingEvents" /><category term="VB.NET Error ID: BC42105" /><category term="Protected Keyword in VB.NET" /><category term="HasValue property in C#" /><category term="How to run a process in background using C#" /><category term="ASP.NET MVC" /><category term="VB.NET get built-in property" /><category term="C# handle function key press" /><category term="How to Add element to Queue in C#/VB.NET" /><category term="C# Cancel Button" /><category term="Change the Caption of Windows Form using C#" /><category term="C# Error" /><category term="C# invalid arguments in ‘ToString’ Error" /><category term="How to specify Tab Characters in C#" /><category term="Visual Basic.NET retrieve built-in property" /><category term="C# Events" /><category term="Check existence of file using C#" /><category term="C# Extract Data from SelectedItems" /><category term="C# Environment.UserName" /><category term="Modal Forms in .Net" /><category term="VB.NET ActiveX control" /><category term="Office Development" /><category term="Beep in C# Console Application" /><category term=".NET Create Tunes" /><category term="Access Modifiers in VB.NET" /><category term="Clear List View items using C#" /><category term="IsExist Method in C#" /><category term="ASP.NET Dynamic Data" /><category term="CE (.NET) Retrieve MyDocuments folder fullpath. How to get the full MyDocuments path using C# (.NET)" /><category term="Signing assembly files in Visual Studio" /><category term="C# Beep Function" /><category term="DateDiff function in VB.NET" /><category term="C# Ubound Function" /><category term="C# Adding nodes to TreeView control" /><category term="Double to Decimal Conversion in C#" /><category term="Object data type in VB.Net" /><category term="Send emails asynchronously using .NET" /><category term="Manage Local Data Files in Projects" /><category term="Arrays in VB.Net" /><category term="Alert in .NET" /><category term=".Net Get Subdirectories" /><category term="Formatting XML Files using C#" /><category term="Frame control in VB.NET" /><category term="Remove DOCTYPE declaration from XML Files using C#" /><category term="Destructors in C#" /><category term="Manipulating Excel Adding Loadtime" /><category term="VB.NET Error ID: CS0650" /><category term="Using Directive in C#" /><category term="VB.NET FileInfo class" /><category term="ToolBox UserControls VB.NET" /><category term="Comparison in C#/VB.NET" /><category term="VB 2005 Open Note pad appilcation" /><category term="XSLT in C#" /><category term=".NET Processor Count" /><category term="Compose a tune using C#" /><category term=".NET Scientific notations" /><category term="Create button on-the-fly using .Net (C#)" /><category term="Math Table Example using VB.NET/C#" /><category term="Var keyword in C#" /><category term="Extract Built-in property from Word document using VSTO" /><category term="C# code snippets" /><category term="Form Close MEthod" /><category term="Imports Excel = Microsoft.Office.Interop.Excel" /><category term="C# Color Dialog" /><category term="Properties in .NET" /><category term="Static Constructors in .NET (C#)" /><category term="Drives in .NET" /><category term="Visual Studio Variable Scope" /><category term="Convert .Net 3.5 Project to .Net 2.0" /><category term=".NET BackGround Worker Example" /><category term="Delete All List view Items using C#" /><category term="VB.NET REgex" /><category term=".NET New Operator" /><category term="Selecting Directories in VB.Net" /><category term="Dot Net" /><category term="Format Currency to Pound/Euro using C#/VB.NET" /><category term="VB.Net Instances" /><category term="C# CAST Function" /><category term="GetConnectionString Method in C# (.NET)" /><category term="Overwriting files using C#" /><category term="Formatted Output in .NET" /><category term="Windows Forms DomainUpDown control" /><category term="Copy files in C#" /><category term="VSTO Add-ins vs. Shared Add-ins" /><category term="SQLServer Table Data to Listbox" /><category term="C# ToolStripLabel Example" /><category term="Extract files greater than 1GB using LINQ" /><category term="DomainUpDown Control in VB.NET" /><category term="C# executable (.exe)" /><category term="Check existence of folder using .NET" /><category term="OpenFileDialog  in Visual Basic 2005" /><category term=".NET Implicit conversion" /><category term="Display error messages in tooltips using Vb.NET" /><category term="Debug.Print in C#" /><category term="Sorting One Dimensional arrays using C#" /><category term="Property declaration in VB.NET" /><category term="VB.NET RGB Color code" /><category term="C# Upper bound of the Array" /><category term="Visual Studio .NET Convert Console Application to Windows Forms Application" /><category term="C# Get No of Saturdays for a Specific time" /><category term="C# Array of User Defined Type" /><category term="VB.NET AddAccessRule" /><category term="C# Listbox external data binding" /><category term="Linked Resources in VB.NET" /><category term="VB.NET  Regex" /><category term="OpenFileDialog Filters" /><category term="SQLDataReader Exception" /><category term=".NET Deleting Files" /><category term="Get All Elements of an XML using C#" /><category term="Disable/Enable Maximize Box on Windows Forms" /><category term="How to Get System folder information using C#" /><category term="SelectedItemChanged event  in VB.NET" /><category term="check the existence of the file using VB.NET" /><category term="C# reads all lines of the file into a string array" /><category term="Disable/Enable Maximize Button on Windows Forms using C#" /><category term=".Net Get User Name" /><category term="VB.NET Regular Expression to Check Zip Code Validate Zip codes using VB.NET Regular Expressions" /><category term="Serialization in .NET" /><category term="How to add Status Bar to Windows forms using C# (.NET)" /><category term="ActiveControl property" /><category term="Index was outside the bounds of the array" /><category term="Dynamic creation of Controls in C#" /><category term="Scripting in XSL files using C#" /><category term="C# Not Operator" /><category term="VB.NEt Value types" /><category term="C# Load XML" /><category term="Detect errors in email addresses" /><category term="Excel Errors" /><category term="StackTrace in VB.Net" /><category term="Retrieve custom property from Word document using VSTO" /><category term="Rank of an array in C#" /><category term="Select Word Document in VB.Net" /><category term="How to use NewLine Characters in C#" /><category term="Create a Formatted XML file using C#" /><category term="VB.NET Code to Delete Clipboard Contents" /><category term="MaskedTextBox Control in VB.NET" /><category term="C# Datetime Type" /><category term="Change the Form start-up position using C#" /><category term="Convert Text files to XML using C#" /><category term=".NET Days in a Month" /><category term="C# Array Ubound Function" /><category term="C# vbNewLine" /><category term="Raise Error in C# (.NET) / Throw Error/Exception in C# (.NET)" /><category term="VB.NET WinForm get the Desktop Size" /><category term="Adding TreeView controls to Windows Forms" /><category term="# MSDN Subscribers: Get Visual Studio 2008 Now" /><category term="VB.NET Regex  to Match Zip Code" /><category term="Retrieve Read-Only files using C#" /><category term="cannot convert from 'System.Text.StringBuilder' to 'string' Error" /><category term="Split Function Examples" /><category term="C# Destructors" /><category term="C# Error codes" /><category term=".NET Signing the program" /><category term="Structs in .NET" /><category term="C# Environmental Variables" /><category term="Prevent Multiple Instances using C#" /><category term="Access Modifiers in C#" /><category term="C# EventHandler" /><category term="C# Create Equispaced Text File" /><category term="C# ApplicationDAta" /><category term=".NET Download Files" /><category term="Matrix in C#" /><category term="DayCount using VB.NET" /><category term="C# New Operator" /><category term="Check if the OpenDialog is cancelled in .NET" /><category term="VSTO Custom Task Panes" /><category term="Threading Errors in .NET" /><category term="# Download Visual Studio 2008 Express Editions" /><category term="C# Unrecognized escape sequence" /><category term="VB.NET Get procedure" /><category term="LINQ CSV to XML" /><category term="System.Runtime.Serialization.IDeserializationCallback" /><category term="C# ERRORLEVEL" /><category term="C# Int64..::.Parse Method" /><category term="C# MultiSelect ListBox" /><category term="Name 'XlFileFormat' is not declared." /><category term="C# File.Move method" /><category term="base keyword in C#" /><category term=".NET Compiling Class to DLL" /><category term="C# Common Dialog Example" /><category term=".NET 3.5 Enhancements Training Kit" /><category term="IDeserializationCallback interface" /><category term="Call Method in Addin from Visual Basic Applications" /><category term="Retrieve Built-in property from Word document using VSTO" /><category term="VB.NET 32 bit to 4 bit application" /><category term="C# missing directives" /><category term="C# ReadAllLines method" /><category term="C" /><category term="Check if Variable has value in VB.NET using HasValue" /><category term="C# GetObject Method" /><category term="Word is not closed in runtime using Word.Quit()" /><category term="C# Cos Function" /><category term="VB.NET Format Currency to Pound/Euro/dollar" /><category term="CharArray in C#" /><category term="Download Trial Editions of Visual Studio 2008" /><category term="Params Keyword in C# Method" /><category term="AutoResizeColumns in VB.NET DataGridView" /><category term="Extract Images from Clipboard using Vb.NET" /><category term="C# Excel Programming" /><category term="C# how to access base class’s method in derived class" /><category term="C# Error CS1009" /><category term="Nullable Type in Visual Basic.Net" /><category term="Download .NET 3.5 Enhancements Training Kit" /><category term="SearchOption.AllDirectories in C#" /><category term="Set Control’s Background color using C#" /><category term="ADO.NET Data Services and ADO.NET Entity Framework" /><category term="Disable/Enable Minimize Button on Windows Forms" /><category term="C# Temp Folder" /><category term="Exception Handling in VB.Net" /><category term="Remove HTML Tags from String using .NET Regular Expressions" /><category term="Creating Simple Windows Forms Application using C#" /><category term="C# MyDocuments" /><category term="Visual Studio has encountered an exception. This may be caused by an extension." /><category term="Static Constructors in C#" /><category term="Switch Case Statement in C#" /><category term="How to write XML Specification using C#" /><category term="Peek in Queue" /><category term=".NET Find Even Numbers" /><category term="Structs in C#" /><category term="C# Color Name" /><category term="Option Strict On disallows implicit conversions from 'Double' to 'Integer'" /><category term="How to enable Office Addins" /><category term="Readonly Properties in C#" /><category term="VB.NET SendAsync  method" /><category term="VB.NET Excel Offset Function" /><category term="CopyFile Function in VB.Net" /><category term="Copying Files using C#" /><category term="How to enable smart tags in Word 2003 and Excel 2003" /><category term="C# Download Files" /><category term="'keyword' is a keyword -  Compiler Error CS1041" /><category term="Using Tree View Designer in .NET" /><category term="Cannot create a file exception in C#" /><category term="StackOverFlow Exception in Setting Properties (C#/.NET)" /><category term="How to open a website from Windows Form application" /><category term="Creating Arrays in C#" /><category term="Write to Text File using .Net" /><category term="Signing assembly files in VS 2008" /><category term="Constructors in C#" /><category term="Dot NEt REgular Expressions" /><category term=".NET Arrays Base" /><category term="Nullable Variables in C#" /><category term="Parametrized Query in C#" /><category term="VB.NET IsBodyHtml property" /><category term="What are Structs" /><category term="C# Read-Write Properties" /><category term="Computer Name in .Net" /><category term="StreamWriter Unrecognized escape sequence" /><category term="Add Handler in VB.NET" /><category term="Environment.StackTrace" /><category term="C# Enum operator" /><category term="C# BackGround Worker Example" /><category term="Download Microsoft C# Language Specification" /><category term="Weekend" /><category term="Using F8 in VB.NET" /><category term="C# StatusBar Example" /><category term=".NET Cos Function" /><category term="Beep in C#" /><category term=".NET Error Codes" /><category term="Operator  cannot be applied to operands of type 'string' and 'string' - CS0019" /><category term="C# Convert CSV To XML" /><category term="CE (.NET) Retrieve ApplicationData folder fullpath. How to get the full Applicationdata path using C# (.NET)" /><category term="Visual Basic 2005 application Option Strict" /><category term="C# Get Machine Name" /><category term="Reset Currency using C#/VB.NET" /><category term="C# Exists Method" /><category term="New Operator and Default Constructors" /><category term="System.Xml.Xsl.XslTransformException" /><category term="C# Tree View Control" /><category term="Public ReadOnly Property  in VB.NET" /><category term="C# Get User Name" /><category term="Adding Months using VB.NET" /><category term=".NET  project template files" /><category term="Check existence of file using .NET" /><category term=".Net GetTempFileName method" /><category term="C# Add Resources" /><category term="VB.NET CurrentCulture" /><category term="How to Check if the Date is in DayLightSaving Range using VB.NET" /><category term="System.Runtime.InteropServices namespace" /><category term="File.Exists in .NET" /><category term="Selecting a Folder in VB.Net" /><category term="VB.NET Arrays" /><category term="C# GetActiveObject Method" /><category term="How to get desktop screen size using C#" /><category term="Convert String to Long using C#" /><category term="Customizing LoadBehavior Registry for Addins" /><category term="Freefile in .NET (C#)" /><category term="Validate eMail Addresses using VB.NET Function" /><category term="VB.Net Prevent form closing" /><category term="Your step-into request resulted in an automatic step-over of a property or operator." /><category term="How to Create Interfaces in C#" /><category term="DirectoryInfo.GetFiles method in .NET" /><category term="C# uninitialized variables" /><category term="Accessors .NET" /><category term="Keypress Event Not Firing in VB.NET" /><category term="Multiple Return Parameters in .NET" /><category term="DateSerial Function in VB.NET" /><category term="IDeserializationCallback.OnDeserialization in .NET" /><category term="GroupBox Control in C#" /><category term="TreeView MouseDown events" /><category term="file share FullTrust permission in .NET" /><category term="VB.NET Progress Bars" /><category term="C# Conversion" /><category term="Using C# Scripts in XSL File" /><category term="Example for .NET Serialization" /><category term="VATO" /><category term="Rank of an array .NET" /><category term="Temporary Folder using .NET (C#)" /><category term="C# Enumeration" /><category term="Databinding Listbox with SQL Server" /><category term="Send Asynchronous emails using VB.NET" /><category term="Open Process using Vb.net" /><category term="Boxing and Unboxing in C#" /><category term="Zipcode TextBox entry in Vb.NET Used Masked Text Boxes." /><category term="C# OpenFileDialog Box Example" /><category term="Validate eMail Addresses using VB.NET Regular Expression" /><category term="Download the .NET Framework 3.5" /><category term="Embed Pictures in mail using .NET" /><category term="Embed images in eMail messages using .NET" /><category term="FolderBrowser Dialog" /><category term=".NET PI Constant" /><category term="Vb.NET Multi Event Handlers" /><category term="How to enable smart tags in Word 2007 and Excel 2007" /><category term="Throw Exceptions in C# / .NET" /><category term="How to add an Image/Picture to C#/.NEt project" /><category term="Private Constructors in .NET" /><category term=".NET CSV To XML" /><category term="C# Manipulate XML" /><category term=".Net conversion keywords" /><category term="Array Declaration in C#" /><category term="Extract Links From WebPage using VB.Net Regular Expressions" /><category term="System.Xml.Linq" /><category term="Read Text File Line by Line using C#" /><category term="Copying Files using .Net Functions" /><category term="How to access resources through code using C#/VB.NET" /><category term="C# Conversion Errors" /><category term="C# Creating DLLs" /><category term="Alert in C#" /><category term="C# Find Odd Numbers" /><category term="C# RGB-Name list" /><category term=".Net Indexer examples" /><category term=".NET Environment.UserName" /><category term="Public access modifier in C#" /><category term=".NET Tan Function" /><category term="Filter files by date using DirectoryInfo" /><category term="Sorting ListView items in .NET" /><category term="Compiler Error CS0708 in .NET" /><category term="filepath argument is missing" /><category term="Convert HTML to TExt using VB.NET" /><category term="VB.NET Set procedure" /><category term="C# Tips" /><category term="MSXSL using C#" /><category term="VB.NET Timer Tick event" /><category term="Overriding ToString Method in C#/VB.NET" /><category term="VB.NET The Project Location is Not Trusted Dialog Box" /><category term="VB.NET Error ID: BC42017" /><category term="C# Class Inheritance" /><category term="System.Globalization.CultureNotFoundException was unhandled" /><category term="System.Reflection InvokeMember method" /><category term="How to access an instance (non-static0 member in C#" /><category term="C# Tan Function" /><category term="Base Keyword in .NET" /><category term="List Add Method C#" /><category term="Date Conversion using C#" /><category term="Delete Files using .NET" /><category term="VB.NET Windows form Validation" /><category term="Form Dialog Method" /><category term="ArrayLists C#" /><category term="How to insert value in a range using VSTO" /><category term="Split Arrays in VB.Net" /><category term="Converting String to Integer using C#" /><category term="DLL Creating from Command Line in C#" /><category term=".NET StatusStrip Control Example" /><category term="Interfaces in C#" /><category term="Specify initial values of the array in .NET (C#)" /><category term="Retrieve Built-in Property of Word Document using C# (.NET)" /><category term="VB.NEt IsEnum" /><category term="C# Error ID CS0650" /><category term="C# (.NET) Path Class" /><category term="C# TreeView Controls" /><category term="Using C# Scripts in XML File" /><category term="How to Execute a process in separe thread" /><category term="Remove validation from XML using C#" /><category term="VB.Net Split Function" /><category term="C# Read-only properties" /><category term="Type Inference in C#" /><category term="Dir Function in VB.NET" /><category term="Dynamic creation of Controls in .NET" /><category term=".NET Dir Function" /><category term="Sleep Function in VB.NET" /><category term="VB.NET Environment Variables. C# Environment Variables" /><category term="ArrayList to Listbox using C#" /><category term="Identify Spaces using C# (.NET)" /><category term="What are abstract methods in C# (.NET)" /><category term=".NET Create Temporary Files" /><category term="VSTO Add Customproperty to a Word Document" /><category term="Free Download Download Microsoft C# Language Specification" /><category term="C# DocumentCompleted Event" /><category term=".NET GetFiles" /><category term=".NET Log Function" /><category term="Can destructors be called explicitly?" /><category term="Iterate through multiselect listbox in C#" /><category term="Dir Function in C#" /><category term="How to get Existing Instance of Excel in C#" /><category term="How to get values from SQL Server to ListBOX" /><category term="Win32 API QueryPerformanceFrequency" /><category term="Get Free Disk Space in all drives using VB.Net" /><category term="VB.Net Control Events Life Cycle" /><category term="Validate Password using .NET C#" /><category term="C# StringBuilder Class" /><category term="Select public members to form interface" /><category term="C# Beep Method" /><category term="VB.NET ArrayLists" /><category term="Line Numbers Display" /><category term="C# simultaneous execution example" /><category term="C# Find Even Numbers" /><category term="Strip HTML Tags from String using VB.NET Regular Expressions" /><category term="Mutators in .NET" /><category term=".NET Get User’s Domain Name" /><category term="Debug.Assert in C#" /><category term="CharArray in VB.NET" /><category term="List View Control in C#" /><category term="Indexers in C#" /><category term="LinkLabel Control in VB.NET" /><category term="Indented XML Files using C#" /><category term="C# ConfigurationManager Connection Strings" /><category term="Verbatim identifiers in .NET (C#)" /><category term="Excel No overload for method 'get_Range' takes '1' arguments" /><category term="Widening Conversions in .Net" /><category term="How to add Webbrowser to Windows Forms" /><category term="Local Type Inference in C#" /><category term="C# Controls.Add" /><category term="VB.NET Stop Watch" /><category term="VB.NET Error ID:CS1526" /><category term="How to access a static member in C#" /><category term="C# ComVisibleAttribute" /><category term="C# Cookies" /><category term="XSLT Error" /><category term="Get Disk Space using VB.NET" /><category term="C# EnableScripts" /><category term="List Disabled VSTO Addins" /><category term="C-sharp Select Case" /><category term="C# Listbox and SQL Server" /><category term="Move Files using C#" /><category term="C# Main() program return values" /><category term="Extract built-in property using Visual basic.NET" /><category term="Abstract classes  in C#" /><category term="Enumeration in .NRT" /><category term="Example of Struct in C#" /><category term="How to create Object Array in .Net (C#)" /><category term="XMLDocument InsertBefore method in C#" /><category term="C# WinForm get the Desktop Size" /><category term="Word VSTO retrieve Built-in property" /><category term="C# non-static method" /><category term="VB.NET Sleep Function" /><category term=".NET Convert Decimal to Hexadecimal" /><category term="Filter by FileSize using LINQ" /><category term="Abstract Classes and its implementation in .NET" /><category term="System.IndexOutOfRangeException was unhandled" /><category term="VB.NET COM Interop" /><category term="Sorting Arrays in C#" /><category term="Get Domain Name Function in C#" /><category term="CType operator overloading in .NET" /><category term="Build Errors in C#" /><category term="VB.NET Resize Window Screen" /><category term=".NET (C#) automatic initialization of arrays" /><category term="Add Objects to ListBox using C#" /><category term="Return Multiple Values – C# Function" /><category term="Ser Property C# goes to infinite loop" /><category term="C# Mod Function. C# Find Remainder" /><category term="vbNewLine equivalent in C#" /><category term="C# MainModule.ModuleName" /><category term="Windows Forms controls" /><category term="'XElement' in .NET" /><category term="Basics of BackStage view Customization" /><category term="Timer Event in VB.NET" /><category term="KeyDown Event Not Firing" /><category term="Check existence of folder using C#" /><category term="C# Array sort method" /><category term="C# Structs" /><category term="C# Log Function" /><category term="Get System Information in C#" /><category term=".NET Debugging using F8" /><category term="C# Equivalent for VB.NET NOT Operator" /><category term="Alert in C# console application" /><category term="Mod Function in C#" /><category term="Get Read Only Files using C#" /><category term=".NET Get Machine Name" /><category term="Constructors in .NET" /><category term="Open  File Dialog Control in C#" /><category term="CausesValidation property" /><category term="Disable/Enable Minimize Box on Windows Forms" /><category term="Split Function in VB.Net" /><category term=".NET Missing Directives" /><category term="Send HTML mails" /><category term="C# DayOfWeek" /><category term="FileSize using C#" /><category term="C# BackColor property" /><category term="Creating ArrayLists in VB.NEtm" /><category term="MSXSL Error" /><category term="ASP.NET Silverlight controls" /><category term="VB.Net calculate process time in milliseconds" /><category term="Enumeration in C#" /><category term="Extract files based on Size in LINQ" /><category term="number of processors in the machine using C# (.NET)" /><category term="CE (.NET) Retrieve Cookies folder fullpath. How to get the full Cookies path using C# (.NET)" /><category term="VSTO Addins" /><category term="C# Console Application Wait" /><category term="Visual Studio Add-ins" /><category term="Get Folder Size using.Net" /><category term="Static Classes in VB.Net" /><category term="Sorting Array List" /><category term="Debug.Write in C#" /><category term="C# Listbox Selected Item" /><category term=".NET Get Files modified within a week" /><category term="C# Array" /><category term="How to close leftover Excel Runtime using VB.NET" /><category term="Command Line Argument Arrays in C#" /><category term="VB.NET Regular Expression to Validate MAC Address" /><category term="VB.NEt REgular Expressions" /><category term=".NET What are Static Functions/methods?" /><category term="C# Temporary Folder" /><category term="VB.NET access modifiers" /><category term="C# - MouseDown event in Tree View Control" /><category term="How to assign List as datasource" /><category term="#region in Visual Studio" /><category term="GroupBox in VB.NET" /><category term="Function Keys in C#" /><category term="Visual Studio KeyDown Event" /><category term="How to send mail using .NET" /><category term="Semicolon after method or accessor block is not valid" /><category term="C# vbTab" /><category term="C# Kill Method" /><category term="Develop Office Applications using .NET 4.0" /><category term="Visual Studio Add-ins vs. Shared Add-ins" /><category term="Validate Phone Numbers" /><category term="C# SetAccessControl" /><category term="List AddRange method in C#" /><category term="C# change background image of Windows forms" /><category term="Get Built-in Property of Word Document using C# (.NET)" /><title>Dot Net Tips &amp; Tricks , C# (C Sharp)Tips &amp; Tricks</title><subtitle type="html">Visual Studio .NET Tips and Tricks, VB.NET Code Samples, C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks, C# Tips &amp;amp; Tricks, Visual Studio 2010, .NET Framework Code Samples, VB.NET Tips &amp;amp; Tricks</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://dotnetdud.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>329</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/blogspot/PTnz" /><feedburner:info uri="blogspot/ptnz" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;D0AFRHo7fCp7ImA9WhdVF00.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-4249959088792245877</id><published>2011-09-22T08:35:00.000-07:00</published><updated>2011-09-22T08:35:15.404-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-22T08:35:15.404-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Threading in C#" /><category scheme="http://www.blogger.com/atom/ns#" term="How to Execute a process in separe thread" /><category scheme="http://www.blogger.com/atom/ns#" term="Threading in VB.NET" /><title>Threading in .NET/C#  - How to get Thread Details</title><content type="html">&lt;strong&gt;&lt;span style="color: red; font-size: large;"&gt;How to Execute a process in separate thread in VB.NET/C#&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
This was one of my favorites - Threading; but somehow I ignored for long. Now let us delve into it&lt;br /&gt;
&lt;br /&gt;
Let us execute some small piece of code (a definite loop) through normal method and with the help of threading. Normal methid &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;private void ThreadExampleSync()
        {
            for (int iCnt = 0; iCnt &amp;lt; 3; iCnt++)
            {
                for (int j = 0; j &amp;lt; 100; j++)
                {

                    for (int j1 = 0; j1 &amp;lt; 9000000; j1++)
                    {

                    }
                }
                Console.WriteLine("Iteration {0} is executed by {1} at {2}", iCnt.ToString(), Thread.CurrentThread.ManagedThreadId.ToString(), DateTime.Now.ToString());
            }
        }
&lt;/pre&gt;When we move to threading let us take the looping part into a separate method and call the method using different Threads  &lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;private void ThreadExampleAsync()
        {
            for (int iCnt = 0; iCnt &amp;lt; 3; iCnt++)
            {
                var t1 = new Thread(ExecuteTasks);
                t1.Start(iCnt);
            }
        }


        private  static void ExecuteTasks(object iInput)
        {
            for (int j = 0; j &amp;lt; 100; j++)
            {

                for (int j1 = 0; j1 &amp;lt; 9000000; j1++)
                {
                    //nothing

                }
            }
            Console.WriteLine("Iteration {0} is executed by {1} at {2}", iInput.ToString(), Thread.CurrentThread.ManagedThreadId.ToString(), DateTime.Now.ToString());
        }
&lt;/pre&gt;&lt;br /&gt;
Since we are calling new thread for each iteration - ExecuteTasks gets executed by different threads as shown below&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-ghu8wQrE1wI/TntT_awPuyI/AAAAAAAAD_4/1k4a52HZvyw/s1600/VB.NET%2BC%2523%2BMulti-Threading%2B-%2BTime%2BTaken%2Bfor%2BThreads.png" imageanchor="1"&gt;&lt;img border="0" height="260" src="http://2.bp.blogspot.com/-ghu8wQrE1wI/TntT_awPuyI/AAAAAAAAD_4/1k4a52HZvyw/s400/VB.NET%2BC%2523%2BMulti-Threading%2B-%2BTime%2BTaken%2Bfor%2BThreads.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
The time taken when we use different threads is faster than the synchronous way. However, care must be taken in Threading to avoid excess memory usage/leakages&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-4249959088792245877?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/quq3P7aJHxXx2mvdXOkeZDHK8m4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/quq3P7aJHxXx2mvdXOkeZDHK8m4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/quq3P7aJHxXx2mvdXOkeZDHK8m4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/quq3P7aJHxXx2mvdXOkeZDHK8m4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/WZv3VgW3XeA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/4249959088792245877/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/09/threading-in-netc-how-to-get-thread.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/4249959088792245877?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/4249959088792245877?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/WZv3VgW3XeA/threading-in-netc-how-to-get-thread.html" title="Threading in .NET/C#  - How to get Thread Details" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-ghu8wQrE1wI/TntT_awPuyI/AAAAAAAAD_4/1k4a52HZvyw/s72-c/VB.NET%2BC%2523%2BMulti-Threading%2B-%2BTime%2BTaken%2Bfor%2BThreads.png" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/09/threading-in-netc-how-to-get-thread.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUAFQHY5fip7ImA9WhdVFU0.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-4321999834844414530</id><published>2011-09-20T00:28:00.000-07:00</published><updated>2011-09-20T00:28:31.826-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-20T00:28:31.826-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Threading in C#" /><category scheme="http://www.blogger.com/atom/ns#" term="Threading Errors in .NET" /><category scheme="http://www.blogger.com/atom/ns#" term="Threading in VB.NET" /><title>Argument 1: cannot convert from 'method group' to 'System.Threading.ThreadStart'</title><content type="html">The best overloaded method match for 'System.Threading.Thread.Thread(System.Threading.ThreadStart)' has some invalid arguments &lt;br /&gt;
&lt;br /&gt;
These errors occur when the Method that is called has parameters other than object. The compiler expects the signature to take object&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;var t1 = new Thread(ExecuteTasks);&lt;/pre&gt;&lt;br /&gt;
will throw an error if the method signature is like this&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;private  static void ExecuteTasks(int iInput)&lt;/pre&gt;&lt;br /&gt;
The following one is acceptable        &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;private  static void ExecuteTasks(object iInput)&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-4321999834844414530?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FI1x3GHrtLHcs8UliCfHWNUzARk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FI1x3GHrtLHcs8UliCfHWNUzARk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FI1x3GHrtLHcs8UliCfHWNUzARk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FI1x3GHrtLHcs8UliCfHWNUzARk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/Fx0S1jCIavg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/4321999834844414530/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/09/argument-1-cannot-convert-from-method.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/4321999834844414530?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/4321999834844414530?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/Fx0S1jCIavg/argument-1-cannot-convert-from-method.html" title="Argument 1: cannot convert from 'method group' to 'System.Threading.ThreadStart'" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/09/argument-1-cannot-convert-from-method.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcDRXY7fip7ImA9WhdVEk4.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-8723748435081799094</id><published>2011-09-16T22:41:00.000-07:00</published><updated>2011-09-16T22:41:14.806-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-16T22:41:14.806-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET Environment Variables. C# Environment Variables" /><category scheme="http://www.blogger.com/atom/ns#" term="Get System Information in VB.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="Get System Information in C#" /><title>VB.NET / C# - How to Check if OS is 64-Bit or 32-Bit</title><content type="html">The following snippet gives a hint :&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void GetOSConfig()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string sProcess;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Environment.Is64BitOperatingSystem&amp;nbsp; == true ) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sProcess = "64 Bit";&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sProcess = "32 Bit";&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine("OS is {0}", sProcess&amp;nbsp; );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-8723748435081799094?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SQLBvAaXwt8BwzNDA1-AjJMXnsg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SQLBvAaXwt8BwzNDA1-AjJMXnsg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/SQLBvAaXwt8BwzNDA1-AjJMXnsg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SQLBvAaXwt8BwzNDA1-AjJMXnsg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/73G1y1Qfz7k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/8723748435081799094/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/09/vbnet-c-how-to-check-if-os-is-64-bit-or.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/8723748435081799094?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/8723748435081799094?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/73G1y1Qfz7k/vbnet-c-how-to-check-if-os-is-64-bit-or.html" title="VB.NET / C# - How to Check if OS is 64-Bit or 32-Bit" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/09/vbnet-c-how-to-check-if-os-is-64-bit-or.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0UGRHo6eyp7ImA9WhdVEUg.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-368243785846018493</id><published>2011-09-16T00:46:00.000-07:00</published><updated>2011-09-16T00:47:05.413-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-16T00:47:05.413-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Params Keyword in C# Method" /><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET Function with Multiple Arguments" /><category scheme="http://www.blogger.com/atom/ns#" term="Method with Variable Parameters C#/VB.NET" /><title>How to Pass Multiple/Variable Parameters to a Function/Method in C#/.NET</title><content type="html">&lt;strong&gt;&lt;span style="color: red; font-size: large;"&gt;C#/VB.NET Function with dynamic parameters / How to make a function accept infinite number of arguments&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Normally a method has a definite number of parameters and they are passed from the calling method. What if you are not sure of the number of parameters or want to be flexible in that. A Simple example can be a Adding machine - which adds any numbers sent .&lt;br /&gt;
&lt;br /&gt;
It is possible to achieve that with params keyword - &lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;private&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;void&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; AddAsManyNumbersAsUCan(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;params&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;[] numbers)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;        {&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; iTotal = 0;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;foreach&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; i1 &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;in&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; numbers)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;            {&lt;br /&gt;
&lt;br /&gt;
iTotal += i1;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;Console&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;.WriteLine(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;"Sum of {0} numbers added to {1}"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;,numbers.Length ,iTotal);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;        }&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
The above method accepts any number of arguments (provided they are of the same type). The method can be called like:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;            AddAsManyNumbersAsUCan();&lt;br /&gt;
&lt;br /&gt;
AddAsManyNumbersAsUCan(1,2,3);&lt;br /&gt;
&lt;br /&gt;
AddAsManyNumbersAsUCan(100,-1,23,2121,4562);&lt;br /&gt;
&lt;/span&gt;Will give the following output&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-rMlLWay2wG0/TnL-FT4oIqI/AAAAAAAAD_Q/SVPWb-ZvZqc/s1600/VB.NET+C%2523+Pass+Infinite+Number+of+Arguments.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="260" src="http://2.bp.blogspot.com/-rMlLWay2wG0/TnL-FT4oIqI/AAAAAAAAD_Q/SVPWb-ZvZqc/s400/VB.NET+C%2523+Pass+Infinite+Number+of+Arguments.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" class="separator" style="clear: both; text-align: center;"&gt;You can change the type of the parameter to a generic one - List etc to have a broader use ﻿&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-368243785846018493?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/L4V2yJbo2c49kHaznivIOa6xkxc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/L4V2yJbo2c49kHaznivIOa6xkxc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/L4V2yJbo2c49kHaznivIOa6xkxc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/L4V2yJbo2c49kHaznivIOa6xkxc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/lgEZULqkn1s" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/368243785846018493/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/09/how-to-pass-multiplevariable-parameters.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/368243785846018493?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/368243785846018493?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/lgEZULqkn1s/how-to-pass-multiplevariable-parameters.html" title="How to Pass Multiple/Variable Parameters to a Function/Method in C#/.NET" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-rMlLWay2wG0/TnL-FT4oIqI/AAAAAAAAD_Q/SVPWb-ZvZqc/s72-c/VB.NET+C%2523+Pass+Infinite+Number+of+Arguments.png" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/09/how-to-pass-multiplevariable-parameters.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8ARX06fyp7ImA9WhdVEU0.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-8292137792151307663</id><published>2011-09-15T10:30:00.000-07:00</published><updated>2011-09-15T10:30:44.317-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-15T10:30:44.317-07:00</app:edited><title>VB.NET FindControl in  Windows forms application</title><content type="html">&lt;strong&gt;&lt;span style="color: red; font-size: large;"&gt;How to loop through windows form controls by name (C# / VB.NET)&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
ASP.NET&amp;nbsp;dev have the advantage of FindControl, which does this work quite easily. For Windows forms developers the need to loop through the controls using ForEach in the control collection or can use the Find method as shown below:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;foreach&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;Control&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; ctl &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;in&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; Controls.Find(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;"textBox"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; + i, &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;false&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;))&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;                {&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; stext = ctl.Text ;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;                };&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Here we have used ControlCollection Controls.Find method to refer a Textbox and get the value&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-8292137792151307663?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5xuoBSu9fGJrpAUwEmQieoc85t0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5xuoBSu9fGJrpAUwEmQieoc85t0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5xuoBSu9fGJrpAUwEmQieoc85t0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5xuoBSu9fGJrpAUwEmQieoc85t0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/9YMqsz24ZvM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/8292137792151307663/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/09/vbnet-findcontrol-in-windows-forms.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/8292137792151307663?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/8292137792151307663?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/9YMqsz24ZvM/vbnet-findcontrol-in-windows-forms.html" title="VB.NET FindControl in  Windows forms application" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/09/vbnet-findcontrol-in-windows-forms.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcAQX08fCp7ImA9WhdVEU0.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-3316520960376193279</id><published>2011-09-15T09:27:00.000-07:00</published><updated>2011-09-15T09:27:20.374-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-15T09:27:20.374-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="String.Equals method" /><category scheme="http://www.blogger.com/atom/ns#" term="case sensitive String comparison" /><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET StringComparison" /><category scheme="http://www.blogger.com/atom/ns#" term="Comparison in C#/VB.NET" /><title>String Comparison (case sensitive and case-insensitive) in C#/VB.NET</title><content type="html">&lt;div style="color: red;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;How to IgnoreCase in C#/VB.NET String Comparison&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
Whether you like or not, life revolves around comparison . Here let us see how to compare two strings using Equals method.&lt;br /&gt;
&lt;br /&gt;
Equals method takes two arguments - the string to be compared and the comparison type (Case Sensitive or Insensitive)&lt;br /&gt;
&lt;br /&gt;
The following snippet gives a hint of both:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static void StringCompExample()&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string s1 = "MulTIpleCASE";&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string s2 = "MultipleCase";&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool compare_result = false;&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //case sensitive comparison&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compare_result = s1.Equals(s2);&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(compare_result.ToString ());&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //case insensitive comparison&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compare_result = s1.Equals(s2, StringComparison.InvariantCultureIgnoreCase);&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(compare_result.ToString());&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-3316520960376193279?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6_2GgyGgdYuBCDmF00c8IKGTynU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6_2GgyGgdYuBCDmF00c8IKGTynU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6_2GgyGgdYuBCDmF00c8IKGTynU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6_2GgyGgdYuBCDmF00c8IKGTynU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/cws-ayCPJ0M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/3316520960376193279/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/09/string-comparison-case-sensitive-and.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/3316520960376193279?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/3316520960376193279?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/cws-ayCPJ0M/string-comparison-case-sensitive-and.html" title="String Comparison (case sensitive and case-insensitive) in C#/VB.NET" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/09/string-comparison-case-sensitive-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMMSHcyfSp7ImA9WhdVEU0.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-4825316293227410328</id><published>2011-09-15T09:18:00.000-07:00</published><updated>2011-09-15T09:18:09.995-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-15T09:18:09.995-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Regex.Replace method" /><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET  Regex" /><category scheme="http://www.blogger.com/atom/ns#" term="Dot NEt REgular Expressions" /><category scheme="http://www.blogger.com/atom/ns#" term="C# Regular Expressions" /><title>How to Remove Alternate/Extra Text (Text within Parenthesis) using VB.NET/C#</title><content type="html">How to Remove Text within Brackets/ Braces using VB.NET/C#&lt;br /&gt;
&lt;br /&gt;
Regular expressions come handy when we have this kind of requirement. Regex.Replace method can be used remove the unwanted text&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static void RemoveTextWithinParens()&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string pattern = @"\([^\(\)]+\)";&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string interesting_string = "SOMETHING (#2) and some more rhing (#3 inside braces)";&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Regex rgx = new Regex(pattern, RegexOptions.IgnoreCase); &lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MatchCollection matches = rgx.Matches(interesting_string);&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string removed_String = rgx.Replace(interesting_string, "");&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-4825316293227410328?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ThgbUfvDoll5k9rq-3hLkupxqIw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ThgbUfvDoll5k9rq-3hLkupxqIw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ThgbUfvDoll5k9rq-3hLkupxqIw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ThgbUfvDoll5k9rq-3hLkupxqIw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/n_FlVwhj67A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/4825316293227410328/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/09/how-to-remove-alternateextra-text-text.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/4825316293227410328?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/4825316293227410328?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/n_FlVwhj67A/how-to-remove-alternateextra-text-text.html" title="How to Remove Alternate/Extra Text (Text within Parenthesis) using VB.NET/C#" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/09/how-to-remove-alternateextra-text-text.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08DR308eyp7ImA9WhdWE0Q.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-3042571608883161912</id><published>2011-09-07T04:44:00.000-07:00</published><updated>2011-09-07T04:44:36.373-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-07T04:44:36.373-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="TextBox to Array in VB.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="Redim in VB.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="Arrays in VB.Net" /><category scheme="http://www.blogger.com/atom/ns#" term="Add an Array to List" /><title>How to Convert Textboxes to Array/List in VB.NET/C#</title><content type="html">&lt;strong&gt;&lt;span style="color: red; font-size: large;"&gt;Array of Textboxes using VB.NET/C# / Loop through Textboxes in VB.NET&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Here is a simple code that loops through all the controls on a Windows form and Appends the Array/List with the values&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="vb" name="code"&gt;Sub GetTextBoxValues()

        Dim arTextBoxVal() As String
        Dim arTBCnt As Integer = 0
        Dim ListTB As New List(Of String)

        For Each ctlText In Me.Controls
            If TypeOf ctlText Is TextBox Then
                ReDim Preserve arTextBoxVal(arTBCnt)
                arTextBoxVal(arTBCnt) = DirectCast(ctlText, TextBox).Text
                ListTB.Add(DirectCast(ctlText, TextBox).Text)
                arTBCnt += 1
            End If
        Next

    End Sub
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-3042571608883161912?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FPvBfuZBqaX1wWfT-qk34VFl6So/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FPvBfuZBqaX1wWfT-qk34VFl6So/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FPvBfuZBqaX1wWfT-qk34VFl6So/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FPvBfuZBqaX1wWfT-qk34VFl6So/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/LsPTeB0468k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/3042571608883161912/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/09/how-to-convert-textboxes-to-arraylist.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/3042571608883161912?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/3042571608883161912?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/LsPTeB0468k/how-to-convert-textboxes-to-arraylist.html" title="How to Convert Textboxes to Array/List in VB.NET/C#" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/09/how-to-convert-textboxes-to-arraylist.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE4GQXgyeip7ImA9WhdWE0Q.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-7254642169261011655</id><published>2011-09-07T03:55:00.000-07:00</published><updated>2011-09-07T03:55:20.692-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-07T03:55:20.692-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AutoResizeColumns in VB.NET DataGridView" /><category scheme="http://www.blogger.com/atom/ns#" term="DataTable in VB.NET/C#" /><category scheme="http://www.blogger.com/atom/ns#" term="DataGridView columns" /><category scheme="http://www.blogger.com/atom/ns#" term="DataColumns in VB.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="DataRows in C#/VB.NET" /><title>How to create DataTable on the fly and add Rows (data) using VB.NET/C#</title><content type="html">How to Populate DataGridView on the fly using VB.NET&lt;br /&gt;
&lt;br /&gt;
Not all data come from a database table; at times we need to create in on the fly. &lt;br /&gt;
&lt;br /&gt;
Here is a situation that warrants that - we create a datatable and then create appropriate data columns&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="vb" name="code"&gt;Dim oDataTable As New DataTable("BookingInfo")
        
        oDataTable.Columns.Add(New DataColumn("PassengerName"))
        oDataTable.Columns.Add(New DataColumn("JourneyDate"))
      ...
  &lt;/pre&gt;&lt;br /&gt;
Then data row is created and added to the table &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="vb" name="code"&gt;oDR = oDataTable.NewRow
        oDR("PassengerName") = "Dhuvaraga Prasath Mohanram"
        oDR("JourneyDate") = Now.ToString()
        oDR("Source") = "Chennai"
        oDR("Destination") = "Nellore"

        oDataTable.Rows.Add(oDR)
&lt;/pre&gt;&lt;br /&gt;
This can be continued till all rows are added; &lt;br /&gt;
&lt;br /&gt;
DataGridView is then bound to the datatable using DataSource property&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="vb" name="code"&gt;DataGridView_BookingInfo.DataSource = oDataTable
        DataGridView_BookingInfo.AutoResizeColumns()
&lt;/pre&gt;&lt;br /&gt;
Which gives you the screen below&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-R6nnfr6KjaE/TmdL4Vbz9EI/AAAAAAAAD6o/yJLBD60xwgk/s1600/DataGridView%2BVB.NET%2BOn%2BThe%2BFly.png" imageanchor="1"&gt;&lt;img border="0" height="198" src="http://2.bp.blogspot.com/-R6nnfr6KjaE/TmdL4Vbz9EI/AAAAAAAAD6o/yJLBD60xwgk/s400/DataGridView%2BVB.NET%2BOn%2BThe%2BFly.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;pre class="vb" name="code"&gt;Sub CreateOnTheFlyDataTable()

        Dim oDataTable As New DataTable("BookingInfo")
        Dim oDR As DataRow

        oDataTable.Columns.Add(New DataColumn("PassengerName"))
        oDataTable.Columns.Add(New DataColumn("JourneyDate"))
        oDataTable.Columns.Add(New DataColumn("Source"))
        oDataTable.Columns.Add(New DataColumn("Destination"))

        oDR = oDataTable.NewRow
        oDR("PassengerName") = "Dhuvaraga Prasath Mohanram"
        oDR("JourneyDate") = Now.ToString()
        oDR("Source") = "Chennai"
        oDR("Destination") = "Nellore"

        oDataTable.Rows.Add(oDR)

        DataGridView_BookingInfo.DataSource = oDataTable
        DataGridView_BookingInfo.AutoResizeColumns()

    End Sub
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-7254642169261011655?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hQ97iBqRF-sb2ZUWIMYYy7jiwzQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hQ97iBqRF-sb2ZUWIMYYy7jiwzQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hQ97iBqRF-sb2ZUWIMYYy7jiwzQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hQ97iBqRF-sb2ZUWIMYYy7jiwzQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/zMkxkDSAkFI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/7254642169261011655/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/09/how-to-create-datatable-on-fly-and-add.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/7254642169261011655?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/7254642169261011655?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/zMkxkDSAkFI/how-to-create-datatable-on-fly-and-add.html" title="How to create DataTable on the fly and add Rows (data) using VB.NET/C#" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-R6nnfr6KjaE/TmdL4Vbz9EI/AAAAAAAAD6o/yJLBD60xwgk/s72-c/DataGridView%2BVB.NET%2BOn%2BThe%2BFly.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/09/how-to-create-datatable-on-fly-and-add.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8AQXs-fCp7ImA9WhdXF08.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-1100916740691312719</id><published>2011-08-30T09:14:00.000-07:00</published><updated>2011-08-30T09:14:00.554-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-30T09:14:00.554-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET Count Number of Strings" /><category scheme="http://www.blogger.com/atom/ns#" term="C# String Count" /><title>How to count a string within another string in VB.NET/C#</title><content type="html">How to get number of given string using C#/VB.NET&lt;br /&gt;
&lt;br /&gt;
After a lull I wanted to start somewhere; here is what I got for now (thanks to Arivuchutarji who initiated this debate).&lt;br /&gt;
&lt;br /&gt;
We have come across many situations where we need to count a string within other. &lt;br /&gt;
&lt;br /&gt;
There are three ways to do (infact two)&lt;br /&gt;
&lt;br /&gt;
1. Linq&lt;br /&gt;
2. A Do While loop using IndexOf&lt;br /&gt;
3. Regular Expressions&lt;br /&gt;
&lt;br /&gt;
Here is the LINQ one - it applies to characters and not strings (appreciate if someone could post searching a text within a string)&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;        Dim sCollection As String
        sCollection = "this is a string with some text repeated and some not"
        Dim count As Integer
        count = (From sText In sCollection
                         Where sText = "s"
                         Select sText).Count
&lt;/pre&gt;&lt;br /&gt;
The second one appears primitive - but a foolproof method&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;        Dim cntStr = -1, i1, iStart As Integer
        Dim searchString As String
        searchString = "some"
        Do While i1 &lt;&gt; -1
            i1 = sCollection.IndexOf(searchString, iStart)
            iStart = i1 + 1
        Loop
&lt;/pre&gt;&lt;br /&gt;
And finally, my favorite regular expressions - code is clean if you use this&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;        cntStr = RegularExpressions.Regex.Matches(sCollection, "some").Count
&lt;/pre&gt;&lt;br /&gt;
Appreciate your comments on this&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-1100916740691312719?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sVtkQMA0vQrZ5APwK8O9PTnV7EI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sVtkQMA0vQrZ5APwK8O9PTnV7EI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sVtkQMA0vQrZ5APwK8O9PTnV7EI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sVtkQMA0vQrZ5APwK8O9PTnV7EI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/KNWz0kRsD-I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/1100916740691312719/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/08/how-to-count-string-within-another.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/1100916740691312719?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/1100916740691312719?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/KNWz0kRsD-I/how-to-count-string-within-another.html" title="How to count a string within another string in VB.NET/C#" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/08/how-to-count-string-within-another.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YFSHc6eyp7ImA9WhZbFkk.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-8530008856594746269</id><published>2011-06-21T00:25:00.000-07:00</published><updated>2011-06-21T00:25:19.913-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-21T00:25:19.913-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="C# SetAccessControl" /><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET AddAccessRule" /><category scheme="http://www.blogger.com/atom/ns#" term="C# AddAccessRule" /><category scheme="http://www.blogger.com/atom/ns#" term="C# ACL" /><title>How to Change Permission of Folder in Visual Basic / C#</title><content type="html">&lt;b&gt;&lt;span style="color: red; font-size: large;"&gt;VB.NET Set Folder Permission / C# Set Folder Permission &lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In this snippet we create a new directory and set the permission of it to Fullcontrol using ACL. &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;private static void ChangePermissionOfDir()
        {
            //Folder
            DirectoryInfo NewDir = Directory.CreateDirectory(@"C:\Temp\Te21");

            DirectorySecurity dSecur = NewDir.GetAccessControl();

            FileSystemAccessRule fAccess = new FileSystemAccessRule("Everyone",FileSystemRights.FullControl,AccessControlType.Allow  );


            dSecur.AddAccessRule(fAccess);

            NewDir.SetAccessControl(dSecur);
 
    
        }
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-8530008856594746269?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AuR30YU8-A47mFwnwl68_JxRxoM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AuR30YU8-A47mFwnwl68_JxRxoM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AuR30YU8-A47mFwnwl68_JxRxoM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AuR30YU8-A47mFwnwl68_JxRxoM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/X_qSfYhY9LQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/8530008856594746269/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/06/how-to-change-permission-of-folder-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/8530008856594746269?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/8530008856594746269?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/X_qSfYhY9LQ/how-to-change-permission-of-folder-in.html" title="How to Change Permission of Folder in Visual Basic / C#" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/06/how-to-change-permission-of-folder-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck4MQn8yeSp7ImA9WhZbFkk.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-5289021896259594624</id><published>2011-06-21T00:23:00.001-07:00</published><updated>2011-06-21T00:23:03.191-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-21T00:23:03.191-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="CharArray in C#" /><category scheme="http://www.blogger.com/atom/ns#" term="CharArray in VB.NET" /><title>How to Convert a String to Array of Characters</title><content type="html">The following snippet converts a string to a Character Array using CharArray&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;private static void String2CharArray()        {
            string s1 = "This is a string";
            Char[] ArrayofChars;
            ArrayofChars = s1.ToCharArray();
            Console.WriteLine(s1);
            foreach (char c1 in ArrayofChars)
                Console.WriteLine(c1);
        }
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-5289021896259594624?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/znBmAF3wZUImVNj6h6zSjC4IICE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/znBmAF3wZUImVNj6h6zSjC4IICE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/znBmAF3wZUImVNj6h6zSjC4IICE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/znBmAF3wZUImVNj6h6zSjC4IICE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/-_jzyRxGu3g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/5289021896259594624/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/06/how-to-convert-string-to-array-of.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/5289021896259594624?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/5289021896259594624?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/-_jzyRxGu3g/how-to-convert-string-to-array-of.html" title="How to Convert a String to Array of Characters" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/06/how-to-convert-string-to-array-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUERXs9eyp7ImA9WhZUFk4.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-6802931073923822279</id><published>2011-06-09T09:16:00.000-07:00</published><updated>2011-06-09T09:16:44.563-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-09T09:16:44.563-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Peek in Queue" /><category scheme="http://www.blogger.com/atom/ns#" term="How to Add element to Queue in C#/VB.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="How to Remove element from Queue in C#/VB.NET" /><title>Queue in C# / Add and Remove items from Queue in C# (.NET)</title><content type="html">Queues are common in real world - Flight checkins to School.&amp;nbsp;Here is the way you can use it in C#&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;private static void CustomerServiceQueue()
        {
            Queue CSQ = new Queue();

            CSQ.Enqueue("Gautam");
            CSQ.Enqueue("Nargis");
            CSQ.Enqueue("Beth");
            CSQ.Enqueue("Slobodan");

            Console.WriteLine("Peeking Queue: {0}", CSQ.Peek());

            Console.WriteLine("Check if CSQ Contains Beth : {0}", CSQ.Contains("Beth"));

            while (CSQ.Count &amp;gt; 0)
            {
                Console.WriteLine(CSQ.Dequeue());
            }
           

        }&lt;/pre&gt;&lt;br /&gt;
Contains checks for presence of the given object in the queue. Peek returns the first element from the queue&lt;br /&gt;
&lt;br /&gt;
Dequeuue does the same as Peek, however, it also removes the object&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-6802931073923822279?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/69YtONTBAEfjmYfDcdQDAyZgCU0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/69YtONTBAEfjmYfDcdQDAyZgCU0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/69YtONTBAEfjmYfDcdQDAyZgCU0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/69YtONTBAEfjmYfDcdQDAyZgCU0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/-ZyC7fCTJU4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/6802931073923822279/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/06/queue-in-c-add-and-remove-items-from.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/6802931073923822279?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/6802931073923822279?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/-ZyC7fCTJU4/queue-in-c-add-and-remove-items-from.html" title="Queue in C# / Add and Remove items from Queue in C# (.NET)" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/06/queue-in-c-add-and-remove-items-from.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8MR3s6fyp7ImA9WhZUFUw.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-3672187204527212431</id><published>2011-06-07T23:34:00.000-07:00</published><updated>2011-06-07T23:34:46.517-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-07T23:34:46.517-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="C# Function overriding" /><category scheme="http://www.blogger.com/atom/ns#" term="Overriding ToString Method in C#/VB.NET" /><title>How to Override ToString Method in C# (VB.NET)</title><content type="html">&lt;strong&gt;&lt;span style="color: red; font-size: large;"&gt;Customize ToString Method in C# (VB.NET)&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Overriding ToString Method has its own advantages. &lt;br /&gt;
&lt;br /&gt;
For example, the following class has four fields&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;public class ClassExec
    {
        string _Name;
        
        public string Name
        {
            get { return _Name; }
            set { _Name = value ;}
        }

        public string Source
        {
            get;
            set;
        }

        public string Destination
        { get; set; }

        public DateTime  DOT
        {
            get;
            set;
        }
&lt;/pre&gt;&lt;br /&gt;
If you try to use the ClassExec.ToString() method it will return the fully qualified Class name as default. This doesn't help us much.&lt;br /&gt;
&lt;br /&gt;
Instead let us override the ToString method to return the four fields in a formatted way&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;public override string ToString()
        {
            return (Name + ' ' + Source + ' ' + Destination + ' ' + DOT);
        }
&lt;/pre&gt;&lt;br /&gt;
The following code will now produce the desired output:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;ClassExec cls = new ClassExec();
            cls.Name = "Jackob Johnson";
            cls.Source = "Socchi";
            cls.Destination = "Moscow";
            cls.DOT = DateTime.Parse("12-Jan-2012");

            Console.WriteLine(cls.ToString());&lt;/pre&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-zhx_PZUAs4s/Te8XY5re6rI/AAAAAAAADgM/M2L80ckuNxU/s1600/VB.NET%2BC%2523%2BOverriding%2BTostring%2BMethod.png" imageanchor="1"&gt;&lt;img border="0" height="260" src="http://3.bp.blogspot.com/-zhx_PZUAs4s/Te8XY5re6rI/AAAAAAAADgM/M2L80ckuNxU/s400/VB.NET%2BC%2523%2BOverriding%2BTostring%2BMethod.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-3672187204527212431?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NCgYo_Ze9T_VvjUxm600RlNX2no/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NCgYo_Ze9T_VvjUxm600RlNX2no/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NCgYo_Ze9T_VvjUxm600RlNX2no/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NCgYo_Ze9T_VvjUxm600RlNX2no/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/N14V4e0hElU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/3672187204527212431/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/06/how-to-override-tostring-method-in-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/3672187204527212431?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/3672187204527212431?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/N14V4e0hElU/how-to-override-tostring-method-in-c.html" title="How to Override ToString Method in C# (VB.NET)" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-zhx_PZUAs4s/Te8XY5re6rI/AAAAAAAADgM/M2L80ckuNxU/s72-c/VB.NET%2BC%2523%2BOverriding%2BTostring%2BMethod.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/06/how-to-override-tostring-method-in-c.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UMQn85fyp7ImA9WhZUFEQ.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-4919101655116903290</id><published>2011-06-07T18:08:00.000-07:00</published><updated>2011-06-07T18:08:03.127-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-07T18:08:03.127-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Build Errors in C#" /><title>System.Xml.Serialization.XmlSerializer.XmlSerializer() is inaccessible due to its protection level</title><content type="html">One reason for this error is if you haven't mentioned the type when you initialize the XmlSerializer&amp;nbsp;object&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;XmlSerializer Xser = new XmlSerializer()
&lt;/pre&gt;&lt;br /&gt;
can be replaced with&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;XmlSerializer Xser = new XmlSerializer(this.GetType() );
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-4919101655116903290?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hqEfU7PNbDmP7xNoUGInvvW1DJY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hqEfU7PNbDmP7xNoUGInvvW1DJY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hqEfU7PNbDmP7xNoUGInvvW1DJY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hqEfU7PNbDmP7xNoUGInvvW1DJY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/PfSSts_BDrg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/4919101655116903290/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/06/systemxmlserializationxmlserializerxmls.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/4919101655116903290?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/4919101655116903290?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/PfSSts_BDrg/systemxmlserializationxmlserializerxmls.html" title="System.Xml.Serialization.XmlSerializer.XmlSerializer() is inaccessible due to its protection level" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/06/systemxmlserializationxmlserializerxmls.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYCRHg5eCp7ImA9WhZUE0k.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-1077714084638376081</id><published>2011-06-05T23:36:00.000-07:00</published><updated>2011-06-05T23:36:05.620-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-05T23:36:05.620-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Check existence of folder using .NET" /><category scheme="http://www.blogger.com/atom/ns#" term="Check existence of folder using C#" /><title>How to CreateFolder in C# (.NET) / How to Create a Directory in C# (VB.NET)</title><content type="html">&lt;strong&gt;&lt;span style="color: red;"&gt;How to check if a directory exists in C# / How to check if a&amp;nbsp;folder exists in C#&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Many times backups are created in a new folder with name as date etc. The following snippet checks if directory exists in the particular path and creates it&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;private static void CreateFolder()
        {
        //This example creates a new folder under MyDocuments

            string folderName = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);

            string userName = Environment.UserName;

            folderName = Path.Combine(folderName, userName);

            if (Directory.Exists(folderName) == false)
            {
                Directory.CreateDirectory(folderName);
            }


        }
&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: orange;"&gt;How to combine two paths in .NET&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
The example combines two paths using &lt;span style="color: #0b5394;"&gt;Path.Combine&lt;/span&gt; method. &lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="http://dotnetdud.blogspot.com/2010/04/how-to-download-file-from-website-using.html"&gt;How to Download File from Website using C# (.NET)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://dotnetdud.blogspot.com/2008/11/check-if-file-exists-using-c-net.html"&gt;Check if file exists using C# (.NET)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://dotnetdud.blogspot.com/2008/04/copying-files-using-net-functions.html"&gt;Copying Files using .Net Functions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-1077714084638376081?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/l0-X4f6Y43srG2I36_Kj1kliUvg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/l0-X4f6Y43srG2I36_Kj1kliUvg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/l0-X4f6Y43srG2I36_Kj1kliUvg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/l0-X4f6Y43srG2I36_Kj1kliUvg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/KNmrhLp5RtY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/1077714084638376081/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/06/how-to-createfolder-in-c-net-how-to.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/1077714084638376081?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/1077714084638376081?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/KNmrhLp5RtY/how-to-createfolder-in-c-net-how-to.html" title="How to CreateFolder in C# (.NET) / How to Create a Directory in C# (VB.NET)" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/06/how-to-createfolder-in-c-net-how-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkQGR3Y_eSp7ImA9WhZVF04.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-6288014118125688941</id><published>2011-05-29T22:45:00.000-07:00</published><updated>2011-05-29T22:45:26.841-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-29T22:45:26.841-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="C# ForEach Statement" /><category scheme="http://www.blogger.com/atom/ns#" term="Command Line Argument Arrays in C#" /><category scheme="http://www.blogger.com/atom/ns#" term="C# Array" /><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET Arrays" /><title>ForEach Loop in Array (C# / VB.NET)</title><content type="html">How to iterate elements of Array using ForEach in .NET (C#)&lt;br /&gt;
&lt;br /&gt;
Here is a simple example of that:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;string[] arString = null;
            arString = new string[2];
            arString[0] = "First Element";
            arString[1] = "Second Element";
            foreach (string s1 in arString)
            {
                Console.WriteLine(s1);
            }
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-6288014118125688941?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/y2LlvbJ1LEX1ugMPlcV5K1PAsPc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y2LlvbJ1LEX1ugMPlcV5K1PAsPc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/y2LlvbJ1LEX1ugMPlcV5K1PAsPc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y2LlvbJ1LEX1ugMPlcV5K1PAsPc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/pNBB7y7fDXE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/6288014118125688941/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/05/foreach-loop-in-array-c-vbnet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/6288014118125688941?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/6288014118125688941?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/pNBB7y7fDXE/foreach-loop-in-array-c-vbnet.html" title="ForEach Loop in Array (C# / VB.NET)" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/05/foreach-loop-in-array-c-vbnet.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8ASX07eSp7ImA9WhZVE0U.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-1664891256846926669</id><published>2011-05-25T20:34:00.000-07:00</published><updated>2011-05-25T20:34:08.301-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-25T20:34:08.301-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Formatted Output in .NET" /><category scheme="http://www.blogger.com/atom/ns#" term="Formatted Text Oupuut in VB.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="C# Create Equispaced Text File" /><title>How to Write Padded (Formatted) Text File using VB.NET/C#</title><content type="html">Writing Equi-Spaced Output using C# and VB.NET&lt;br /&gt;
&lt;br /&gt;
Here is a small code to write a multiplication table. &lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;For&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; i1 &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;Integer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; = 1 &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;To&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; 20&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;Console&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;.WriteLine(i1.ToString &amp;amp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;" x  12 = "&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &amp;amp; (i1 * 12).ToString)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; i1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-g_VHNbAMfoQ/Td3IlCF648I/AAAAAAAADZ4/e6Cx6RLLjD8/s1600/VB.NET+Formatted+Text+1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="208" src="http://2.bp.blogspot.com/-g_VHNbAMfoQ/Td3IlCF648I/AAAAAAAADZ4/e6Cx6RLLjD8/s320/VB.NET+Formatted+Text+1.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Have you ever thought it would be better to have it properly aligned. Then use the Padding options (PadeLeft here) to format the output&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;Private Sub WritePaddedText()

        ' Write a Padded Multiplication Table
        For i1 As Integer = 1 To 20
            Console.WriteLine(i1.ToString.PadLeft(2) &amp;amp; " x  12 = " &amp;amp; (i1 * 12).ToString.PadLeft(3))
        Next i1
    End Sub
&lt;/pre&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-ZKuUOjTv28E/Td3J457T7QI/AAAAAAAADZ8/-RKOuqkEJKs/s1600/VB.NET%2BFormatted%2BText%2B1.png" imageanchor="1"&gt;&lt;img border="0" height="260" src="http://2.bp.blogspot.com/-ZKuUOjTv28E/Td3J457T7QI/AAAAAAAADZ8/-RKOuqkEJKs/s400/VB.NET%2BFormatted%2BText%2B1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
See also :How to Create Equispaced Text File using VBA; &lt;a href="http://vbadud.blogspot.com/2007/04/spacing-in-text-files.html"&gt;Spacing in Text Files&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-1664891256846926669?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Re1vvm0Z_ac6b5B7diF4Z0VvUvI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Re1vvm0Z_ac6b5B7diF4Z0VvUvI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Re1vvm0Z_ac6b5B7diF4Z0VvUvI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Re1vvm0Z_ac6b5B7diF4Z0VvUvI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/0Dod-QbtMJE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/1664891256846926669/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/05/how-to-write-padded-formatted-text-file.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/1664891256846926669?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/1664891256846926669?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/0Dod-QbtMJE/how-to-write-padded-formatted-text-file.html" title="How to Write Padded (Formatted) Text File using VB.NET/C#" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-g_VHNbAMfoQ/Td3IlCF648I/AAAAAAAADZ4/e6Cx6RLLjD8/s72-c/VB.NET+Formatted+Text+1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/05/how-to-write-padded-formatted-text-file.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak8CQXs6eyp7ImA9WhZVE0o.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-8541927617792558697</id><published>2011-05-25T20:01:00.000-07:00</published><updated>2011-05-25T20:01:00.513-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-25T20:01:00.513-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Build Errors in C#" /><title>Unable to copy file "obj\x86\Debug\*.exe" to "bin\Debug\*.exe". The process cannot access the file 'bin\Debug\*.exe' because it is being used by another process.</title><content type="html">To release the file go to the Task Manager and see if the Exe is running in the process Tab. Kill the process and Build the project it should work. &lt;br /&gt;
&lt;br /&gt;
But before that make sure why the Exe was still running in the process even after the application is termninated. It might be due to some malperformance of garbage collection&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-8541927617792558697?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TeaIPMNaMV2iwoRXm3mGD42Idl4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TeaIPMNaMV2iwoRXm3mGD42Idl4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TeaIPMNaMV2iwoRXm3mGD42Idl4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TeaIPMNaMV2iwoRXm3mGD42Idl4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/wN9D5BMCctk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/8541927617792558697/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/05/unable-to-copy-file-objx86debugexe-to.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/8541927617792558697?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/8541927617792558697?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/wN9D5BMCctk/unable-to-copy-file-objx86debugexe-to.html" title="Unable to copy file &quot;obj\x86\Debug\*.exe&quot; to &quot;bin\Debug\*.exe&quot;. The process cannot access the file 'bin\Debug\*.exe' because it is being used by another process." /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/05/unable-to-copy-file-objx86debugexe-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkADR3c_eip7ImA9WhZVEkQ.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-1390514234770843274</id><published>2011-05-24T19:32:00.000-07:00</published><updated>2011-05-24T19:32:56.942-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-24T19:32:56.942-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="LinkClicked Event VB.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET Resize Window Screen" /><category scheme="http://www.blogger.com/atom/ns#" term="LinkLabel Control in VB.NET" /><title>VB.NET How to Resize the form along with Controls</title><content type="html">&lt;strong&gt;&lt;span style="color: red; font-size: large;"&gt;Windows Form - Resize Controls Dynamically using VB.NET&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
There would be many occasions you would have come across the need to resize the form to fit some controls/text etc. In the following example we use the combination of LinkLabel and Panel Control to achieve that&lt;br /&gt;
&lt;br /&gt;
Here is the sample form&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-nPf21PCNUAQ/Tdxoyn4QKnI/AAAAAAAADZo/5WOVaZag5Ww/s1600/VB.NET%2BResize%2BForm%2B-%2BHyperlink%2Band%2BPanel%2B1.png" imageanchor="1"&gt;&lt;img border="0" height="236" src="http://1.bp.blogspot.com/-nPf21PCNUAQ/Tdxoyn4QKnI/AAAAAAAADZo/5WOVaZag5Ww/s400/VB.NET%2BResize%2BForm%2B-%2BHyperlink%2Band%2BPanel%2B1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
This is how it needs to be expanded to accomodate the additonal information&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-wrrxivxLJTE/Tdxo20QNZbI/AAAAAAAADZw/mYyM9st3rLw/s1600/VB.NET%2BResize%2BForm%2B-%2BHyperlink%2Band%2BPanel%2B3.png" imageanchor="1"&gt;&lt;img border="0" height="324" src="http://3.bp.blogspot.com/-wrrxivxLJTE/Tdxo20QNZbI/AAAAAAAADZw/mYyM9st3rLw/s400/VB.NET%2BResize%2BForm%2B-%2BHyperlink%2Band%2BPanel%2B3.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
I have used a '+/-' hyperlink (LinkLabel Control) to resize the form. (For more info on Link Label : &lt;a href="http://dotnetdud.blogspot.com/2011/05/hyperlink-control-in-windows-forms.html"&gt;Hyperlink Control in Windows Forms (VB.NET) Application&lt;/a&gt;). You can use &amp;gt;&amp;gt; or &amp;lt;&amp;lt; etc to be more clear&lt;br /&gt;
&lt;br /&gt;
The controls for Year Founded and Financial Performance are enclosed in a Panel&lt;br /&gt;
&lt;br /&gt;
Add the following code to the LinkClicked event of the LinkLabel&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;If Panel1.Height = 0 Then
            Panel1.Height = 110
            Me.Height = Me.Height + 110
        Else
            Panel1.Height = 0
            Me.Height = Me.Height - 110

        End If
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The form gets re-sized on clicking the hyperlink (it actually toggles)&lt;br /&gt;
&lt;br /&gt;
See also : &lt;a href="http://dotnetdud.blogspot.com/2010/08/how-to-get-width-and-height-of-desktop.html"&gt;How to Get Width and Height of Desktop Screen  using C#/VB.NET&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-1390514234770843274?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7SWNPIxtkB2flTtir6s5eWTS1oQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7SWNPIxtkB2flTtir6s5eWTS1oQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7SWNPIxtkB2flTtir6s5eWTS1oQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7SWNPIxtkB2flTtir6s5eWTS1oQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/ChTQ0T36Nt0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/1390514234770843274/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/05/vbnet-how-to-resize-form-along-with.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/1390514234770843274?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/1390514234770843274?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/ChTQ0T36Nt0/vbnet-how-to-resize-form-along-with.html" title="VB.NET How to Resize the form along with Controls" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-nPf21PCNUAQ/Tdxoyn4QKnI/AAAAAAAADZo/5WOVaZag5Ww/s72-c/VB.NET%2BResize%2BForm%2B-%2BHyperlink%2Band%2BPanel%2B1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/05/vbnet-how-to-resize-form-along-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QFRXs7fCp7ImA9WhZWFEo.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-6576264318377085373</id><published>2011-05-15T10:08:00.000-07:00</published><updated>2011-05-15T10:08:34.504-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-15T10:08:34.504-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Open Google from Windows Forms application" /><category scheme="http://www.blogger.com/atom/ns#" term="How to open a website from Windows Form application" /><title>Hyperlink Control in Windows Forms (VB.NET) Application</title><content type="html">How to use Hyperlinks on WinForms (VB.NET)&lt;br /&gt;
&lt;br /&gt;
Create a small Windows Forms like the one below and add LinkLabel Control on the form:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-hJEVnuKmkQA/TdAHeWYIb_I/AAAAAAAADSE/t36uceL9dVo/s1600/VB.NET+HyperLink+Windows+Forms.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="201" src="http://4.bp.blogspot.com/-hJEVnuKmkQA/TdAHeWYIb_I/AAAAAAAADSE/t36uceL9dVo/s320/VB.NET+HyperLink+Windows+Forms.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Add the following code to the LinkLabel's LinkClicked event:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="VB" name="code"&gt;
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
        System.Diagnostics.Process.Start("www.google.com")
    End Sub&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This will open the website in a new IE window&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-6576264318377085373?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_zSUNlW9l-6GEb7ibzSXyx9cEhM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_zSUNlW9l-6GEb7ibzSXyx9cEhM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_zSUNlW9l-6GEb7ibzSXyx9cEhM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_zSUNlW9l-6GEb7ibzSXyx9cEhM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/SzYuS6H3JnQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/6576264318377085373/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/05/hyperlink-control-in-windows-forms.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/6576264318377085373?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/6576264318377085373?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/SzYuS6H3JnQ/hyperlink-control-in-windows-forms.html" title="Hyperlink Control in Windows Forms (VB.NET) Application" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-hJEVnuKmkQA/TdAHeWYIb_I/AAAAAAAADSE/t36uceL9dVo/s72-c/VB.NET+HyperLink+Windows+Forms.png" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/05/hyperlink-control-in-windows-forms.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUAMRXwzcCp7ImA9WhZWFEs.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-961125667431035413</id><published>2011-05-15T05:49:00.000-07:00</published><updated>2011-05-15T05:49:44.288-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-15T05:49:44.288-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="DateDiff function in VB.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="Difference between Dates in VB.NEt" /><title>How to find Difference between two time (Dates) using VB.NET</title><content type="html">Difference between two different dates using VB.NET&lt;br /&gt;
&lt;br /&gt;
DATEDIFF function will come handy to find the difference between a set of dates. The snippet given below gets the difference in seconds &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="VB" name="code"&gt;Private Sub DateDiffExample()

        Dim dt1 As Date = New Date(2011, 5, 15, 10, 11, 2)
        Dim dt2 As Date = New Date(2011, 5, 15, 10, 12, 22)

        Dim dt3 As Long = DateDiff(DateInterval.Second, dt1, dt2)

    End Sub
&lt;/pre&gt;&lt;br /&gt;
You can tweak a bit to get for Minutes or Hours etc by&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="VB" name="code"&gt;Private Sub DateDiffExample()

        Dim dt1 As Date = New Date(2011, 5, 15, 10, 11, 2)
        Dim dt2 As Date = New Date(2011, 5, 15, 10, 12, 22)

        Dim dt3 As Long = DateDiff(DateInterval.&lt;b&gt;Minute&lt;/b&gt;, dt1, dt2)

    End Sub
&lt;/pre&gt;&lt;div class="VB" name="code"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="VB" name="code"&gt;Other useful links:&lt;/div&gt;&lt;div class="VB" name="code"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="VB" name="code"&gt;&lt;a href="http://sqldud.blogspot.com/2007/04/universal-time-or-greenwich-meridian.html"&gt;Universal Time or Greenwich Meridian Time (GMT)&lt;/a&gt;&lt;/div&gt;&lt;div class="VB" name="code"&gt;&lt;a href="http://sqldud.blogspot.com/2007/04/sql-adding-or-subtracting-dates.html"&gt;SQL Adding or Subtracting Dates&lt;/a&gt;&lt;/div&gt;&lt;div class="VB" name="code"&gt;&lt;a href="http://sqldud.blogspot.com/2007/04/getage-get-age-using-sql-query.html"&gt;GetAge - Get Age Using SQL Query&lt;/a&gt;&lt;/div&gt;&lt;div class="VB" name="code"&gt;&lt;a href="http://vbadud.blogspot.com/2007/05/validate-dates.html"&gt;Validate Dates&lt;/a&gt;&amp;nbsp;in VBA&lt;/div&gt;&lt;div class="VB" name="code"&gt;&lt;a href="http://vbadud.blogspot.com/2007/05/compare-files-by-date.html"&gt;Compare Files by Date&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-961125667431035413?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/by9C6dLTSOEtcVbmXMqOtqS-ZQg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/by9C6dLTSOEtcVbmXMqOtqS-ZQg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/by9C6dLTSOEtcVbmXMqOtqS-ZQg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/by9C6dLTSOEtcVbmXMqOtqS-ZQg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/KDyjNdcRC1Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/961125667431035413/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/05/how-to-find-difference-between-two-time.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/961125667431035413?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/961125667431035413?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/KDyjNdcRC1Q/how-to-find-difference-between-two-time.html" title="How to find Difference between two time (Dates) using VB.NET" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/05/how-to-find-difference-between-two-time.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk4HSHY9eyp7ImA9WhZWFEk.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-6775068316901193945</id><published>2011-05-15T00:35:00.000-07:00</published><updated>2011-05-15T00:35:39.863-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-15T00:35:39.863-07:00</app:edited><title>Changes are not allowed while code is running or if the option 'Break all</title><content type="html">If you are getting this error while editing the code, check if the Break all process option is enabled.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-24BKMrj22A8/Tc-BnjXcc0I/AAAAAAAADR8/i-BXtLsfHLU/s1600/DND+Changes+are+Not+Allowed+-+Visual+Studio+Debugging.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="152" src="http://1.bp.blogspot.com/-24BKMrj22A8/Tc-BnjXcc0I/AAAAAAAADR8/i-BXtLsfHLU/s320/DND+Changes+are+Not+Allowed+-+Visual+Studio+Debugging.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-2stZaxAoDSk/Tc-Bo8hRVBI/AAAAAAAADSA/RWlagojK6Sk/s1600/DND+Changes+are+Not+Allowed+-+Visual+Studio+Debugging2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="428" src="http://4.bp.blogspot.com/-2stZaxAoDSk/Tc-Bo8hRVBI/AAAAAAAADSA/RWlagojK6Sk/s640/DND+Changes+are+Not+Allowed+-+Visual+Studio+Debugging2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;If&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-6775068316901193945?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/rOV3LBMD0waFHuHn1MErTdmos6c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rOV3LBMD0waFHuHn1MErTdmos6c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/rOV3LBMD0waFHuHn1MErTdmos6c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rOV3LBMD0waFHuHn1MErTdmos6c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/FVtfEY7cAas" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/6775068316901193945/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/05/changes-are-not-allowed-while-code-is.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/6775068316901193945?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/6775068316901193945?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/FVtfEY7cAas/changes-are-not-allowed-while-code-is.html" title="Changes are not allowed while code is running or if the option 'Break all" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-24BKMrj22A8/Tc-BnjXcc0I/AAAAAAAADR8/i-BXtLsfHLU/s72-c/DND+Changes+are+Not+Allowed+-+Visual+Studio+Debugging.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/05/changes-are-not-allowed-while-code-is.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0EESHY9fyp7ImA9WhZWFE8.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-5279897610922577350</id><published>2011-05-14T20:20:00.000-07:00</published><updated>2011-05-14T20:20:09.867-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-14T20:20:09.867-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="C# DayOfWeek" /><category scheme="http://www.blogger.com/atom/ns#" term=".NET Days in a Month" /><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET Get No of Sundays for a specified time" /><category scheme="http://www.blogger.com/atom/ns#" term="C# Get No of Saturdays for a Specific time" /><title>How to get number of Sundays/Saturdays in a given month using (C#/VB.NET)</title><content type="html">Retrieve No of Fridays for the Current Month.&lt;br /&gt;
&lt;br /&gt;
If you come across a situation where you need to know the number of Fridays/Sundays etc for a given month you can use the following snippet.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;private void NoOfSpecificDaysThisMonth()
        {
            int iDayCnt = 4; // Defaults to four days
            DayOfWeek dw = DayOfWeek.Wednesday;
            
            DateTime firstDay = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            int iRemainder = DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month) % 7;

            if ((dw &amp;gt;= firstDay.DayOfWeek) &amp;amp; ((dw - firstDay.DayOfWeek) &amp;lt; iRemainder))
                {
                     iDayCnt = iDayCnt+1;
                }
                else
                    if ((dw &amp;lt; firstDay.DayOfWeek) &amp;amp; ((7+ dw - firstDay.DayOfWeek) &amp;lt; iRemainder))
                {

                    iDayCnt = iDayCnt + 1;
                }
            
            MessageBox.Show(iDayCnt.ToString());
        }

&lt;/pre&gt;The above gives the No Of Wednesdays for the &lt;span style="color: red;"&gt;Current&lt;/span&gt; month. If you want for any specific month / year you can tweak it a bit like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;DateTime firstDay = new DateTime(&lt;b&gt;2012&lt;/b&gt;, DateTime.Now.Month, 1);
            int iRemainder = DateTime.DaysInMonth(&lt;b&gt;2012&lt;/b&gt;, DateTime.Now.Month) % 7;
&lt;/pre&gt;&lt;div class="c-sharp" name="code"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c-sharp" name="code"&gt;Other links that might be relevant:&lt;/div&gt;&lt;div class="c-sharp" name="code"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;a href="http://dotnetdud.blogspot.com/2008/07/calculating-time-taken-for-operation.html"&gt;&lt;span style="color: #225588;"&gt;Calculating Time taken for an operation using VB.NET (in Milliseconds)&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;a href="http://vbadud.blogspot.com/2008/03/calculate-working-days-excluding.html"&gt;&lt;span style="color: #225588;"&gt;Calculate Working days (Excluding Holdiays) using Excel Function / VBA&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;a href="http://vbadud.blogspot.com/2007/08/automatically-event-repeat-in-excel-vba.html"&gt;&lt;span style="color: #225588;"&gt;Automatically Event Repeat in Excel VBA (OnTime Method)&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;a href="http://vbadud.blogspot.com/2007/05/compare-files-by-date.html"&gt;&lt;span style="color: #225588;"&gt;Compare Files by Date&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-5279897610922577350?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/vgPUz-OlVGkHGKLUCHLyBRQ-H3g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vgPUz-OlVGkHGKLUCHLyBRQ-H3g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/vgPUz-OlVGkHGKLUCHLyBRQ-H3g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vgPUz-OlVGkHGKLUCHLyBRQ-H3g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/lo4CHQUyhrY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/5279897610922577350/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/05/how-to-get-number-of-sundayssaturdays.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/5279897610922577350?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/5279897610922577350?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/lo4CHQUyhrY/how-to-get-number-of-sundayssaturdays.html" title="How to get number of Sundays/Saturdays in a given month using (C#/VB.NET)" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/05/how-to-get-number-of-sundayssaturdays.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUMRXkyfip7ImA9WhZWFE8.&quot;"><id>tag:blogger.com,1999:blog-6497434045878013201.post-1265890080366340079</id><published>2011-05-14T19:24:00.000-07:00</published><updated>2011-05-14T19:24:44.796-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-14T19:24:44.796-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="C# Select Case" /><category scheme="http://www.blogger.com/atom/ns#" term="Switch Case Statement in C#" /><category scheme="http://www.blogger.com/atom/ns#" term="C-sharp Select Case" /><category scheme="http://www.blogger.com/atom/ns#" term="Select Case Statement - C#" /><title>Select Case Statement in C# / C-sharp</title><content type="html">&lt;strong&gt;&lt;span style="color: red; font-size: large;"&gt;Switch Case Statement in C# (.NET)&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Here is an example of Select Case like construct using C#:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;private string ShirtSizes(int ShirtSize)
        {
            switch (ShirtSize)
            {
                case 36:
                    return "Small";
                case 38:
                    return "Medium";
                case 40:
                    return "Large";
                case 42:
                    return "Extra Large";
                case 44:
                    return "XXL";
                default:
                    return "Free Size";
             }

        }
&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: red;"&gt;Fall-Thru in Switch Case Statement in C#(Csharp)&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Fall through can be achieved as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;switch (ShirtSize)
            {
                case 34:
                case 35:
                case 36:
                    return "Small";
                case 38:
                    return "Medium";
... 
&lt;/pre&gt;&lt;br /&gt;
The Switch construct requires &lt;em&gt;jump &lt;/em&gt;statements like GoTo or Break to transfer control outside the loop. Else it will throw an &lt;strong&gt;&lt;span style="color: red;"&gt;Error  Control cannot fall through from one case label ### to another&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: black;"&gt;To avoid this use break / goto statements. On the other hand if you use more than one jump statement for a case - like the one shown below - you will get&amp;nbsp;&lt;strong&gt;&lt;span style="color: red;"&gt;Unreachable code detected&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;warning&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="c-sharp" name="code"&gt;case 38:
                    return "Medium";
                    break;
             
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497434045878013201-1265890080366340079?l=dotnetdud.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/e9qKY4uHVCKWYAZevMlfrHrMeNc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/e9qKY4uHVCKWYAZevMlfrHrMeNc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/e9qKY4uHVCKWYAZevMlfrHrMeNc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/e9qKY4uHVCKWYAZevMlfrHrMeNc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PTnz/~4/Joex-iWUick" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetdud.blogspot.com/feeds/1265890080366340079/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetdud.blogspot.com/2011/05/select-case-statement-in-c-c-sharp.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/1265890080366340079?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6497434045878013201/posts/default/1265890080366340079?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/PTnz/~3/Joex-iWUick/select-case-statement-in-c-c-sharp.html" title="Select Case Statement in C# / C-sharp" /><author><name>Shasur</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetdud.blogspot.com/2011/05/select-case-statement-in-c-c-sharp.html</feedburner:origLink></entry></feed>

