Topics

Give any shape to your form in vb.net

Give any shape to your form in vb.net using any bitmap and making the desired colors transparent.

Continue reading Give any shape to your form in vb.net

Drag or move window from surface in vb.net

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.

Continue reading Drag or move window from surface in vb.net

Add bitmap to menu in vb.net

I am sure we all have developed applications with menus. Right? And obviously, we all use the applications with menus. Take Office for example, or our .NET IDE. What is the difference between the menus of these applications and our menus? These applications have bitmaps in their menus. .NET does not have the facility of putting images in menus by design. How can we achieve this?

Continue reading Add bitmap to menu in vb.net

Fading Visual Effect in VB.Net

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.

Continue reading Fading Visual Effect in VB.Net

Shutdown, Restart or Log off Windows in VB.Net

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

Launch applications, links and mails from 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

Minimize all windows through keybd_event in 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

Monitor and respond to all Windows keyboard events 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.
Continue reading Monitor and respond to all Windows keyboard events in VB Net

Convert Dialogic ADPCM (vox) file to WAV in VB Net

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.
Continue reading Convert Dialogic ADPCM (vox) file to WAV in VB Net

Change Image Formats in VB Net

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.
Continue reading Change Image Formats in VB Net