In my current project I had to implement move for a Form, which doesn’t have a title bar or FormBorderStyle property set to None. Instead of title bar I was using a Panel with background Image. Here is the code snippet. As it is WIN32 API call, you need to import System.Runtime.InteropServices namespace.
Posts Tagged: WIN32 API
Another WIN32 API tip helps to lock your system from C# code. It is very straight forward API. You can find this more information about LockWorkStation function from MSDN. Here is the WIN32 API declaration. And here is the implementation. Happy Coding
If we delete file or folder using C# code, it will be deleted from system permanently. Yesterday I was searching for a solution, which helps me to delete file to recycle bin. There is no direct API* available in .Net which helps me to achieve this. Later I found an option using SHFileOperation function. And [...]
As most of the .Net developers, I am also started my development career with VB6. VB6 comes with few file system controls, like DriveListbox, DirectoryListbox, FileListbox etc. But in .Net framework didn’t support these controls. Here is a solution for creating a drive listbox(it is not a listbox, it is dropdown list). The drive information [...]
Few days back I started working on another open source project, for capturing screen shots. It is similar or can be used as an alternative to Snipping Tool in Windows Vista / 7. Here is the main features of CaptureItPlus Supports all major screen capture modes. Fullscreen, Window, Rectangle, FreeForm and Scheduled capture. Supports various [...]