很简单的问题,但我很急!菜单……

claider 2001-11-28 09:39:54
菜单的索引如何设置啊?急急急!!!!
...全文
61 5 打赏 收藏 举报
写回复
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
junglerover 2001-11-28
  • 打赏
  • 举报
回复
哈哈,这个错误是说,你的菜单里面有两项重名了!
在VB中,只有控件数组才有所谓 Index,
那句话的意思就是,你有两个重名的菜单,但是却没有定义成控件数组。
如果你把重名的那两个菜单加上INDEX,就成了控件数组……在
菜单编辑器里有“Index”项。

不过,最简单的办法还是,把其中的一个改个名字吧!
claider 2001-11-28
  • 打赏
  • 举报
回复
An item has been added to a Menu control array without assigning an index value to the item. Unlike other control arrays in Visual Basic, Menu control arrays require you to assign indices as the item is created, because Visual Basic doesn't supply a default Index property setting for Menu control array items.

这句话是什么意思啊?
菜单的索引就是,每个菜单项都有一个的index值
junglerover 2001-11-28
  • 打赏
  • 举报
回复
什么叫菜单的索引?新概念。
claider 2001-11-28
  • 打赏
  • 举报
回复
有么有什么基本的规则啊
claider 2001-11-28
  • 打赏
  • 举报
回复
hehe,我也发现了,不好意思,一时急了,给分
相关推荐
发帖
VB基础类

7681

社区成员

VB 基础类
社区管理员
  • VB基础类社区
加入社区
帖子事件
创建了帖子
2001-11-28 09:39
社区公告
暂无公告