I have created a custom control and one of the properties of it is a Rollover Image.
Here is the property
VB Code:
  1. <DefaultValue(""), _
  2. Description("This will set the rollover image of the control."), _
  3. Editor(GetType(System.Web.UI.Design.ImageUrlEditor), _
  4. GetType(System.Drawing.Design.UITypeEditor))> _
  5. Public Property RolloverImage() As String
  6.    Get
  7.       mstrRolloverImage = ViewState("RolloverImage").ToString
  8.       If mstrRolloverImage.Length = 0 Then
  9.          Return mstrRolloverImage.Empty
  10.       Else
  11.          Return mstrRolloverImage
  12.       End If
  13.    End Get
  14.    Set(ByVal Value As String)
  15.       mstrRolloverImage = Value
  16.       ViewState("RolloverImage") = mstrRolloverImage
  17.    End Set
  18. End Property

The problem occurs when I compile the control, add it to my toolbox, then drop it on my page...The Rollover Image property displays "Object reference not set to an instance of an object"...but I'm not sure why???

Anyone have any ideas how to fix this?