Problem with inheriting a WindowsForms C # menustrip


I'm having a problem with the inheritance of a MenuStrip from a parent form to a daughter class since I can not access the edition of it. I have already tried from the parent class to put the modifiers in public and make their events virtual and in the daughter class to have these methods overwritten with override and with the base to access but there is no way.

This is the code of the parent class:

namespace LogicaDelJuego {
  public partial class TableroPrincipal: Form {
    public virtual void nuevoJuegoToolStripMenuItem_Click(object sender, EventArgs e) {
      try {
        DatosPersonales data = new DatosPersonales();
        data.enviarDatos += new DatosPersonales.EnviarDatosEventHandler(ConfiguracionInicial);
      } catch (Exception ex) {
        MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

This is the daughter class code:

using System;
using LogicaJUego;
namespace SocketServidor {
  public partial class TableroServidor: TableroPrincipal {
    SetupServer setup;
    public TableroServidor() {
      setup = new SetupServer();

    public override void nuevoJuegoToolStripMenuItem_Click(object sender, EventArgs e) {
      base.nuevoJuegoToolStripMenuItem_Click(sender, e);

    public override void partidaToolStripMenuItem_Click(object sender, EventArgs e) {
      base.partidaToolStripMenuItem_Click(sender, e);

I want to be able to edit the MenuStrip from the daughter class but it has all the properties turned off:

And at least I want it to be able to be edited as the parent class in this way:

asked by Emiliano Calvacho 19.11.2018 в 18:52

0 answers