TextBox底部阴影

时间:2013-09-10 06:34:29

标签: c# .net winforms

我有UserСontrol,它继承了TextBox。我的新TextBox透明,我想要使TextBox的阴影底部。你告诉他们如何让它发挥作用吗?

例如在我的表格中:

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;
    } 
}

0 个答案:

没有答案
相关问题