|
-
Nov 27th, 2002, 11:28 PM
#1
Thread Starter
Member
2 more menu problems
Hello again
The answers are probably simple but i'm still lost in the conversion My first problem is this error
'System.Windows.Forms.Menu.MenuItemCollection' does not contain a definition for 'Item'
on this line
MenuItem dirToInputTo = favoritesMenu.MenuItems.Item(subDirNo);
it works in VB.net but menuItems doesn't have a .Item in c#. Is there a solution / workaround to this?
My second problem is
'System.Windows.Forms.Menu.MenuItems' denotes a 'property' where a 'method' was expected
on
if (favoritesMenu.MenuItems(i).Text == ("&" & folderBeforeSubDir))
Again this works in VB but i can't find the equivilent in c#. I'm trying to find the text of the menuItem i in the favorites menu
Can anyone help?
-
Nov 27th, 2002, 11:35 PM
#2
Thread Starter
Member
oh dear....please ignore this lack of forethought.....i just found a solution somewhere else
thanks anyway
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|