Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Whos my Parent?
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Whos my Parent?
Environment versions
Environment:
C# 4.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01486099
Message ID:
01486099
Views:
150
Quick question...

If I have a custom control that is a button and I drop that onto a form and I call that button "Close"

In the click of that button I would like to close the form that it was dropped on... So really, I'd like to define the click event of that button in the actual custom control so that whenever I drop it onto a form, there is no coding involved... It would inherit the code from the custom control... But I cannot find the equivalent of VFP's this.parent.release()...

I do not see where I would be able to use: this.parent.Dispose(false); or this.Parentform.Dispose(false);

Can anyone help me understand this phenomenon??

Thanks,
Bob
Next
Reply
Map
View

Click here to load this message in the networking platform