Web Controls

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vishal

    #1

    Web Controls

    Hi Guys[color=blue]
    >
    > I have a problem as stated below.Hope You can help\me.
    >
    > I create a Web Server Control which inherits from
    > WebControl and overrides property for Width of the
    > WebControl as
    >
    >
    >
    > Public Overrides Property Width() As Unit
    >
    > Get
    >
    > Return MyBase.Width()
    >
    > End Get
    >
    > Set(ByVal Value As Unit)
    >
    > MyBase.Width = Value
    >
    > _Button.Width = Unit.Pixel(20)
    >
    > Dim nWidth As Integer
    >
    > Me.Width.Pixel( nWidth)
    >
    > _Textbox.Width = New Unit(100,[/color]
    UnitType.Pixel)[color=blue]
    >
    > _Textbox.Width = Unit.Pixel((CTy pe
    > (Me.Width.Value .ToString(), Integer) - 20))
    >
    > End Set
    >
    > End Property
    >
    >
    >
    > And then,
    >
    >
    >
    > In design mode when I change Width of the Control, Close
    > the Web Form, and Re-open the Web Form again then it
    > gives me error as "Ambiguous match found".
    >
    >
    > Thanks
    > Vishal[/color]

Working...