Posts Tagged tricks
Saturday, November 29, 2008 10:16
To avoid the shutdown of your application after 20 min inactivity, you can use a ping tool like:
SmarterPing
SmarterPing is a Windows Service built around solving this problem. SmarterPing will hit selected web pages at regular intervals to keep them alive on the server. For low-activity sites, and those using shared hosting, SmarterPing will keep sites [...]
Saturday, November 29, 2008 10:16
You can use
System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()
or
HttpRuntime.ClrInstallDirectory property ( don’t forget to add reference to System.Web.dll )
Bookmark It
Hide Sites
$$(‘div.d766′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });
Saturday, November 29, 2008 10:16
Sabifoo – IM boot that turns all incoming messages(from AOL Instant Messenger, Jabber, MSN Messenger, and Yahoo Messenger ) into an RSS feed or web page.It will even deliver them on to your blog or other soft via gateways.
[Via Larkware News]
Technorati Tags: IM messenger yahoo jabber gateway rss
Bookmark It
Hide Sites
$$(‘div.d752′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });
Saturday, November 29, 2008 10:16
IMTiger is a simple and very useful add-on that turns MSN Messenger into a multi-protocol client. IMTiger allows you to have one combined contact list for multiple accounts of MSN, ICQ and AIM.
IMTiger Features: Support unlimited number of MSN/AIM/ICQ account in one MSN messenger Turn your MSN [...]
Saturday, November 29, 2008 10:16
Add this declaration.
[DllImport("user32")] public static extern short GetKeyState (Keys VirtKey);
On your KeyDown event, you can check which shift key has been pressed down in this way:
bool LShiftPressed = ((GetKeyState(Keys.LShiftKey) & 256)==256); bool RShiftPressed = ((GetKeyState(Keys.RShiftKey) & 256)==256);
Bookmark It
Hide Sites
$$(‘div.d740′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });
Saturday, November 29, 2008 10:16
This code snippet forces windows to delete the file on reboot.
[System.Runtime.InteropServices.DllImport("kernel32.dll")]
private static extern bool MoveFileEx(string lpExistingFileName, string lpNewFileName, int dwFlags);
const int MOVEFILE_DELAY_UNTIL_REBOOT = 0×00000004;
static void MarkFileToDeleteOnReboot(string fileName)
{
MoveFileEx(fileName, null, MOVEFILE_DELAY_UNTIL_REBOOT);
}
Bookmark It
Hide Sites
$$(‘div.d731′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });
Saturday, November 29, 2008 10:16
This article presents an approach of creating and managing multiple sites on the Windows XP IIS.
Bookmark It
Hide Sites
$$(‘div.d726′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });
Saturday, November 29, 2008 10:16
BackgroundWorker works only with the classes that implements interface ISynchronizeInvoke – in order to use BackgroundWorker with any class necessary to make the following changes in the code.
The code after the changes ( BackgroundWorker.cs ):
private void InvokeDelegate(Delegate del, params object[] args)
{
ISynchronizeInvoke synchronizer = del.Target as ISynchronizeInvoke;
try
[...]
Saturday, November 29, 2008 10:16
Defining report data sources. Using object data sources in Windows applications and Web sites. Using Lists. Using report parameters in local mode. Designing master-detail reports.
[Via http://www.gotreportviewer.com]
Bookmark It
Hide Sites
$$(‘div.d715′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });