Author Archives: CooLMinE

.NET Framework 4.5

Microsoft has officially announced the release of .NET Framework 4.5 today.

If you are programming in C#, VB.NET or any other language that uses .NET and want to take advantage of the newest features as well as having the ability to create Windows Metro style applications then feel to click the links at the bottom to download the newest version.

It’s also worth to mention that .NET Framework 4.5 is backward-compatible with applications that were built with the .NET Framework versions 1.1, 2.0, 3.0, 3.5, and 4.0. That means you are not required to install all the older versions in order to run application that were created using an earlier .NET Framework version.

Supported Operating Systems

  • Windows Vista SP2 (x86 and x64)
  • Windows 7 SP1 (x86 and x64)
  • Windows 8 (x86 and x64)
  • Windows Server 2008 R2 SP1 (x64)
  • Windows Server 2008 SP2 (x64)
  • Windows Server 2012 (x86 and x64)

Download .NET Framework 4.5

.NET Framework 4.5 Online Installer (Multi-Language)
.NET Framework 4.5 Offline Installer (Multi-Language)
.NET Framework 4.5 Language Pack

Windows 8 Release Date Announced

Microsoft has announced that the retail version of Windows 8 will be available to the public on 26 October 2012.

If you want to try Windows 8 before buying it you can always install the release preview which can be found here for free.

UPNP port forwarding – The easy way

From my experience I noticed that the NATUPnP library is pretty unstable when it comes down to UPNP (mostly refusing to work on some routers regarding if the router is UPNP enabled or not) I decided to make a simple walk-through to help people resolve these kind of issues and aid them in creating a program that manual port forwarding is not needed, at least for UPNP enabled routers.

So, let’s get started. First you need to download the Mono.Nat library which can be found here. When the download is complete extract the contents of the .zip file anywhere you like.

In order to be able to take advantage of the library we need to locate the file we have extracted and add it as a reference to our project then import it in your project using

Now it’s time for some coding.

NetBeans invalid jdkhome specified fix

If you use NetBeans as an IDE then you probably came across the following error, "Cannot locate java installation in specified jdkhome".
NetBeans invalid jdkhome error

This usually happens after you uninstall the java jdk which you used to use (usually happens after you update java).

There’s is an easy way to fix this. Navigate to your NetBeans installation folder which by default should be C:\Program Files\NetBeans and look for the folder etc. Inside that folder should be a file with the name netbeans.conf. What you need to do is to open the file with your favorite text reader (notepad as an example) and look for the line that starts with netbeans_jdkhome=.

You simply need to modify the line in order to point Netbeans to the the location of the java jdk version you are currently have installed. It should look something like this netbeans_jdkhome=”C:\Program Files\Java\jdk1.7.0_05″. If you are unsure what version you have installed navigate to your java’s installation folder (the default path is C:\Program Files\Java) and look for folder there.

If you are having issues editing the file because of UAC and the lack of administration rights and you are unsure on how to resolve that, read How to edit a file in Program Files. That should hopefully help you out.

Make sure to save the file after you are done editing it. Fire up NetBeans, the error should be gone.

Happy coding!

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

This is a simple snippet that will allow you to download a file from the internet in C# while being able to display the download percentage, download speed and the amount of total data received while downloading.

This is the example form of what to expect when you have the code in place: