How to register a global hotkey for your application in C#

How to register a global hotkey for your application in C#

Register a hotkey for your application that can be triggered even if your form is minimized and does not have focus. More »

Visual Studio 2013

Visual Studio 2013

Visual Studio 2013 is now available. Make sure to upgrade to the latest version of Visual Studio. More »

How to download a file in C# (progressbar and download speed)

How to download a file in C# (progressbar and download speed)

Learn how to download files in C# while displaying the percentage and the download speed. More »

UDP hole punching implementation in C#

UDP hole punching implementation in C#

Learn how to implement UDP hole punching so you can make your clients life a lot easier by not forcing them to open ports on their end. More »

 

Atom-128 algorithm in C#

Encode method:

Decode method:

Usage:

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

Internet Explorer 11 Developer Preview for Windows 7 or higher

Microsoft has released a Developer Preview version for Internet Explorer 11. Internet Explorer 11 was only available as part of Windows 8.1 Preview till now but this release makes it available for Windows 7 and Windows Server 2008 R2 as well.

You can find the download links for the English version below. If you are looking for different languages visit http://windows.microsoft.com/en-us/internet-explorer/ie-11-worldwide-languages where you can find the download links for numerous other languages.

Download links removed. Read below.

Note: Internet Explorer 11 final version is now available. See
Internet Explorer 11 is now available for Windows 7 instead.

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

Microsoft Office 2010 SP2

Microsoft has released Service Pack 2 (SP2) for their Office 2010 suite.

This update contains various bug fixes as well as improvements to the suite’s stability and performance.

Overview of Office 2010 SP2 improvements

Excel 2010 SP2

  • Improves the overall stability, performance, and compatibility with other versions of Excel. For a more detailed list of specific issues that the service pack fixes, please download a version of the workbook that is available below.
  • Fixes issues in which the performance of Excel decreases, and Excel file sizes become larger when additional built-in styles are copied during the duplication of data between different Excel instances.
  • Fixes an issue in which data validation lists that contain comma signs (,) are broken in an .xlsx or .xlsb file. This issue occurs when you set the user locale to a location that does not use comma signs (,) to separate the lists. For example, Germany uses semicolons (;) to separate the lists. When you set Germany as the location, data validation lists that contain commas are all broken.
  • Fixes an issue in which an .xlsx file created in Microsoft Office 2013 that contains an App bound to a table is corrupted on save. Additionally, it addresses the issue in which all Agave formulas in the workbook sheet are removed from the file.

Outlook 2010 SP2

  • Fixes the issue regarding the message size of certain long email messages. Additionally, it fixes an issue that occurs when you perform a spell check before you send an email message.

PowerPoint 2010 SP2

  • Improves the quality of videos in a presentation after the videos are optimized or compressed by PowerPoint.
  • Fixes issues that occur when you co-author a presentation with other users at the same time.
  • Fixes an issue in which Mozilla FireFox crashes when you try to view a presentation in PowerPoint Web App on a Mac computer that has Microsoft Silverlight 3 or Silverlight 4 installed.

Word 2010 SP2

  • Fixes issues regarding bookmarks, fields, track changes, templates, tables, object wrapping, autocorrect options, and email addresses. Additionally, it fixes general reliability issues that occur when you post a blog entry on Microsoft SharePoint Server 2013 and Microsoft Office 365 blogs.
Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

Force Firefox to prompt to save mp3 and videos rather than play them in the browser

You might have noticed that in a lot of Firefox versions the browser starts playing .mp3, or other sound/video formats, directly in the browser rather than displaying a prompt asking if you want to save the file. Moreover, setting the format under Tools > Options > Applications to either Always ask or Save File doesn’t really change this behavior.

Firefox Application Options

Luckily there is a workaround to alter this functionality.

  1. Enter about:config in your Firefox’s address bar and press enter.
  2. Search for media.windows-media-foundation.enabled
  3. Set the value of the property to false

media.windows-media-foundation.enabled

And you are done. Now everytime you click on an .mp3 file or any other format that is supported by Windows media foundation you should get a prompt asking you if you want to save the file or if you want to open it directly.

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

Turn monitor on/off in C#

The following snippet will allow you to change your monitor’s state to either off/on or standby mode. Unlike other methods this one works on Windows 7 as well (tested under Windows 7 64bit).

The first step is to include in your class the following code:

This will allow us to send a WM_SYSCOMMAND message using SendMessage to alter the state of the monitor.

Finally, add the method which we will be calling when we want to change the monitor’s state:

Simply call the SetMonitorState method with the desirable state you want to change your monitor’s state to.

Usage:

Keep in mind that the SC_MONITORPOWER commands supports devices that have power-saving features, so depending on the monitor’s brand/drivers/firmware results might vary.

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone