Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overriding the Toolbar Factory Method
Message
From
07/02/2005 12:28:36
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brazil
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Overriding the Toolbar Factory Method
Miscellaneous
Thread ID:
00984483
Message ID:
00984483
Views:
58
Hi Kevin,

I think there is a mistake in MM .Net documentation under "Creating Your Own Custom Navigation Toolbar (Walkthrough)" topic.

In "Step 4: Overriding the Toolbar Factory Method" we see this
    public override mmNavigationToolbar CreateNavigationToolbar()
    {
        return new MyCustomNavToolBar();
    }
But I think the correct code would be:
    public override void CreateNavToolbar()
    {
        this.NavToolBar = (mmNavigationToolbar) new MyCustomNavToolBar();
    }
Regards,

Eugenio
Next
Reply
Map
View

Click here to load this message in the networking platform