Hi,

i want to change fileToolStripMenuItem from enabled==true to enabled==false after click on it in my formApplication.

It does not work:

private void fileToolStripMenuItem_Click_1(object sender, EventArgs e)
     {
        fileToolStripMenuItem.Enabled == false;
     }

what is wrong?

Recommended Answers

All 5 Replies

How many fileToolStripMenuItem_Click have you? Probably you have almost the standard one (fileToolStripMenuItem_Click) and the one exibited here(fileToolStripMenuItem_Click_1 created after you deleted)

Please, go to the form designer and verify wich one is the delegate for the event click of the fileToolStripMenuItem.

Hope this helps

commented: Good observation! +14

Thanx Lola!

i got it, i used = two times, not once.

Hi ada9452. If this solved the issue, please mark this thread as closed.

sincerely.

Lola, how can i mark thread as close? I am new on this forum.

There is a 'solved' button. Please.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.