Solved

ListBox User Control error

Posted on 2007-03-27
3
368 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

756 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