Welcome To Snipplr
Everyone's Recent Snippets Tagged Net
- All /
 - JavaScript /
 - HTML /
 - PHP /
 - CSS /
 - Ruby /
 - Objective C
 
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 
        
        
            2889 
        
                    posted 15 years ago by pckujawa
            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 
        
        
            1748 
        
                    posted 16 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 
        
        
            1889 
        
                    posted 16 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 
        
        
            1610 
        
                    posted 16 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 
        
        
            1716 
        
                    posted 16 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 
        
        
            3913 
        
                    posted 16 years ago by pckujawa
            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 
        
        
            1006 
        
                    posted 17 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 
        
        
            1982 
        
                    posted 18 years ago by jonhenshaw
            Very important to set the RefCursor Type.   Otherwise you get the PLS-00306 Error 'Wrong Number or types of arguments'
        
        
        
            0 
        
        
            1336 
        
                    posted 19 years ago by rengber