Click here to Skip to main content

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

Articles: 5, Tip/Tricks: 39

RSS Feed

Average article rating: 3.60

General Graphics

ARGB
Posted: 13 Jun 2010   Updated: 15 Jun 2010   Views: 28,580   Rating: 4.00/5    Votes: 17   Popularity: 4.92
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 0
How ARGB works

C / C++ Language

Equation Solver in C
Posted: 1 Oct 2009   Updated: 1 Oct 2009   Views: 26,957   Rating: 4.30/5    Votes: 13   Popularity: 4.79
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   Downloaded: 579
Solves linear equation in one variable, 2 linear equations in 2 variables, quadratic equations and cubic equations

VB.NET

Notepad.NET - Creating a clone of notepad in Visual Basic
Posted: 26 Apr 2008   Updated: 3 May 2008   Views: 58,010   Rating: 2.43/5    Votes: 19   Popularity: 3.05
Licence: The Code Project Open License (CPOL)      Bookmarked: 36   Downloaded: 8,210
Creating a clone of notepad in Visual Basic
Calculator
Posted: 20 Jul 2007   Updated: 22 Aug 2007   Views: 24,424   Rating: 3.47/5    Votes: 17   Popularity: 4.29
Licence: The Code Project Open License (CPOL)      Bookmarked: 22   Downloaded: 1,060
New functions added to the calculator , Now currency converter included

Algorithms & Recipes

Expression Evaluator - Basic Level
Posted: 25 May 2010   Updated: 25 May 2010   Views: 8,008   Rating: 3.80/5    Votes: 9   Popularity: 3.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 82
An expression evaluator that doesn't support parantheses at the beginning.
No blogs have been submitted.

Average tips rating: 3.93

Progress Controls

Wait progress bar for long running UI operations [Tip/Trick]
Posted: 23 Sep 2011   Updated: 2 Oct 2011   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   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

Test Credit Card Account Numbers [Tip/Trick]
Posted: 23 Sep 2011   Updated: 2 Oct 2011   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   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#

Dragging a Borderless Form [Tip/Trick]
Posted: 12 Jun 2010   Updated: 12 Jun 2010   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...
Hiding inherited properties [Tip/Trick]
Posted: 22 Sep 2011   Updated: 2 Oct 2011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
[Browsable(fal...

VB.NET

HugeInt - N Digit Arithmetic Class [Tip/Trick]
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Rating: 4.83/5    Votes: 6   Popularity: 3.76
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 134
A class for N-Digit Arithmetic
Checking Internet Is Connected Or Not From .NET [Tip/Trick]
Posted: 25 May 2011   Updated: 27 May 2011   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

Visual Studio 2010 Black-Out [Tip/Trick]
Posted: 9 Jun 2010   Updated: 9 Jun 2010   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
The Windows API: Learn It - Live It [Tip/Trick]
Posted: 12 Jun 2010   Updated: 12 Jun 2010   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
Visual Studio Project Conversion [Tip/Trick]
Posted: 23 Sep 2011   Updated: 23 Sep 2011   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

Quicker Prime Number Test [Tip/Trick]
Posted: 10 Jun 2010   Updated: 11 Feb 2012   Rating: 4.72/5    Votes: 17   Popularity: 5.81
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 98
Prime Number Testing

Programming Tips

Prime Number Test [Tip/Trick]
Posted: 9 Jun 2010   Updated: 9 Jun 2010   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
A count down timer in c. [Tip/Trick]
Posted: 10 Jun 2010   Updated: 10 Jun 2010   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!
Decimal To Fraction [Tip/Trick]
Posted: 10 Jun 2010   Updated: 10 Jun 2010   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
Transparent Label in VB [Tip/Trick]
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Rating: 3.33/5    Votes: 5   Popularity: 2.66
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Label1.Paren...
Commenting [Tip/Trick]
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Rating: 4.33/5    Votes: 6   Popularity: 3.27
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Shortcut for Commenting
Conversion Between All .NET Languages [Tip/Trick]
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Rating: 4.00/5    Votes: 2   Popularity: 1.20
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
The Perfect Translation/Conversion of Code
Visual C++ 2010 Intellisense [Tip/Trick]
Posted: 10 Jun 2010   Updated: 10 Jun 2010   Rating: 2.50/5    Votes: 4   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
3d Party Solutions
Saving Settings [Tip/Trick]
Posted: 14 Jun 2010   Updated: 21 Jun 2010   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
Removing white space from a String [Tip/Trick]
Posted: 28 Jun 2010   Updated: 28 Jun 2010   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," ","/")
A simple program to solve quadratic equations with [Tip/Trick]
Posted: 10 Jun 2010   Updated: 8 Nov 2010   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...
Multiple Event Handling for the Lazy Ones [Tip/Trick]
Posted: 24 May 2011   Updated: 24 May 2011   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
Load all the Country Names of the World in DropDown [Tip/Trick]
Posted: 25 May 2011   Updated: 25 May 2011   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[^]
Show MyComputer, ControlPanel, RecycleBin, NetworkPlaces on Button Click [Tip/Trick]
Posted: 27 May 2011   Updated: 27 May 2011   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...
Play Video files in Web sites [Tip/Trick]
Posted: 28 May 2011   Updated: 28 May 2011   Rating: 4.25/5    Votes: 4   Popularity: 2.41
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
In HTML5,your browser does not support the video tagRefer http://www.w3schools.com/html5/tag_video.asp[^] for the official details about the video tag and the previous code snippet was taken from the same (http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_video[^])
Some WPF Tip/Tricks For the Beginners [Tip/Trick]
Posted: 28 May 2011   Updated: 28 May 2011   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.
Implementing the Aero Theme in XP [Tip/Trick]
Posted: 28 May 2011   Updated: 30 May 2011   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Controls will have the Aero Theme (WPF)
Handy Extension Methods [Tip/Trick]
Posted: 3 Jun 2011   Updated: 3 Jun 2011   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)
Simple Trick To Make Form Invisible [Tip/Trick]
Posted: 15 Jun 2011   Updated: 15 Jun 2011   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;
Whats My IP Address ? [Tip/Trick]
Posted: 21 Sep 2011   Updated: 21 Sep 2011   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: " &...
Validate numeric textbox using int.tryparse visual C#.NET [Tip/Trick]
Posted: 23 Sep 2011   Updated: 23 Sep 2011   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");
Run only one instance from you program [Tip/Trick]
Posted: 23 Sep 2011   Updated: 23 Sep 2011   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[^]
Random Color Generator [Tip/Trick]
Posted: 21 Sep 2011   Updated: 2 Oct 2011   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.
Calculate the Factorial of an Integer in C# [Tip/Trick]
Posted: 3 Oct 2011   Updated: 3 Oct 2011   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

Visual Studio 2010 "Recently Used" Locations [Tip/Trick]
Posted: 8 Jun 2010   Updated: 8 Jun 2010   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
Converting VS2010 Solution to VS2008 [Tip/Trick]
Posted: 13 Jun 2010   Updated: 13 Jun 2010   Rating: 3.80/5    Votes: 7   Popularity: 3.47
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.
Dynamically Growing Textbox [Tip/Trick]
Posted: 11 Mar 2013   Updated: 11 Mar 2013   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
Quick RSS [Tip/Trick]
Posted: 14 Mar 2013   Updated: 14 Mar 2013   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

Formatting code in Tips and Tricks [Tip/Trick]
Posted: 10 Jun 2010   Updated: 8 Apr 2013   Rating: 5.00/5    Votes: 18   Popularity: 6.28
Licence: The Code Project Open License (CPOL)      Bookmarked: 14   Downloaded: 0
Syntax Coloring For Tip/Trick

Author Resources

Useful Tool For Editors [Tip/Trick]
Posted: 12 Jun 2010   Updated: 12 Jun 2010   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

Anshul R
Student
India India
Member
No Biography provided


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 19 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid