Click here to Skip to main content

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

Articles: 5, Tip/Tricks: 38

RSS Feed

Average article rating: 3.60

General Graphics
General
Posted: 13 Jun 2010   Updated: 15 Jun 2010   Views: 37,323   Rating: 4.00/5    Votes: 17   Popularity: 4.92
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   Downloaded: 0
How ARGB works
C / C++ Language
General
Posted: 1 Oct 2009   Updated: 1 Oct 2009   Views: 38,410   Rating: 4.30/5    Votes: 13   Popularity: 4.79
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   Downloaded: 847
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: 70,593   Rating: 2.46/5    Votes: 20   Popularity: 3.16
Licence: The Code Project Open License (CPOL)      Bookmarked: 37   Downloaded: 10,424
Creating a clone of notepad in Visual Basic
General
Posted: 20 Jul 2007   Updated: 22 Aug 2007   Views: 27,326   Rating: 3.47/5    Votes: 17   Popularity: 4.29
Licence: The Code Project Open License (CPOL)      Bookmarked: 22   Downloaded: 1,242
New functions added to the calculator , Now currency converter included
Algorithms & Recipes
Parsers and Interpreters
Posted: 25 May 2010   Updated: 25 May 2010   Views: 9,502   Rating: 3.80/5    Votes: 9   Popularity: 3.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 121
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: 4,551   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 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: 5,417   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
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,960   Rating: 4.60/5    Votes: 5   Popularity: 3.22
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
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,555   Rating: 4.67/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
[Browsable(fal...
VB.NET
General
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 5,029   Rating: 4.83/5    Votes: 6   Popularity: 3.76
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 146
A class for N-Digit Arithmetic
Posted: 25 May 2011   Updated: 27 May 2011   Views: 2,821   Rating: 4.53/5    Votes: 9   Popularity: 4.29
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
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: 19,837   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
A solution for Visual Studio 2010 black-out
Posted: 12 Jun 2010   Updated: 12 Jun 2010   Views: 2,511   Rating: 1.40/5    Votes: 3   Popularity: 0.69
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
API Guide[^] is also a really good resource
Posted: 23 Sep 2011   Updated: 23 Sep 2011   Views: 1,824   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 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: 25,065   Rating: 4.72/5    Votes: 17   Popularity: 5.81
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 109
Prime Number Testing
Programming Tips
General
Posted: 9 Jun 2010   Updated: 9 Jun 2010   Views: 6,763   Rating: 4.80/5    Votes: 5   Popularity: 3.36
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Tests For a Prime Number
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 4,350   Rating: 4.40/5    Votes: 5   Popularity: 3.08
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
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,643   Rating: 4.60/5    Votes: 5   Popularity: 3.22
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Converts a given decimal number to fraction
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 8,048   Rating: 3.78/5    Votes: 7   Popularity: 2.90
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Label1.Paren...
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 4,163   Rating: 4.33/5    Votes: 6   Popularity: 3.27
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Shortcut for Commenting
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 6,120   Rating: 4.00/5    Votes: 3   Popularity: 1.91
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
The Perfect Translation/Conversion of Code
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Views: 8,517   Rating: 3.57/5    Votes: 6   Popularity: 2.33
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
3d Party Solutions
Posted: 14 Jun 2010   Updated: 21 Jun 2010   Views: 4,786   Rating: 2.60/5    Votes: 4   Popularity: 1.57
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Saving a form's settings
Posted: 28 Jun 2010   Updated: 28 Jun 2010   Views: 2,774   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
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: 17,252   Rating: 4.00/5    Votes: 7   Popularity: 3.38
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
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,738   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Handle code redundancy for many controls in one subroutine
Posted: 25 May 2011   Updated: 25 May 2011   Views: 3,063   Rating: 2.67/5    Votes: 3   Popularity: 1.67
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
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: 3,572   Rating: 4.90/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
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: 9,282   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
For the souls confused about WPF.
Posted: 28 May 2011   Updated: 30 May 2011   Views: 9,619   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Controls will have the Aero Theme (WPF)
Posted: 3 Jun 2011   Updated: 3 Jun 2011   Views: 1,891   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 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: 3,489   Rating: 3.67/5    Votes: 5   Popularity: 2.10
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Even simpler.form1.opacity=0;
Posted: 21 Sep 2011   Updated: 21 Sep 2011   Views: 2,020   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Private Sub GetIPAddress()Dim strHostName As StringDim strIPAddress As StringstrHostName = System.Net.Dns.GetHostName()strIPAddress = System.Net.Dns.Resolve(strHostName).AddressList(0).ToString()MessageBox.Show("Host Name: " & strHostName & "; IP Address: " &...
Posted: 23 Sep 2011   Updated: 23 Sep 2011   Views: 3,451   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
using Microsoft.VisualBasic;// Codebool result = Information.IsNumeric("123");
Posted: 23 Sep 2011   Updated: 23 Sep 2011   Views: 1,240   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
See this for implementing Singletonhttp://msdn.microsoft.com/en-us/library/ff650316.aspx[^]
Posted: 21 Sep 2011   Updated: 2 Oct 2011   Views: 2,997   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Rnd() For Red, Green, Blue values. Then convert to ARGB.
Posted: 3 Oct 2011   Updated: 3 Oct 2011   Views: 4,881   Rating: 2.25/5    Votes: 6   Popularity: 1.66
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
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: 5,598   Rating: 4.73/5    Votes: 7   Popularity: 4.13
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
MRU Locations and other locations in the Registry
Posted: 13 Jun 2010   Updated: 13 Jun 2010   Views: 8,800   Rating: 3.33/5    Votes: 8   Popularity: 3.43
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
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: 4,053   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Increase text box length as you type
Posted: 14 Mar 2013   Updated: 14 Mar 2013   Views: 4,504   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Quick way to read RSS
CodeProject FAQs
General
Posted: 10 Jun 2010   Updated: 8 Apr 2013   Views: 28,827   Rating: 5.00/5    Votes: 20   Popularity: 6.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   Downloaded: 0
Syntax Coloring For Tip/Trick
Author Resources
General
Posted: 12 Jun 2010   Updated: 12 Jun 2010   Views: 6,106   Rating: 4.00/5    Votes: 2   Popularity: 1.20
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Useful Add-on for Editors
No reference articles have been posted.

Anshul R
Student
India India
No Biography provided


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 20 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid