Solved

ListBox User Control error

Posted on 2007-03-27
3
369 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Expert Comment

by:mrichmon
ID: 18801240
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
ID: 18801302
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
ID: 18801578
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 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