Click here to Skip to main content
15,887,854 members
Home / Discussions / C#
   

C#

 
AnswerRe: SOS..I need help with .dll files Pin
PIEBALDconsult22-Jul-08 12:26
mvePIEBALDconsult22-Jul-08 12:26 
Questionlist of interfaces in C# needed Pin
asherhoo22-Jul-08 8:51
asherhoo22-Jul-08 8:51 
AnswerRe: list of interfaces in C# needed Pin
Pete O'Hanlon22-Jul-08 9:30
mvePete O'Hanlon22-Jul-08 9:30 
GeneralRe: list of interfaces in C# needed Pin
asherhoo22-Jul-08 10:07
asherhoo22-Jul-08 10:07 
GeneralRe: list of interfaces in C# needed Pin
Pete O'Hanlon22-Jul-08 10:11
mvePete O'Hanlon22-Jul-08 10:11 
GeneralRe: list of interfaces in C# needed Pin
asherhoo22-Jul-08 10:18
asherhoo22-Jul-08 10:18 
AnswerRe: list of interfaces in C# needed Pin
PIEBALDconsult22-Jul-08 12:19
mvePIEBALDconsult22-Jul-08 12:19 
QuestionHow to disable scroll in menu on visibility change Pin
AndrusM22-Jul-08 8:36
AndrusM22-Jul-08 8:36 
To reproduce, run code, open file menu, press up and down arrows to move out of menu.

Observed: Menu items are scrolled and blank items appears in end.

I need to change visibility of menu items at runtime.
How to disable such scrolling ?

Is this .NET 3.5 bug ?

Andrus.


using System.Windows.Forms;

static class Program
{
    static void Main()
    {
        Application.Run(new Form1());
    }
}

class Form1 : Form
{
    public Form1()
    {
        var menuStrip1 = new MenuStrip();
        var fileToolStripMenuItem = new ToolStripMenuItem();
        menuStrip1.Items.AddRange(new ToolStripItem[] { fileToolStripMenuItem });
        for (int i = 0; i < 10; i++)
        {
            var item = new ToolStripMenuItem("Item" + i.ToString());
            fileToolStripMenuItem.DropDownItems.Add(item);
            if (i < 5)
                item.Visible = false;
        }

        fileToolStripMenuItem.Text = "File";
        Controls.Add(menuStrip1);
        MainMenuStrip = menuStrip1;
    }
}


Andrus

AnswerRe: How to disable scroll in menu on visibility change Pin
Luc Pattyn22-Jul-08 8:55
sitebuilderLuc Pattyn22-Jul-08 8:55 
GeneralRe: How to disable scroll in menu on visibility change Pin
AndrusM22-Jul-08 8:58
AndrusM22-Jul-08 8:58 
GeneralRe: How to disable scroll in menu on visibility change Pin
Luc Pattyn22-Jul-08 9:43
sitebuilderLuc Pattyn22-Jul-08 9:43 
GeneralRe: How to disable scroll in menu on visibility change Pin
Wendelius22-Jul-08 9:59
mentorWendelius22-Jul-08 9:59 
GeneralRe: How to disable scroll in menu on visibility change Pin
AndrusM23-Jul-08 4:16
AndrusM23-Jul-08 4:16 
GeneralRe: How to disable scroll in menu on visibility change Pin
Wendelius23-Jul-08 4:57
mentorWendelius23-Jul-08 4:57 
GeneralRe: How to disable scroll in menu on visibility change Pin
AndrusM23-Jul-08 4:04
AndrusM23-Jul-08 4:04 
GeneralRe: How to disable scroll in menu on visibility change Pin
Luc Pattyn23-Jul-08 4:18
sitebuilderLuc Pattyn23-Jul-08 4:18 
GeneralRe: How to disable scroll in menu on visibility change Pin
AndrusM23-Jul-08 4:30
AndrusM23-Jul-08 4:30 
GeneralRe: How to disable scroll in menu on visibility change Pin
Luc Pattyn23-Jul-08 4:46
sitebuilderLuc Pattyn23-Jul-08 4:46 
GeneralRe: How to disable scroll in menu on visibility change Pin
AndrusM23-Jul-08 5:36
AndrusM23-Jul-08 5:36 
GeneralRe: How to disable scroll in menu on visibility change Pin
Luc Pattyn23-Jul-08 6:04
sitebuilderLuc Pattyn23-Jul-08 6:04 
GeneralRe: How to disable scroll in menu on visibility change Pin
AndrusM23-Jul-08 6:57
AndrusM23-Jul-08 6:57 
GeneralRe: How to disable scroll in menu on visibility change Pin
AndrusM23-Jul-08 4:37
AndrusM23-Jul-08 4:37 
Questiondropdownlist problem Pin
scottichrosaviakosmos22-Jul-08 8:09
scottichrosaviakosmos22-Jul-08 8:09 
AnswerRe: dropdownlist problem Pin
carbon_golem22-Jul-08 8:51
carbon_golem22-Jul-08 8:51 
AnswerRe: dropdownlist problem Pin
Shuaib wasif khan22-Jul-08 9:15
Shuaib wasif khan22-Jul-08 9:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.