以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  未将对象引用到实例求助!  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=54393)

--  作者:land089
--  发布时间:2014/7/27 13:25:00
--  未将对象引用到实例求助!
Dim MenusTop As New system.windows.Forms.menustrip
MenusTop.left=0
MenusTop.Dock = Windows.Forms.DockStyle.Top
e.Form.Panel.Controls.Add(MenusTop)
Dim MenuOne(5)  As system.windows.Forms.toolstripmenuitem
Dim MenuTwo(100)  As system.windows.Forms.toolstripmenuitem
Dim Menus0 As system.windows.Forms.toolstripmenuitem
Dim Menus1 As system.windows.Forms.toolstripmenuitem
Dim Menus2 As system.windows.Forms.toolstripmenuitem
Dim Menus3 As system.windows.Forms.toolstripmenuitem
Dim Menus4 As system.windows.Forms.toolstripmenuitem


图片点击可在新窗口打开查看此主题相关图片如下:大概.jpg
图片点击可在新窗口打开查看     
在红字体开始处出现错误代码,研究了N久没解决求高人指点。

[此贴子已经被作者于2014-7-27 20:26:06编辑过]

--  作者:有点甜
--  发布时间:2014/7/27 14:09:00
--  

 实例化

 

Dim Menus0 As new system.windows.Forms.toolstripmenuitem
Dim Menus1 As new system.windows.Forms.toolstripmenuitem
Dim Menus2 As new system.windows.Forms.toolstripmenuitem
Dim Menus3 As new system.windows.Forms.toolstripmenuitem
Dim Menus4 As new system.windows.Forms.toolstripmenuitem


--  作者:land089
--  发布时间:2014/7/27 14:15:00
--  
调试成功了谢谢!图片点击可在新窗口打开查看