Results 1 to 7 of 7

Thread: [RESOLVED] Shadowing Text Property

Threaded View

  1. #5
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Shadowing Text Property

    Quote Originally Posted by DavesChillaxin View Post
    vbnet Code:
    1. <DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _

    Did the trick, thanks!
    You'd have to look them up on MSDN, All I remember is I started out with a winform project, added new item, selected User Control (to create a custom button) and needed a way to use and set the Text property at design time, Some things I found while testing...

    EditorBrowsableState.Always) Not needed for .Text property, but if set to Never then .Text won't be listed in IntelliSense.

    Browsable(True) Exposes the Text property in properties window.

    DesignerSerializationVisibility.Visible Remembers the text set in the properties window at design time.
    Last edited by Edgemeal; Dec 5th, 2011 at 02:33 PM. Reason: updated

Tags for this Thread

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