Vaibhav Gaikwad
Microsoft .NET developer
Bla Code! Bla Code!

March 2007 Entries

Flashing your window, getting attention.

This is a simple example of using Win32 api in .NET. I'll use the FlashWindow() API from user32.dll so as to make the window go flashing and get attention. Take a simple Windows form and add a button to it. Add a reference to System.Runtime.InteropServices namespace. And heres the code. // --------- code -----------[DllImport("user... static extern int FlashWindow(int hWnd, int bInvert); public partial class Form1 : Form{ public Form1() { InitializeComponent(); } private void button1_Click(object ......

Where to start from ?

Thinking of where to start from with millions of topics in mind. I will dedicate this blog to unmanaged code. As a .NET programmer, I will be illustrating use of Win32 native code in managed .NET code.

Right form the start, I was really interested in exploring the Interop framework of .NET.

So this blog will be a mix of both, unmanged in managed world.

-Vaibhav Gaikwad