Solved

ListBox User Control error

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

Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

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 article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

635 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