以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 工具栏排序错误 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=115404) |
-- 作者:yifan3429 -- 发布时间:2018/3/6 20:06:00 -- 工具栏排序错误 .NET Framework 版本:2.0.50727.8762 Foxtable 版本:2018.3.3.1 错误所在事件:窗口,用户主页,AfterLoad 详细错误信息: 插入索引已超出范围。必须为非负值,并且必须小于或等于大小。 参数名: index e.Form.Strips("工具栏1").Items.InsertControl("用户备忘",e.Form.Controls("用户备忘"),12) e.Form.Strips("工具栏1").Items.InsertControl("导出用户",e.Form.Controls("导出用户"),13) e.Form.Strips("工具栏2").Items.InsertControl("选择1",e.Form.Controls("选择1"),14) e.Form.Strips("工具栏2").Items.InsertControl("选择2",e.Form.Controls("选择2"),15) e.Form.Strips("工具栏1").Items.InsertControl("用户备忘",e.Form.Controls("用户备忘"),12) e.Form.Strips("工具栏1").Items.InsertControl("导出用户",e.Form.Controls("导出用户"),13) e.Form.Strips("工具栏2").Items.InsertControl("选择1",e.Form.Controls("选择1"),1) e.Form.Strips("工具栏2").Items.InsertControl("选择2",e.Form.Controls("选择2"),2) 工具栏1 工具栏2 index是循序呢 还是重新开始呢 都不行 会报错
|
-- 作者:有点蓝 -- 发布时间:2018/3/6 20:32:00 -- 工具栏没有这么多项目,索引已超出范围 e.Form.Strips("工具栏2").Items.InsertControl("选择2",e.Form.Controls("选择2"),0) e.Form.Strips("工具栏2").Items.InsertControl("选择1",e.Form.Controls("选择1"),0) e.Form.Strips("工具栏2").Items.InsertControl("选择2",e.Form.Controls("选择2"),0) e.Form.Strips("工具栏2").Items.InsertControl("选择1",e.Form.Controls("选择1"),0) |