Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Show menu drop downs
Message
De
28/10/2009 21:22:16
 
 
À
28/10/2009 13:48:43
Information générale
Forum:
ASP.NET
Catégorie:
Menus
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01431713
Message ID:
01432145
Vues:
43
Sorry Bill ... I missed the fact that you were using an MDI Form. My bad. Guess I misunderstood you too! <g>

Anyway, it seems to work ok for me if I do the following:

Put the call to processToolStripMenuItem.ShowDropDown() in *both* the ParentForm's Activated event and the MainForm's MenuItem Click event:
// MainForm
private void processToolStripMenuItem_Click(object sender, EventArgs e)
{
	ChildForm oForm = new ChildForm();
	oForm.MdiParent = this;
	oForm.Show();

	this.processToolStripMenuItem.ShowDropDown();
}

private void MainForm_Activated(object sender, EventArgs e)
{
	this.processToolStripMenuItem.ShowDropDown();
}
~~Bonnie




>Bonnie
>
>I have a feeling that I misunderstood you (surprise!)
>
>I put this code below in the activated event handler of the menu form.
>
>
> // Show the Process Menu Dropdowns
>         processToolStripMenuItem.ShowDropDown();
>
>
>I think you might have meant that I should put in the activated event of the MDIChild form.
>
>I don't know how to call a method of a toolstripmenu item object in the partent form
>
>Could you show me the code you used?
>
>Thanks
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform