TextBox を継承する UserСontrol があります。新しい TextBox を透明にし、TextBox の影の下部を作成したいと考えています。それを機能させる方法を教えてもらえますか?
たとえば、私の Form で:
private const int CS_DROPSHADOW = 0x00020000;
protected override CreateParams CreateParams
{
get
{
// add the drop shadow flag for automatically drawing
// a drop shadow around the form
CreateParams cp = base.CreateParams;
cp.ClassStyle |= CS_DROPSHADOW;
return cp;
}
}