You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SSharp
Hello,
I am trying to access a control from an event handler.
It doesn’t work. It seems like I cannot access controls in event
handlers.
For what I am trying to do, this represents a problem.
function OnClick(s,e)
{
MessageBox.Show(Button1.Name);
}
Button2.Click += OnClick;
How to make the event handler to be able to use the Button1 object?
Thank you.
piter....@gmail.com
unread,
Oct 18, 2010, 9:38:07 AM10/18/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message