.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
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
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
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
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
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
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
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
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
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
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
[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
string mobileNumber = "00054 675 286"mobileNumber = Replace(mobileNumber," ","/");Dim mobileNumber As String = "00054 675 286"mobileNumber = 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Increase text box length as you type
|