using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace BlueTube.Viewer
{
public class TransparentPanel : Panel
{
public TransparentPanel()
{
}
///
/// Gets the creation parameters.
///
protected override CreateParams CreateParams
{
get
{
CreateParams createparams = base.CreateParams;
createparams.ExStyle |= 0x00000020; // WS_EX_TRANSPARENT
return createparams;
}
}
///
/// Skips painting the background.
///
/// E.
protected override void OnPaintBackground(PaintEventArgs e)
{
//do nothing
//.OnPaintBackground(e);
}
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
return base.ProcessCmdKey(ref msg, keyData);
}
}
}