Código
aquí les dejo la forma en que intento acceder al toolStrip del formulario principal
//aqui lo desactivo al abrir el form hijo
private void proveedorToolStripMenuItem_Click(object sender, EventArgs e)
{
f.MdiParent = this;
f.Show();
this.toolStripDropDownButton1.Enabled = false;
}
//funciona bien
Código
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SAF
{
public partial class Prueba : Form
{
public Prueba()
{
InitializeComponent();
}
private void Prueba_Load(object sender, EventArgs e)
{
}
private void Prueba_FormClosed(object sender, FormClosedEventArgs e)
{
ToolStrip objMenu = (ToolStrip)this.f.Controls["toolStripDropDownButton1"];
objMenu.Items["toolStripDropDownButton1"].Enabled = true;
//aquí debería de activarse nuevamente el menu
}
}
}


 
  




 Autor
 Autor
		


 En línea
									En línea
								





 
						