| | |
how to Access Module variable in ToolStripMenuItem_Click Event
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
•
•
I have declare a array variable in module, i need to access this variable to ToolStripMenuItem_Click Event.
Public MyArray() As Integer •
•
•
•
when type that variable it shows "Class 'System.Windows.Forms.ToolStripMenuItem' cannot be indexed because it has no default property"
ctlToolStrip(0) . Change it to ctlToolStrip.Items.Item(0) HTH
Teme64 @ Windows Developer Blog
•
•
Join Date: Jul 2009
Posts: 4
Reputation:
Solved Threads: 0
hi dear,
i declare the variable as public only... i want to use this variable in mdi form ToolStripMenuItem_Click event...
ie) before i show any form, i need to check the variable
for example,
i declare in module like
" Public Menu_201(1000) As String
and access in mdi form "ToolStripMenuItem_Click event" like
if Menu_201(201)="ABC" then
some thing i need to write here
end if
i declare the variable as public only... i want to use this variable in mdi form ToolStripMenuItem_Click event...
ie) before i show any form, i need to check the variable
for example,
i declare in module like
" Public Menu_201(1000) As String
and access in mdi form "ToolStripMenuItem_Click event" like
if Menu_201(201)="ABC" then
some thing i need to write here
end if
•
•
•
•
" Public Menu_201(1000) As String
•
•
•
•
i declare the variable as public only
•
•
•
•
i want to use this variable in mdi form ToolStripMenuItem_Click event...
ie) before i show any form, i need to check the variable
Teme64 @ Windows Developer Blog
![]() |
Similar Threads
- how to access accessing PHP variable in JavaScript (PHP)
- How to access a private variable (C++)
- What is difference between Module and Functions (Visual Basic 4 / 5 / 6)
- Can't access 16 bits variable (C++)
- Monitoring number of smtp bytes sent through python e-mail socket (Python)
Other Threads in the VB.NET Forum
- Previous Thread: Hangman Game
- Next Thread: Writing to an XML without overwriting data
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2008 access add application arithmetic array assignment basic binary box button buttons center click code combo combobox component connectionstring convert cpu data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel exists firewall folder image images isnumericfuntioncall login math memory mobile module ms msaccess mssqlbackend mysql navigate net opacity pan peertopeervideostreaming picturebox picturebox1 port print printpreview problemwithinstallation project record regex reports" reuse right-to-left save savedialog search serial sorting sqldatbase storedprocedure string temp textbox timer txttoxmlconverter updown useraccounts usercontol usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vbnet view vista visual visualbasic visualbasic.net visualstudio web wpf xml





