Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Interface to refresh a form from a user control
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01384478
Message ID:
01384481
Views:
31
Just to update you - It was staring me in the face - In the base class of my usercontrol I added a property of type IRefreshForm - then overrode the OnLoad event with this
public IRefreshForm RefreshForm;

protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
        
    if this.ParentForm is IRefreshForm)
    {
        this.RefreshForm = (IRefreshForm)this.ParentForm;
    }
}
works like a charm
Regards,
Peter J. Kane



Pete
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform