Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ListBox User Control error

Posted on 2007-03-27
3
Medium Priority
?
371 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 1000 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

661 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