Hi there,
I'm running into slight confusion over a .NET menu "control", how comes
it doesn't get listed in the forms controls array? I'm trying to enumerate
through *every* control on any form, and unfortunately unlesss I treat the
menu as a separate entity and then enumerate it after It wont work.
Does anyone know how I can enumerate *every* control on any form in
VB.NET? Cheers in advance.
Nick 6 1301
Its a component not a control and you can use reflexion
to browse controls/components.
Regards
Jorge -----Original Message----- Hi there,
I'm running into slight confusion over a .NET
menu "control", how comesit doesn't get listed in the forms controls array? I'm
trying to enumeratethrough *every* control on any form, and unfortunately
unlesss I treat themenu as a separate entity and then enumerate it after It
wont work. Does anyone know how I can enumerate *every* control
on any form inVB.NET? Cheers in advance.
Nick
.
Nick,
"Nick" <no****@altaven te.com> schrieb: I'm running into slight confusion over a .NET menu "control", how comes it doesn't get listed in the forms controls array? I'm trying to enumerate through *every* control on any form, and unfortunately unlesss I treat the menu as a separate entity and then enumerate it after It wont work.
Does anyone know how I can enumerate *every* control on any form in VB.NET?
'MainMenu' is, like timers, for example, a component. See (complete
thread):
<URL:http://groups.google.d e/groups?threadm= MfEsc.331786%24 rM4.13835730%40 news4.tin.it>
Keywords: enumerate, components, controls, form.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
> I'm running into slight confusion over a .NET menu "control", how
comes it doesn't get listed in the forms controls array? I'm trying to
enumerate through *every* control on any form, and unfortunately unlesss I treat the menu as a separate entity and then enumerate it after It wont work.
Does anyone know how I can enumerate *every* control on any form in VB.NET? Cheers in advance.
a.. Controls. The System.Windows. Forms namespace provides a variety of
control classes that allow you to create rich user interfaces. Some controls
are designed for data entry within the application, such as TextBox and
ComboBox controls. Other controls display application data, such as Label
and ListView. The namespace also provides controls for invoking commands
within the application, such as Button and ToolBar. In addition, the
PropertyGrid control can be used to create your own Windows Forms designer
that displays the designer-visible properties of the controls.
a..
Components. In addition to controls, the System.Windows. Forms namespace
provides other classes that do not derive from the Control class but still
provide visual features to a Windows-based application. Some classes, such
as ToolTip and ErrorProvider, extend the capabilities or provide information
to the user. Other classes, such as Menu, MenuItem, and ContextMenu, provide
the ability display menus to the user to invoke commands within an
application. The Help and HelpProvider classes enable you to display help
information to the user of your ap
Hope this useful,
Roger
Hi Roger,
Cheers, that information was very helpful! Cheers.
Nick.
"Roger" <ro***@pcsreven uecontrol.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. I'm running into slight confusion over a .NET menu "control", how
comes it doesn't get listed in the forms controls array? I'm trying to enumerate through *every* control on any form, and unfortunately unlesss I treat the menu as a separate entity and then enumerate it after It wont work.
Does anyone know how I can enumerate *every* control on any form in VB.NET? Cheers in advance.
a.. Controls. The System.Windows. Forms namespace provides a variety of control classes that allow you to create rich user interfaces. Some controls are designed for data entry within the application, such as TextBox and ComboBox controls. Other controls display application data, such as Label and ListView. The namespace also provides controls for invoking commands within the application, such as Button and ToolBar. In addition, the PropertyGrid control can be used to create your own Windows Forms designer that displays the designer-visible properties of the controls. a..
Components. In addition to controls, the System.Windows. Forms namespace provides other classes that do not derive from the Control class but still provide visual features to a Windows-based application. Some classes, such as ToolTip and ErrorProvider, extend the capabilities or provide information to the user. Other classes, such as Menu, MenuItem, and ContextMenu, provide the ability display menus to the user to invoke commands within an application. The Help and HelpProvider classes enable you to display help information to the user of your ap
Hope this useful, Roger
Hi Jorge, Its a component not a control and you can use reflexion to browse controls/components.
Aaah, cool, this is helpful, I've ended up using another solution
temporarily but this is very helpful thanks!
Nick.
Hi Herfried, 'MainMenu' is, like timers, for example, a component. See (complete thread):
<URL:http://groups.google.d e/groups?threadm= MfEsc.331786%24 rM4.13835730%40 news4.tin.it>
Cheers I'll check that out thanks!
Nick. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: zapazap |
last post by:
Dear Snake Charming Gurus,
(Was: http://mail.python.org/pipermail/python-list/2004-January/204454.html)
First, a thank you to Tim Golden, Thomas Heller, and Mark Hammond
for your earlier help with this problem. I am uncertain about what
etiquette calls for, but more on that later.
My Objective:
I am trying to control the _VMWare Desktop_ application
|
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 when viewing it in the source code, however, because it
doesn't show the complete path to the file. (I'm talking about Internet
Explorer click View, click source code.)
|
by: Chuck Hartman |
last post by:
I have a Windows service that requests web pages from a site using an
HttpWebRequest object. When I try to request a page from an ASP.NET 2 site,
I get a WebException with message "The remote server returned an error:
(500) Internal Server Error." I found a post that suggested to catch the
WebException to retrieve the actual HttpWebResponse object for more
information. The response returned is shown below.
At first I thought this was a...
|
by: dpomt |
last post by:
When the ASP.NET menu is rendered on downlevel browers, the text "^ up one
level" is displayed.
Any ideas how I can change that text? I did not find a property for the menu
control where I can change it.
Dieter
|
by: GS |
last post by:
the main menu in the application seemed to disappeared all together until I
click on an control and select mainmenu1 in designer. then the mainmenu1
displays where it should be but running it or deselecting the mainmenu1, the
menu disappears again.
what can I do. to fix the problem
| |
by: John |
last post by:
Hi there,
I was reading an article
(http://avenuea-razorfish.com/articles/TheAll-MenuNavigation_Turbek.pdf) on
'all-menu navigation' and I'd like to try and implement this in my site.
Can anyone recommend how to get started?
Is there an Ajax control available for this or would more a basic javascript
work just as well. I'm assuming I just need a div element that is shown on
a mouse over, but I'm not sure how to go about aligning all...
|
by: Brad Isaacs |
last post by:
Good morning friends,
I am working with ASP.NET 2.0 -- VB code behind
I have created tabbed pages using the Menu control with the Multiview
control. Using the menu control to display the tabs, and the Multiview
control to display the content that corresponds to the selected tab.
My Menu control needs to be able to switch language from English or French
depending on the language chosen by the user.
|
by: MCM |
last post by:
I'm working on a plotting control. The plotting control will have a context
menu with basic commands for "scaling", "zooming", etc. Is there a way
that, from the parent form, I can add more commands to the control's context
menu?
I'm envisioning a case where the control has a set of context menu items,
and the parent form also has a set of context menu items.
Thanks.
|
by: AG |
last post by:
I realize that the obvious suggestion would be malware, but my definitions
are up to date and I have already scanned for it.
I have also tried disabling all IE add-ons.
I just rebuilt and deployed my website (WAP) in ASP.NET 2.0. Everything is
working fine except from my development machine with IE6.
The master page contains a Menu control bound to a SiteMapDataSource. There
is also a row of links (plain links, no menu control) at the...
|
by: SAL |
last post by:
Hello,
is there a way to menu control dynamically center itself horizontally on a
page?
I have placed a menu control in a panel control (no ajax) and would like it
to center itself. Depending on whose logged in, the menu, or course,
displays different items, sometimes just two items, other times many more.
If all menu items are displaying, centering is not a problem but when only
two items are displayed, the menu appears on the left hand...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |