Click here to Skip to main content
15,885,537 members

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

Articles: 5, Tip/Tricks: 37

RSS Feed

Average article rating: 3.70

Programming Languages
C
1 Oct 2009   Updated: 1 Oct 2009   Rating: 4.67/5    Votes: 15   Popularity: 5.20
Licence: CPOL    Views: 129,391     Bookmarked: 16   Downloaded: 2,322
Please Sign up or sign in to vote.
Solves linear equation in one variable, 2 linear equations in 2 variables, quadratic equations and cubic equations
Visual Basic
13 Jun 2010   Updated: 15 Jun 2010   Rating: 4.00/5    Votes: 17   Popularity: 4.70
Licence: CPOL    Views: 84,623     Bookmarked: 15   Downloaded: 0
Please Sign up or sign in to vote.
How ARGB works
26 Apr 2008   Updated: 3 May 2008   Rating: 2.57/5    Votes: 21   Popularity: 3.39
Licence: CPOL    Views: 129,198     Bookmarked: 41   Downloaded: 14,544
Please Sign up or sign in to vote.
Creating a clone of notepad in Visual Basic
20 Jul 2007   Updated: 22 Aug 2007   Rating: 3.47/5    Votes: 17   Popularity: 4.27
Licence: CPOL    Views: 43,311     Bookmarked: 22   Downloaded: 1,894
Please Sign up or sign in to vote.
New functions added to the calculator , Now currency converter included
25 May 2010   Updated: 25 May 2010   Rating: 3.80/5    Votes: 9   Popularity: 3.63
Licence: CPOL    Views: 16,863     Bookmarked: 11   Downloaded: 218
Please Sign up or sign in to vote.
An expression evaluator that doesn't support parantheses at the beginning.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 3.96

.NET
.NET4
13 Jun 2010   Updated: 13 Jun 2010   Rating: 3.33/5    Votes: 8   Popularity: 3.01
Licence: CPOL    Views: 23,881     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Instead, you can create a new project in VS2008 and add the source code files to it.
All Topics
10 Jun 2010   Updated: 8 Apr 2013   Rating: 4.98/5    Votes: 27   Popularity: 6.96
Licence: CPOL    Views: 72,537     Bookmarked: 21   Downloaded: 0
Please Sign up or sign in to vote.
Syntax coloring for tip/trick
CodeProject
12 Jun 2010   Updated: 12 Jun 2010   Rating: 4.00/5    Votes: 2   Popularity: 1.20
Licence: CPOL    Views: 12,740     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Useful Add-on for Editors
Desktop Programming
Windows Forms
23 Sep 2011   Updated: 2 Oct 2011   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 11,420     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
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;}
12 Jun 2010   Updated: 12 Jun 2010   Rating: 4.60/5    Votes: 5   Popularity: 3.22
Licence: CPOL    Views: 6,850     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
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...
WPF
28 May 2011   Updated: 28 May 2011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 19,382     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
For the souls confused about WPF.
28 May 2011   Updated: 30 May 2011   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 14,761     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Controls will have the Aero Theme (WPF)
Operating Systems
Windows
12 Jun 2010   Updated: 12 Jun 2010   Rating: 1.40/5    Votes: 3   Popularity: 0.67
Licence: CPOL    Views: 8,334     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
API Guide[^] is also a really good resource
Programming Languages
C
10 Jun 2010   Updated: 11 Feb 2012   Rating: 4.74/5    Votes: 17   Popularity: 5.58
Licence: CPOL    Views: 38,301     Bookmarked: 7   Downloaded: 109
Please Sign up or sign in to vote.
Prime Number Testing
9 Jun 2010   Updated: 9 Jun 2010   Rating: 4.80/5    Votes: 5   Popularity: 3.36
Licence: CPOL    Views: 17,922     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Tests For a Prime Number
C#
22 Sep 2011   Updated: 2 Oct 2011   Rating: 4.67/5    Votes: 2   Popularity: 1.40
Licence: CPOL    Views: 5,120     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
[Browsable(fal...
28 Jun 2010   Updated: 28 Jun 2010   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 7,991     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
string mobileNumber = "00054 675 286"mobileNumber = Replace(mobileNumber," ","/");Dim mobileNumber As String = "00054 675 286&quotmobileNumber = Replace(mobileNumber," ","/")
27 May 2011   Updated: 27 May 2011   Rating: 4.90/5    Votes: 6   Popularity: 3.81
Licence: CPOL    Views: 11,810     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
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...
3 Jun 2011   Updated: 3 Jun 2011   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 7,910     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
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)
15 Jun 2011   Updated: 15 Jun 2011   Rating: 3.29/5    Votes: 6   Popularity: 2.56
Licence: CPOL    Views: 11,391     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Even simpler.form1.opacity=0;
23 Sep 2011   Updated: 23 Sep 2011   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 11,742     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
using Microsoft.VisualBasic;// Codebool result = Information.IsNumeric("123");
23 Sep 2011   Updated: 23 Sep 2011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 4,900     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
See this for implementing Singletonhttp://msdn.microsoft.com/en-us/library/ff650316.aspx[^]
21 Sep 2011   Updated: 2 Oct 2011   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 10,060     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Rnd() For Red, Green, Blue values. Then convert to ARGB.
3 Oct 2011   Updated: 3 Oct 2011   Rating: 2.25/5    Votes: 6   Popularity: 1.75
Licence: CPOL    Views: 17,100     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Use Recursion.int factorial(int n){ if(n<0) return -1; if(n==0 || n==1) return 1; return n * factorial(n-1);}
C++
10 Jun 2010   Updated: 10 Jun 2010   Rating: 4.40/5    Votes: 5   Popularity: 3.08
Licence: CPOL    Views: 12,570     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
You can simply use the sleep() function in dos.h in a loop and print it!
10 Jun 2010   Updated: 8 Nov 2010   Rating: 4.00/5    Votes: 7   Popularity: 3.38
Licence: CPOL    Views: 38,433     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
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...
Visual Basic
10 Jun 2010   Updated: 10 Jun 2010   Rating: 3.38/5    Votes: 10   Popularity: 3.38
Licence: CPOL    Views: 36,524     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Label1.Paren...
21 Sep 2011   Updated: 21 Sep 2011   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 6,080     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
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: " &...
14 Mar 2013   Updated: 14 Mar 2013   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 9,140     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Quick way to read RSS
Visual Basic 10
10 Jun 2010   Updated: 10 Jun 2010   Rating: 4.86/5    Votes: 7   Popularity: 4.10
Licence: CPOL    Views: 10,360     Bookmarked: 3   Downloaded: 146
Please Sign up or sign in to vote.
A class for N-Digit Arithmetic
10 Jun 2010   Updated: 10 Jun 2010   Rating: 4.67/5    Votes: 6   Popularity: 3.63
Licence: CPOL    Views: 16,446     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Converts a given decimal number to fraction
10 Jun 2010   Updated: 10 Jun 2010   Rating: 4.33/5    Votes: 6   Popularity: 3.37
Licence: CPOL    Views: 12,661     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Shortcut for Commenting
10 Jun 2010   Updated: 10 Jun 2010   Rating: 4.00/5    Votes: 4   Popularity: 2.41
Licence: CPOL    Views: 19,620     Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
The Perfect Translation/Conversion of Code
14 Jun 2010   Updated: 21 Jun 2010   Rating: 2.60/5    Votes: 4   Popularity: 1.57
Licence: CPOL    Views: 12,102     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Saving a form's settings
24 May 2011   Updated: 24 May 2011   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 11,140     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Handle code redundancy for many controls in one subroutine
Visual Studio
9 Jun 2010   Updated: 9 Jun 2010   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 28,761     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
A solution for Visual Studio 2010 black-out
23 Sep 2011   Updated: 23 Sep 2011   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 5,570     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Open the project file in notepad. .vbproj or .csproj.Change the VS version.
8 Jun 2010   Updated: 8 Jun 2010   Rating: 4.73/5    Votes: 7   Popularity: 4.00
Licence: CPOL    Views: 12,200     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
MRU Locations and other locations in the Registry
Web Development
ASP.NET
23 Sep 2011   Updated: 2 Oct 2011   Rating: 4.71/5    Votes: 6   Popularity: 3.67
Licence: CPOL    Views: 20,800     Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
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...
25 May 2011   Updated: 27 May 2011   Rating: 4.53/5    Votes: 9   Popularity: 4.32
Licence: CPOL    Views: 10,570     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
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 -...
HTML
25 May 2011   Updated: 25 May 2011   Rating: 2.67/5    Votes: 3   Popularity: 1.27
Licence: CPOL    Views: 12,010     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Use a web service?http://www.webservicex.net/country.asmx[^]http://www.siliconllama.com/services/wsdl/ISOcodesService.wsdl[^]
11 Mar 2013   Updated: 11 Mar 2013   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 10,311     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Increase text box length as you type

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Student
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.