Give any shape to your form in vb.net using any bitmap and making the desired colors transparent.
|
||||||
|
Give any shape to your form in vb.net using any bitmap and making the desired colors transparent. There are applications in which we can move the form from any place on the window (not just the title bar). Here is the tutorial on how can we do this. The code explores – how does Windows Operating System handle a Window (we call it ‘form’ in Visual Basic) & then uses the SendMessage API to achieve the promised task. In VB.NET, the fading effect on form can be easily programmed using the ‘Opacity’ property of form. In this tutorial we will discuss the use of this property. Looks very basic? Yes, it is. However, it will surely help beginners and moreover, I have used some stuff like Optional parameters and use of threads (simple use of CurrentThread to pause the application) in the code. This might be of some interest to some of our friends. To shutdown computer through VB.NET, we use the API – ExitWindowsEx. However, there is one issue with this – we cannot shut the computer down if our application does not have the appropriate privileges (permissions). Here is the solution – a class encapsulating the ExitWindowsEx and other APIs needed for getting appropriate privileges. Continue reading Shutdown, Restart or Log off Windows in VB.Net This discussion uses System.Diagnostics.Process.Start method for functionality like providing a click-able web link, launching an email client (like outlook, mailto links), or launching another application from vb.net code. Continue reading Launch applications, links and mails from vb net This code shows how can we minimize all open windows using keybd_event API. Continue reading Minimize all windows through keybd_event in VB Net How do keyloggers work. How to read what key is pressed irrespective of focus on form or visibility of form and write code for handling it. Object Oriented wrapper for Windows Hook (with event) to address the above issues. This code converts a Dialogic ADPCM File (.vox) into a .wav file without using any third party component. I had done this for a friend. I always wanted that the functionality to convert an image from one format to another should be available in the programming language itself. This dream has come true with .NET. There are many applications (dealing with images) in which we might want to save an image of any format in some other format (example: bmp to jpg is very common as it decreases the file size considerably without significant loss of quality). This can be done very easily in .NET. |
||||||
|
Copyright © 2010 Rahul Vyas - All Rights Reserved. |
||||||
Comments