Solved

ListBox User Control error

Posted on 2007-03-27
3
362 Views
Last Modified: 2013-11-26
I am trying to create a LISTBOX user control by inheriting from the listbox.  I am getting an error message that sais
"Property ' SupportAutoEvents' cannot be declared 'Overides' because it does not override a property in a base class.

Any ideas would be helpful please.
0
Comment
Question by:Robb Hill
  • 2
3 Comments
 
LVL 35

Expert Comment

by:mrichmon
Comment Utility
Do not use the word overides.

You can only use this on a property that exists in the base class.  Your extended properties should not need the overide keyword.
0
 
LVL 11

Author Comment

by:Robb Hill
Comment Utility
this function is generated as a temp file.  I cannot change the overides
App_Web_uggeu8uh.0.vb

Protected Overrides ReadOnly Property SupportAutoEvents() As Boolean
            Get
                Return false
            End Get
        End Property
0
 
LVL 35

Accepted Solution

by:
mrichmon earned 500 total points
Comment Utility
Sorry - I assumed it was a property you were adding without looking at it.

I have not seen this when inheriting from a listbox - I have a control which has done this and did not need to touch the SupportAutoEvents.

This may help:
http://msdn2.microsoft.com/en-us/library/system.web.ui.templatecontrol.supportautoevents.aspx
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now