Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Controls

Status
Not open for further replies.

dpanattoni

IS-IT--Management
Jan 29, 2002
76
0
0
US
I have a CheckBoxList that is dynamically added during the running of my program. I want to use the OnSelectedIndexChanged method, but I get a compiler message stating that this method is inaccessible due to it's protection level.

Is this method not avaialable when doing a dynamic control? Is there a backdoor way?

I want to turn on/off a flag when the user makes a selection on a checkbox.

Thanks in advance.
DP
 
Are you doing this at Work or at Home?

If at work check with the SA and see if He/She has modified the security lately, if so you will need to do an Assembly rights assertion.

The only other thing that might cause a problem is if your declaration is not in the apporpriate spot and thus runs out of the current Scope.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top