views:

289

answers:

0

I would like to create a textbox that accepts an ARGB value (Not a rgb value, an Argb value) a.k.a allows semi-transparent background colors.

I have this in the designer code so far:

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class TransparentTextbox
    Inherits System.Windows.Forms.TextBox

    Public Sub New()
        MyBase.New()
        Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)
    End Sub
End Class

It compiles and is added to the project I have attached to the control project. When I add it to a form it adds, but when I change it to an ARGB value it does not turn semi-transparent and it should for the color 30,255,174,40.

Also it gives me this error when I run the form:

'\Projects\TransparentTextbox\TransparentTextbox\obj\Debug\TransparentTextbox.dll' doesn't contain any UserControl types.

I know I'm doing something wrong, could i get a little help. Thanks much.