MenuNotif.Items["login"].Visible = true;
MenuNotif.Items["login"].DropDownItems["logout"].Visible = true;
there is 1 element of the Items collection under the name of the login, and in it another element under the name logout
Find more questions by tags Visual C#
I tried MenuNotif.Items["login"].DropDownItems["logout"].Visible = true; but writes that the DropDownItems. There are such properties at all. I don't even know what to do.
But do that mean That prior to authorization by default, the sub-item logout should be hidden, but after login I have to put the Visible property to True to show it. (Well, I think it was clear to you already.)
Quote "in short, search for" I'm on it all morning dolblyus. Different options tried.
"Google I from you will not soon leave you alone, so you bad luck today =)" - Hildegard26 commented on July 9th 19 at 13:59
It's not the wording, but in essence, why do so?
"I don't even know what to do.
Oh, I like your "don't know".
Take Google, enter dropdownitems, there's an article from MSDN under the title "the Property of ToolStripDropDownItem.DropDownItems," so we should probably lead type:
(MenuNotif.Items["login"] as ToolStripDropDownItem).DropDownItems.blablabla
"I hope this will help =)"
Yes laziness to me, C# to run quite a long time not writing on it, it is Android, there Java, C++, assembler... - mazie.Towne commented on July 9th 19 at 14:05
(I'm a beginner so this kosyachny, well, hut knowledge of php a little help with the work in C#. Otherwise I would do wouldn't even know what a variable is :D) - Hildegard26 commented on July 9th 19 at 14:08