Welcome To Snipplr


Everyone's Recent Snippets Tagged Net



1 2 3 Next »
Great way to show the user that something is happening without too much tedious work. As simple to use as putting the following code in Form_Load: AutoWaitCursor.Cursor = Cursors.WaitCursor; AutoWaitCursor.Delay = new TimeSpan(0, 0, 0, 0, 25);...
1 586 posted 11 years ago by pckujawa
1 340 posted 11 years ago by mpcircuitry
I used this code to run MySQL commands in ASP.NET
1 421 posted 11 years ago by mpcircuitry
To display "&" character within the string used as error descriptor in ErrorProvidor component in .NET use "&&&" so that it displays as a single "&". More detail at: http://www.codeproject.com/Messages/3225091/ErrorProvider-SetError-string-constra...
0 411 posted 12 years ago by sysdeamon
Since an asynchronous method is usually one you call and then it invokes a callback when it is finished, it is not obvious how to test such a method in a definite manner. In the method described at the above URL, the author uses .NET's System.Threadi...
1 431 posted 12 years ago by pckujawa
Essentially, you need to tell Visual Studio to generate an XML file with documentation, then use a separate tool to create a help file (usually .chm) out of that XML file. The tool to use is MS's Sandcastle. You'll also want a GUI for Sandcastle, whi...
0 390 posted 12 years ago by pckujawa
This is a simple function to test for an internet connection. Originally grabbed from "devbuzz" at the devbuzz forums (see link) and now modified for VB.NET 3.5
0 517 posted 12 years ago by blackf0rk
Specifically, this code enables you to pass a string from C# into C++ managed code and then get a C++ pointer to the string's chars. [Marshal.StringToHGlobalAnsi Method](http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marsha...
0 1050 posted 12 years ago by pckujawa
0 258 posted 12 years ago by eugegim
1 283 posted 13 years ago by Anthony
2 258 posted 13 years ago by omixen
0 248 posted 13 years ago by tranvinhnt
In Ruby you can write 5.times { print "Hello World" } . With a simple extension method I was able to do something similar with C#.
0 249 posted 13 years ago by Soft
This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.
0 354 posted 14 years ago by jonhenshaw
2 427 posted 14 years ago by whitetiger
Very important to set the RefCursor Type. Otherwise you get the PLS-00306 Error 'Wrong Number or types of arguments'
0 390 posted 15 years ago by rengber
Simple way to do ftp from Perl
3 374 posted 15 years ago by kkindoh
1 2 3 Next »