# Removing Topic Links from Topic Pages

Get started with Menus and Toolbars for WinForms. Create versatile menus and docking/floating toolbars. See more in documentation here.

## Content



You can remove topic links from topic pages using the floating toolbar, the collection editor, and code. In this topic, you will learn how to remove topic links using each of the aforementioned methods. This topic assumes that you have a [C1TopicBar](/componentone/docs/win/online-menus-toolbar/) control containing at least one topic link (see [Adding Topic Links to Topic Pages](/componentone/docs/win/online-menus-toolbar/menusandtoolbarsforw2/topicbartasks/addingandremovingtop/addingtopiclinkstoto)) on your page.

### Using the Floating Toolbar

Complete the following steps:

1.  Using your cursor, hover over the topic link you wish to remove until its floating toolbar appears. The topic link's toolbar appears similar to the following:<br />![Topic link toolbar](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image10_73.png)
2.  Click the **Delete topic link** ![Button](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image10_74.png) button.

The topic link is removed from the topic page.

### Using the Collection Editor

Complete the following steps:

1.  Click [C1TopicBar](/componentone/docs/win/online-menus-toolbar/)'s smart tag (![Smart tag](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image10_47.png)) to open the **C1TopicBar Tasks** menu.
2.  On the **C1TopicBar Tasks** menu, click **Edit Pages**.<br />![Edit Pages](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image10_67.png)<br />The **C1TopicPage Collection Editor** opens.
3.  In the Members pane, select a page.
4.  In the Properties grid, locate the **Links** property and click the ellipsis button ![Button](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image10_57.png). The **C1TopicLink Collection Editor** opens.
5.  In the Members pane, select the link you wish to remove.
6.  Click **Remove** to remove the link.
7.  Click **OK** to close the **C1TopicPage Collection Editor**.
8.  Click **OK** to close the **C1TopicLink Collection Editor**. The topic link is removed from the topic page.

### Using Code

Complete the following steps:

1.  Click [C1TopicBar](/componentone/docs/win/online-menus-toolbar/)'s smart tag (![Smart tag](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image10_47.png)) to open the **C1TopicBar Tasks** menu.
2.  On the C1TopicBar Tasks menu, click Edit Pages.<br />![](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image10_67.png)<br />The **C1TopicPage Collection Editor** opens.
3.  In the Members pane, select the page that holds the link you wish to remove.
4.  In the Properties grid, set the page's **Tag** property to “PageWithLink”. This will allow you to find the page in the code by using the [FindPageByTag](/componentone/docs/win/online-menus-toolbar/) method.
5.  In the Properties grid, locate the **Links** property and click the ellipsis button ![](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image10_57.png). The **C1TopicLink Collection Editor** opens.
6.  Select the link you wish to remove in code and, in the Properties grid, set the link's [Tag](/componentone/docs/win/online-menus-toolbar/) property to “LinkToRemove”. This will give the link a unique indicator, which will allow you to find it in code using the [FindLinkByTag](/componentone/docs/win/online-menus-toolbar/) method.
7.  Click **OK** to close the **C1TopicPage Collection Editor**.
8.  Click **OK** to close the **C1TopicLink Collection Editor**.
9.  Double-click the empty portion of the form to open Code view. Notice that a **Form\_Load** event handler has been added to Code view.
10.  Add the following code to the **Form\_Load** event. This code will find the page and link, assign them to variables, and then will remove the link from the page.
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in Visual Basic
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```vbnet
    'Find page and assign to variable
    Dim c1TopicPage1 = c1TopicBar1.FindPageByTag("PageWithLink")
    'Find link and assign to variable
    Dim c1TopicLink1 = c1TopicPage1.FindLinkByTag("LinkToRemove")
    'Remove link from page
    c1TopicPage1.Links.Remove(c1TopicLink1)                              
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in C#
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```csharp
    //Find page and assign to variable 
    var c1TopicPage1 = c1TopicBar1.FindPageByTag("PageWithLink"); 
    //Find link and assign to variable 
    var c1TopicLink1 = c1TopicPage1.FindLinkByTag("LinkToRemove"); 
    //Remove link from page
    c1TopicPage1.Links.Remove(c1TopicLink1);
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
11.  Press F5 to build the project.

## See Also

[Customizing the Appearance](/componentone/docs/win/online-menus-toolbar/menusandtoolbarsforw2/topicbartasks/customizingtheappear)