Beep:
Code:
Console.Beep();
Console.Beep(int frequency, int duration);
Flash window title/task bar button
Code:
using System.Runtime.InteropServices;

struct FLASHWINFO
{
    public int cbSize;
    public IntPtr hWnd;
    public int dwFlags;
    public int uCount;
    public int dwTimeout;
}

[DllImport("user32")] private static extern int FlashWindowEx (
    ref FLASHWINFO pwfi
);

const int FLASHW_STOP = 0;
const int FLASHW_CAPTION = 0x1;
const int FLASHW_TRAY = 0x2;
const int FLASHW_ALL = 0x3;
const int FLASHW_TIMER = 0x4;
const int FLASHW_TIMERNOFG = 0xC;

private void button1_Click (object sender, EventArgs e)
{
    FLASHWINFO flashInfo = new FLASHWINFO();
    flashInfo.cbSize = Marshal.SizeOf(flashInfo);
    flashInfo.hWnd = this.Handle;
    flashInfo.dwFlags = FLASHW_ALL;
    flashInfo.uCount = 5;
    flashInfo.dwTimeout = 0;

    FlashWindowEx(ref flashInfo);
}