Results 1 to 10 of 10

Thread: Visual Inheritance of a ToolStrip

Threaded View

  1. #1

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Visual Inheritance of a ToolStrip

    Hi,

    This is a known and previously reported problem and promised to be fixed in the "NEXT" version of Visual Studio over and over again.

    Microsoft Connect : https://connect.microsoft.com/Visual...of-a-toolstrip

    I am trying to create an infrastructure library to be used by all my projects where one of the project in that library contains the base forms for different things like ViewBase, EditBase, SearchBase & DialogBase. They all are inherited from a Base form which contains a toolstrip control with 3 common buttons for OK, Close & About.

    Now depending on the type of base form I would like to add few more buttons and controls on the toolstrip during the design time. For example the SearchBase would have a Search, Clear buttons and so forth and so on.

    It it worth noting that I change the modifier of the toolstrip to Protected. None of the inherited form allows me to add a new button or anything on the toolstrip. So I made the modifier public and the same behaviour. All the properties of the toolstrip control are disabled. Why is this? This is kind of a show stopper as I can't rely on the standard controls provided and have to look for third party controls.

    Steps to reproduce this.
    Create a new blank solution
    Add a new project of type class library
    Delete the default Class1 file
    Add a Windows Form named "FormBase"
    Add a ToolStrip control on the form and set the modifier to "Protected"
    Add a button and a label (Don't have to but this is for visual testing)
    Compile the solution
    Now add an Inherited Windows Form named "FormSearchBase" and inherit it from the "FormBase"

    Can anyone else reproduce this?

    I have posted this to Microsoft Connect as a bug but if it gets more support and approval then there is a higher chance of it being fixed.

    Cheers
    WRACK (http://www.codelake.com)
    Last edited by wrack; Apr 16th, 2010 at 10:56 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width