How to copy or cut a file to the Windows clipboard?
Posted on 2010-09-29 | 14442 views
To copy or cut a file to the Windows clipboard, we copy the name and path of the file using a DataObject object to Clipboard. This is how we proceed :
First, we have to declare two constants that will identify the type of the operation, I mean copy or cut. Let's say that 5 or SHELL_COPY is the identifier of the copy operation and 2 or SHELL_CUT is the identifier of the cut operation.
VB.NET Code :
...Read more

How to show the content of dragged data while drag and drop operation?
Posted on 2010-09-26 | 27839 views
We will see in this trick how to show the content of dragged data while drag and drop operation. In normal system operation mode, when you drag an object using the mouse, Windows only shows a small cursor icon notifying the user of the drag and drop operation.
All the work is done during the GiveFeedback Event of the control that contains the dragged data. The parameter GiveFeedbackEventArgs contains the member UseDefaultCursors that we will set to False to tell the GUI Mana...Read more

Snake played on dorm windows! Watch...
Posted on 2010-09-21 | 4280 views
I really wonder how they did it! A snake game played on windows not the OS but on real dorm windows!
Watch the video till the end...

A problem with this video! Please report here...Read more

Touchable holograms! Watch...
Posted on 2010-09-19 | 3611 views
An amazing video of a new technology that create touchable holograms
that people can interact with, for example by hands. The new technology
uses ultrasonic waves to add sensation on a user hand when he touches
the hologram....Read more

How to write read-only properties and fields values?
Posted on 2010-09-17 | 14837 views
As we saw together in a previous post, .NET Framework enables us to access and call protected and private functions of an object. In this post, we will see how to write read-only properties using Reflection namespace services.
The code is as simple as the previous one and fully commented.
VB.NET Code :
...Read more

How to access a protected or private function and call it?
Posted on 2010-09-14 | 3296 views
.NET Framework enables us to access protected and private functions and data of an object using Reflection namespace services, and this simple code demonstrates how to access a private function and call it.
VB.NET Code :

C# Code :...Read more

How to let the user open a file in a specified editor?
Posted on 2010-09-12 | 610 views
In this article, we'll see how to let the user open a file in any windows registered editor by showing the Open As dialog. The code is very simple, we'll use the standard .NET class Process to open the specified file, but instead of letting Windows choose the default file editor to open the file in it, a Open As dialog will be shown to let the user choose the editor he wants like shown in the picture below.

C# Code :
...Read more

Hilarious Google Chrome speed tests
Posted on 2010-09-03 | 671 views
Hilarious video of Google Chrome speed tests...

A problem with this video! Please report here...Read more

The simplest way to extract zip file content into a folder
Posted on 2010-09-03 | 8376 views
We've talked before about the simplest way to compress a folder content into a zip file, in this article we're going to see the opposite of that operation, I mean, the simplest way to extract a zip file content into a folder.
Like I said before, starting with the ME version, Windows treats zip files like normal folders, we can copy and paste from/to it.
Like the compress operation we're going to use the services of the library Microsoft Shell Controls And Automation. Here is ...Read more

Free energy power generator
Posted on 2010-09-02 | 1687 views
Here is a video showing a free energy generator capable of powering a house. When I say FREE, it means that the generator does not require energy to produce electricity.
If you are an engineer, you'll be happy to find many books and tutorials on the net to build your own electricity generator and stop paying money to the power company.

A problem with this video! Please report here...Read more

<< PreviousNext >>


 Interesting Links

 Sponsored Links