# Articles by Anshul R (Articles: 5, Tip/Tricks: 38)

#### Average article rating: 3.60

##### General Graphics
General
Posted: 13 Jun 2010   Updated: 15 Jun 2010   Views: 34,080   Rating: 4.00/5    Votes: 17   Popularity: 4.92
How ARGB works
##### C / C++ Language
General
Posted: 1 Oct 2009   Updated: 1 Oct 2009   Views: 35,125   Rating: 4.30/5    Votes: 13   Popularity: 4.79
Solves linear equation in one variable, 2 linear equations in 2 variables, quadratic equations and cubic equations
##### VB.NET
Applications
Posted: 26 Apr 2008   Updated: 3 May 2008   Views: 66,441   Rating: 2.46/5    Votes: 20   Popularity: 3.16
Creating a clone of notepad in Visual Basic
General
Posted: 20 Jul 2007   Updated: 22 Aug 2007   Views: 26,182   Rating: 3.47/5    Votes: 17   Popularity: 4.29
New functions added to the calculator , Now currency converter included
##### Algorithms & Recipes
Parsers and Interpreters
Posted: 25 May 2010   Updated: 25 May 2010   Views: 8,810   Rating: 3.80/5    Votes: 9   Popularity: 3.63
An expression evaluator that doesn't support parantheses at the beginning.
No blogs have been submitted.

#### Average tips rating: 3.95

##### Progress Controls
General
Posted: 23 Sep 2011   Updated: 2 Oct 2011   Views: 3,797   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
You can use BackgroundWorker to do the work and report the progress using:private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e){ this.progressBar1.Value = e.ProgressPercentage;}
##### E-commerce
General
Posted: 23 Sep 2011   Updated: 2 Oct 2011   Views: 4,153   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Prefix, Length, and Check Digit CriteriaHere is a table outlining the major credit cards that you might want to validate.CARD TYPE Prefix Length Check digit algorithmMASTERCARD 51-55 16 mod 10VISA 4 13, 16 mod 10AMEX 3437 15 mod 10Diners Club/Carte...
##### C#
General
Posted: 12 Jun 2010   Updated: 12 Jun 2010   Views: 1,575   Rating: 4.60/5    Votes: 5   Popularity: 3.22
The original snippet I made is in VB.NETProtected Overrides Sub WndProc(ByRef e As Message) MyBase.WndProc(e) If e.Msg = &H84 AndAlso e.Result = &H1 Then e.Result = &H2 End SubI used Reflector to translate it to C#protected override void WndProc(ref Message...
Posted: 22 Sep 2011   Updated: 2 Oct 2011   Views: 1,249   Rating: 5.00/5    Votes: 1   Popularity: 0.00
[Browsable(fal...
##### VB.NET
General
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 4,537   Rating: 4.83/5    Votes: 6   Popularity: 3.76
A class for N-Digit Arithmetic
Posted: 25 May 2011   Updated: 27 May 2011   Views: 2,294   Rating: 4.53/5    Votes: 9   Popularity: 4.29
Dim value As Boolean = My.Computer.Network.IsAvailable can be used in a situation where the only network a system will be connected to is the Internet.Dim value As Boolean = My.Computer.Network.Ping(hostNameOrAddress ,timeout) hostNameOrAddress can be any valid website -...
##### .NET Framework
General
Posted: 9 Jun 2010   Updated: 9 Jun 2010   Views: 18,758   Rating: 5.00/5    Votes: 5   Popularity: 3.49
A solution for Visual Studio 2010 black-out
Posted: 12 Jun 2010   Updated: 12 Jun 2010   Views: 1,957   Rating: 1.40/5    Votes: 3   Popularity: 0.69
API Guide[^] is also a really good resource
Posted: 23 Sep 2011   Updated: 23 Sep 2011   Views: 1,437   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Open the project file in notepad. .vbproj or .csproj.Change the VS version.
##### Algorithms & Recipes
General
Posted: 10 Jun 2010   Updated: 11 Feb 2012   Views: 24,097   Rating: 4.72/5    Votes: 17   Popularity: 5.81
Prime Number Testing
##### Programming Tips
General
Posted: 9 Jun 2010   Updated: 9 Jun 2010   Views: 6,064   Rating: 4.80/5    Votes: 5   Popularity: 3.36
Tests For a Prime Number
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 3,741   Rating: 4.40/5    Votes: 5   Popularity: 3.08
You can simply use the sleep() function in dos.h in a loop and print it!
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 4,123   Rating: 4.60/5    Votes: 5   Popularity: 3.22
Converts a given decimal number to fraction
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 5,957   Rating: 3.43/5    Votes: 6   Popularity: 2.67
Label1.Paren...
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 3,489   Rating: 4.33/5    Votes: 6   Popularity: 3.27
Shortcut for Commenting
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 5,240   Rating: 4.00/5    Votes: 2   Popularity: 1.20
The Perfect Translation/Conversion of Code
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 7,426   Rating: 3.57/5    Votes: 6   Popularity: 2.33
3d Party Solutions
Posted: 14 Jun 2010   Updated: 21 Jun 2010   Views: 4,204   Rating: 2.60/5    Votes: 4   Popularity: 1.57
Saving a form's settings
Posted: 28 Jun 2010   Updated: 28 Jun 2010   Views: 2,330   Rating: 1.00/5    Votes: 1   Popularity: 0.00
string mobileNumber = "00054 675 286"mobileNumber = Replace(mobileNumber," ","/");Dim mobileNumber As String = "00054 675 286&quotmobileNumber = Replace(mobileNumber," ","/")
Posted: 10 Jun 2010   Updated: 8 Nov 2010   Views: 14,264   Rating: 4.00/5    Votes: 7   Popularity: 3.38
Simple and prints imaginary roots too!float a,b,c,x1,x2,d,dsq;printf("ax^2 + bx + c = 0");printf("\nEnter a,b,c separated by commas : \n");scanf("%f,%f,%f",&a,&b,&c);d = b*b-(4*a*c);if(d>=0){dsq=sqrt(d);x1 = (-b+dsq)/(2*a);x2 = (-b-(dsq))/(2*a);printf("\nRoot 1 : %f\nRoot 2...
Posted: 24 May 2011   Updated: 24 May 2011   Views: 7,566   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Handle code redundancy for many controls in one subroutine
Posted: 25 May 2011   Updated: 25 May 2011   Views: 2,196   Rating: 2.67/5    Votes: 3   Popularity: 1.67
Use a web service?http://www.webservicex.net/country.asmx[^]http://www.siliconllama.com/services/wsdl/ISOcodesService.wsdl[^]
Posted: 27 May 2011   Updated: 27 May 2011   Views: 2,715   Rating: 4.90/5    Votes: 6   Popularity: 3.89
For Control Panel:Process.Start("control.exe");For My Computer:Process.Start("explorer.exe", Environment.GetFolderPath(Environment.SpecialFolder.MyComputer));For the rest, we can use GUID just like the original.For Recycle...
Posted: 28 May 2011   Updated: 28 May 2011   Views: 8,597   Rating: 5.00/5    Votes: 1   Popularity: 0.00
For the souls confused about WPF.
Posted: 28 May 2011   Updated: 30 May 2011   Views: 9,128   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Controls will have the Aero Theme (WPF)
Posted: 3 Jun 2011   Updated: 3 Jun 2011   Views: 1,485   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
public static bool IsNullEmptyOrWhitespace(this string value){ return string.IsNullOrEmpty(value) || string.IsNullOrEmpty(value.Trim());}In C# 4.0, you already have such a function.string.IsNullOrWhiteSpace(value)
Posted: 15 Jun 2011   Updated: 15 Jun 2011   Views: 2,814   Rating: 3.67/5    Votes: 5   Popularity: 2.10
Even simpler.form1.opacity=0;
Posted: 21 Sep 2011   Updated: 21 Sep 2011   Views: 1,637   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Posted: 23 Sep 2011   Updated: 23 Sep 2011   Views: 2,700   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
using Microsoft.VisualBasic;// Codebool result = Information.IsNumeric("123");
Posted: 23 Sep 2011   Updated: 23 Sep 2011   Views: 989   Rating: 5.00/5    Votes: 1   Popularity: 0.00
See this for implementing Singletonhttp://msdn.microsoft.com/en-us/library/ff650316.aspx[^]
Posted: 21 Sep 2011   Updated: 2 Oct 2011   Views: 2,335   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Rnd() For Red, Green, Blue values. Then convert to ARGB.
Posted: 3 Oct 2011   Updated: 3 Oct 2011   Views: 3,875   Rating: 2.25/5    Votes: 6   Popularity: 1.66
Use Recursion.int factorial(int n){ if(n<0) return -1; if(n==0 || n==1) return 1; return n * factorial(n-1);}
##### Uncategorised Tips and Tricks
General
Posted: 8 Jun 2010   Updated: 8 Jun 2010   Views: 4,884   Rating: 4.73/5    Votes: 7   Popularity: 4.13
MRU Locations and other locations in the Registry
Posted: 13 Jun 2010   Updated: 13 Jun 2010   Views: 7,544   Rating: 3.33/5    Votes: 8   Popularity: 3.43
Instead, you can create a new project in VS2008 and add the source code files to it.
Posted: 11 Mar 2013   Updated: 11 Mar 2013   Views: 3,576   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Increase text box length as you type
Posted: 14 Mar 2013   Updated: 14 Mar 2013   Views: 4,025   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
##### CodeProject FAQs
General
Posted: 10 Jun 2010   Updated: 8 Apr 2013   Views: 25,779   Rating: 5.00/5    Votes: 20   Popularity: 6.51
Syntax Coloring For Tip/Trick
##### Author Resources
General
Posted: 12 Jun 2010   Updated: 12 Jun 2010   Views: 5,277   Rating: 4.00/5    Votes: 2   Popularity: 1.20