Hi,
I want to get the controls of the windows form. I know that
form.Controls give me the list of controls but i have a problem. For
example, the toolstripmenu control cannot be reached with that way. My goal
is to list the items of the toolstripmenuit em on the form. I have only the
typename of the windows form so i am invoking the form with its typename,
and i can reach the controls like buttons,labels etc. But i cannot get the
toolstripmenu, because it is not added as a control onto the form. So, is
there a way to get the list of such controls? I think it must be. Because
code intellisense gives me the all controls,member s of the form when i hover
the mouse on the form name.
Thanks...
Adam. 1 1395
Check the Items property of the ToolStrip.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Show me your certification without works,
and I'll show my certification
*by* my works.
"Adam Right" <ad**@right.com > wrote in message
news:Oc******** ******@TK2MSFTN GP09.phx.gbl... Hi,
I want to get the controls of the windows form. I know that form.Controls give me the list of controls but i have a problem. For example, the toolstripmenu control cannot be reached with that way. My goal is to list the items of the toolstripmenuit em on the form. I have only the typename of the windows form so i am invoking the form with its typename, and i can reach the controls like buttons,labels etc. But i cannot get the toolstripmenu, because it is not added as a control onto the form. So, is there a way to get the list of such controls? I think it must be. Because code intellisense gives me the all controls,member s of the form when i hover the mouse on the form name.
Thanks...
Adam.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andrew Crook |
last post by:
have multiple domains on winodws 2003 (IIS)
what best way to setup mysql
i would like a limit on each domain on the number of databases if possible
(see other post), if not i gues i will have to create them
i also wish each domain the have phpmyadmin access.
any ideas.. one the best way
AndiC
|
by: pepino13 |
last post by:
Hello,
I have a a form called frmMissyFact, I have copied this form and
called it frmMissyFactBackup which reads data from a backup database
of the week before. I brought frmMissyFactBackup into frmMissyFact as
a subform. What I am trying to do is compare each control value from
frmMissyFact to that of frmMissyFactBackup and if the controlvalue is
different change the backcolor to Yellow of the control so the user
looking at it knows...
|
by: Kevin Myers |
last post by:
Hello,
Please forgive my reposting of this note with hopefully a more relevant
subject line.
On an Access 2000 form under Windows 2000 I would like to use a Kodak Image
Edit Control to display the contents of a TIFF image file. According to the
very limited documentation that I have been able to locate so far, all I
should need to do is to drop the Image Edit Control onto the form in design
mode, set the control's Image property to...
|
by: P |
last post by:
Hi,
I have a form with several controls. One of them is initialized through VB
in frm_current. I am using the frm_beforeupdate event to prompt users for
saving changes. How can I make it so that the initialization of the control
does not dirty the form? I don't want to prompt the users for saving changes
unless he changed one of the remaing controls on the form. BTW, the control
I initialize is a foreign key and changes over time. Thank...
|
by: EJO |
last post by:
TIA!
I have an A2k mdb which contains a sample record so that my users can
have an online example of input for a any given field. I don't want
them to be able to edit the record, but also do not want to prevent
them from doing a lookup for the live data, so using the allowedits
property doesn't seem to be an option. Is there a way to lock all the
controls without listing the over 60 controls individually, then unlock
the lookup? I...
| |
by: Genojoe |
last post by:
I am using code from Help with two exceptions. (1) I increased the number of sample rows from 3 to 20, and (2) I anchored the datagrid to bottom of form so that I can change the size of the grid by changing the size of the form
The code is at the following location in the January, 2004 help
ms-help://MS.VSCC.2003/MS.MSDNQTR.2004JAN.1033/cpref/html/frlrfSystemWindowsFormsDataGridClassTopic.ht
You can also find it by doing a search for...
|
by: david_cabaniuk |
last post by:
Hello,
I have developed a c# windows application that when installed on
English versions of Windows XP has run and displayed its forms
correctly. However when the same application was installed on a Chinese
version of Windows XP some of the forms controls were not displayed
correctly, ie, ComboBoxes are shown in a completely different location
to where I placed them in Microsoft Visual Studios designer view. Or
the actual form size is...
|
by: Victor |
last post by:
Hi everybody!
I am experiencing a strange - at least for me - phenomen.
I have a func containing the following code :
alert (document.forms.elements.value);
// document.forms.submit();
document.photoUpload.submit();
|
by: lukasmazur |
last post by:
Hi
I have a problem with using listBox1. I have a two forms form1 and
form2. In form1 are controls listBox1, textBox1 and button witch
creating object of class Form2. In class Form2 I create a pointer to
object of class Form1. I don't known how to use method add(), where
can I find it. From Form1 I can add value like this this->listBox1-
I cant find it. I have textBox1 on Form1 and I can change text in this
control like this ...
|
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: 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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |