I can't believe this one had me stumped. I could not get a property to show
up in the property browser at all and count NOT figure this out.
The suddenly, BAM! It hit me...
The property code looked like this (sans the actual code that does
anything):
<Category("Behavior"), Browsable(True),
EditorBrowsable(EditorBrowsableState.Always), _
DesignerSerializationVisibility(DesignerSerializat ionVisibility.Visible),
_
DefaultValue(""), Description("Sets the path to a help file for the
wizard.")> _
Public Property HelpFile(ByVal filename As String) As String
Get
End Get
Set(ByVal value As String)
End Set
End Property
This is the working version:
<Category("Behavior"), Browsable(True),
EditorBrowsable(EditorBrowsableState.Always), _
DesignerSerializationVisibility(DesignerSerializat ionVisibility.Visible),
_
DefaultValue(""), Description("Sets the path to a help file for the
wizard.")> _
Public Property HelpFile() As String
Get
End Get
Set(ByVal value As String)
End Set
End Property
Had enough yet? Look at the line that starts the public property. UGH! I
can't believe that having the 'ByVal filename As String' in there makes the
system behave that way. Man, that is one for the record books I think.
See, that's what you get when you refactor a public method into a property
:)
--
Raymond R Cassick
CEO / CSA
Enterprocity Inc.
www.enterprocity.com
3380 Sheridan Drive, #143
Amherst, NY 14227
V: 716-316-5973
Blog: http://spaces.msn.com/members/rcassick/