Menu

#21 Request for extension of ToolStripMenuItemTester

open
nobody
None
5
2007-03-27
2007-03-27
jho1965dk
No

I would like the following new member functions in ToolStripMenuItemTester

/// <summary>
/// ShowDropDown of a menu.
/// </summary>
public virtual void ShowDropDown()
{
if (Component.Visible)
{
(Component as ToolStripMenuItem).ShowDropDown();
}
else
{
throw new ControlNotVisibleException(name);
}
}

/// <summary>
/// HideDropDown of a menu.
/// </summary>
public virtual void HideDropDown()
{
if (Component.Visible)
{
(Component as ToolStripMenuItem).HideDropDown();
}
else
{
throw new ControlNotVisibleException( name );
}
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.