Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
i started modifying my old project on windows application in VB.NET.
i added one menustripitem, but when i run the project it does not visible, even though enable and visible property are true.
Posted
Comments
Karthik Harve 16-Dec-11 1:24am    
to which control you added the menu strip..??? display some of your code.
Sant Osha 16-Dec-11 1:40am    
Me.EmployeeAttendenceReportToolStripMenuItem.Name = "EmployeeAttendenceReportToolStripMenuItem" Me.EmployeeAttendenceReportToolStripMenuItem.Size = New System.Drawing.Size(287, 22) Me.EmployeeAttendenceReportToolStripMenuItem.Text = "Employee Attendence Report"

Is there any control other than menu displayed ? have you commented your InitializeComponent() event which is in constructor.
can you show use the your .vb code ?
 
Share this answer
 
Comments
Sant Osha 16-Dec-11 1:39am    
Prasad ....code is right.....

'EmployeeAttendenceReportToolStripMenuItem
'
Me.EmployeeAttendenceReportToolStripMenuItem.Name = "EmployeeAttendenceReportToolStripMenuItem"
Me.EmployeeAttendenceReportToolStripMenuItem.Size = New System.Drawing.Size(287, 22)
Me.EmployeeAttendenceReportToolStripMenuItem.Text = "Employee Attendence Report"
'



above code is in InitializeComponent()



and i have only menustrip...
i added 10 menus...

in one of that created 10 sub menus...
and now i created one more in same menu..
but its not displayed after running..
Just go in the property of the form in which you want to show the menu strip

u will get one option of "menustrip" in that select the name of the "menustrip" you want to show..

i hope this will help you
 
Share this answer
 
Just delete all exe files created in bin\debug, bin\release,obj\debug, obj\release

and application will work fine
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900