473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Hiding Menu Items

(using VS2005) I want to hide a menu item, but setting the Visible property
to False does not work! If it's initialy false and I set it to true, that
works. Any suggestions?

- Fred
Oct 10 '06 #1
3 3112

"Fred W." <fr*************@yahoo.comwrote in message
news:uB**************@TK2MSFTNGP05.phx.gbl...
(using VS2005) I want to hide a menu item, but setting the Visible
property to False does not work! If it's initialy false and I set it to
true, that works. Any suggestions?

- Fred
Please describe the circumstances in detail, as I am unable to recreate your
problem in a VS 2005 Windows app.

I created a simple File menu:

File
Save
Exit

on a Windows form, then used an existing button.click event procedure to:

mnuFileExit.Visible = false;

mnuFileSave.Enabled = false;

Worked exactly as expected.
Oct 10 '06 #2
Looks like I need to use the "Available" property. Thanks ...
"pvdg42" <pv****@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>
"Fred W." <fr*************@yahoo.comwrote in message
news:uB**************@TK2MSFTNGP05.phx.gbl...
>(using VS2005) I want to hide a menu item, but setting the Visible
property to False does not work! If it's initialy false and I set it to
true, that works. Any suggestions?

- Fred
Please describe the circumstances in detail, as I am unable to recreate
your problem in a VS 2005 Windows app.

I created a simple File menu:

File
Save
Exit

on a Windows form, then used an existing button.click event procedure to:

mnuFileExit.Visible = false;

mnuFileSave.Enabled = false;

Worked exactly as expected.


Oct 10 '06 #3

"Fred W." <fr*************@yahoo.comwrote in message
news:OS**************@TK2MSFTNGP05.phx.gbl...
Looks like I need to use the "Available" property. Thanks ...
Yes, Available appears to make menu items disappear and appear as well.

Actually, if you observe menu item behavior in commercial products, you'll
find that the prevalent technique is to disable menu items when use is not
appropriate, instead of hiding them. You might consider Enabled true/false.
That way, your users get used to a "standard" menu presentation, but cannot
select inappropriate choices. Just my opinion.
Oct 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
8
by: Dennis C. Drumm | last post by:
Is there a way to modify the standard context menu shown when someone right clicks in a windows text box and that would work for all open windows applications? The standard context menu for...
6
by: Sandy | last post by:
Hello - I have a book that illustrates pulling menu items from a Sql Server table into an ascx via a stored procedure. Is this something that is done in the real world? I do like the effect...
4
by: Tony Vitonis | last post by:
Hello. I've written an app that I want to "live" in the system tray. I want it to start up with just a tray icon showing, and if the user selects "Settings..." from the icon's context menu, to...
1
by: goRide | last post by:
Hi, I'm looking of a way (preferred - a ready class or dll) to customize the context menu. many application has more controls inside the context menu (like textbox, sliders, checkbox, panel...
6
by: J Ames | last post by:
I have an ASP.NET (VB) form that has two drop downs, a horizontal rule and a button. The button invokes a stored procedure and several tables are created on the page with data populated. I want...
3
by: hankman | last post by:
Hi, I have a menu control in my master page. On one of my content pages I have a few div's one floats left and one to the right. my menu control on the right has a dropdown, when this displays...
1
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hi, friends, I am using C#.net 2005 to create a windows application. It has menu items, such as File, etc. Under File, there are more menu items, such as New Files, Working Files, etc. Under...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.