Results 1 to 2 of 2

Thread: Strange Behavior

  1. #1

    Thread Starter
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    Strange Behavior

    When I drag and drop my custom control on to the webform, it displays as a little (resizable) square in design.
    If I click the html tab to go to html view, then click the Design tab again, the control shows just fine (like a regular textbox).

    Is there some event I am missing or a property that needs to be set?

    The top is what is looks like when I place the control on the form.
    The bottom is what it looks like when I go to html view and then back to design view...



    Any Ideas what is going on?
    Attached Images Attached Images  
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  2. #2

    Thread Starter
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    Solution: I had to override the render event.
    Like this
    VB Code:
    1. Protected Overrides Sub render(output As HtmlTextWriter)
    2.    EnsureChildControls()
    3.    MyBase.Render()
    4. End Sub
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width