Link to home
Start Free TrialLog in
Avatar of born4code
born4code

asked on

Protected WithEvents Control Declarations Missing in VS2005

I am attempting to expose Controls and their properties to a base class handler.  I have not been successful, so I thought it might be that my controls were not publicly exposed in the page.

For example, if I type....

Public WithEvents ImageA as System.Web.UI.WebControls.Image

I get an error:

"ImageA is already declared as 'Protected Dim WithEvents ImageA as System.Web.UI.WebControls.Image' in this class"

Okay, great!  Where is it so I can change it from "Protected" to "Public" ???

ASKER CERTIFIED SOLUTION
Avatar of Elvio Lujan
Elvio Lujan
Flag of Argentina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of born4code
born4code

ASKER

"just go the declarations part of the form"

I would love to.  I cannot find anything like that.  The article you point to says that you can simply "Show All Files" from the object browser.  I've done that and it does not show up there either.

?
lem,

Well.. nobody responded to this one.
I have finally discovered that this issue is by design with the "web site" project in VS2005.
There is now a fix available.

still giving you the points... the only one who had the guts to take this one on?

cheers.