473,406 Members | 2,954 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,406 software developers and data experts.

Documented property does not show up in AutoComplete List or Object Browser

Hello,

The class "Control" contains a documented Property "ControlType".

So for example, in a form, you can write code like this:

Dim c as control
set c = me.Controls("textbox1")
if c.ControlType = acTextBox then
...

This works fine. However, the ControlType property does neither show
up in the Autocomplete list, nor in the Object Browser.

Does anyone know why this is the case ?

My issue behind this is, that a class might contain a lot more of
members than as listed in the AutoComplete List or in the Object
Browser. So my 2nd question is how to get a complete list of members
for any class.

Thanks in advance

Georg Scholz
www.scholz-informatik.at
Nov 13 '05 #1
1 2765
Using the Object Browser, ControlType is a property of a BoundObjectFrame, a
CheckBox, a ComboBox, etc, i.e. it is a property of the individual control
types and not a property of the Control class in general.

Your example works, therefore, because c is a TextBox and the TextBox has
the property. However, it does not show in the list of the properties of the
Control, because it is not a property of the control, but of the text box.

Well, that's how it is supposed to work anyway. There are still cases where
Access does not show the property of an object. For example, if you place a
PageBreak control on a report, and then refer to it in code, Access does not
show that it has a Visible property, even though it does according to the
Object Browser.

The Object Brower is still best resource available, especially if you
right-click it and click Show Hidden Members.

There are some other quirks as well. For example, if the RecordSource of
your form includes a field that is not represented by a control on your
form, naturally enough the field is not listed if you enumerate the Controls
collection of the form. However, it still works if you use:
Forms.Controls("MyField")
even though the field is not a control, and Controls.Count does not include
it. It's an object of type AccessField, and lives in that netherworld where
it works on forms (most of the time), but not on reports (some of the time).

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Georg Scholz" <ge**********@vienna.at> wrote in message
news:cd**************************@posting.google.c om...
Hello,

The class "Control" contains a documented Property "ControlType".

So for example, in a form, you can write code like this:

Dim c as control
set c = me.Controls("textbox1")
if c.ControlType = acTextBox then
...

This works fine. However, the ControlType property does neither show
up in the Autocomplete list, nor in the Object Browser.

Does anyone know why this is the case ?

My issue behind this is, that a class might contain a lot more of
members than as listed in the AutoComplete List or in the Object
Browser. So my 2nd question is how to get a complete list of members
for any class.

Thanks in advance

Georg Scholz
www.scholz-informatik.at

Nov 13 '05 #2

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

Similar topics

40
by: Alex | last post by:
Hello, does anybody know how to turn off the autocomplete feature for a certain text field? I am aware of the "autocomplete" attribute, but I have seen other implementions achieving it...
2
by: Jim Heavey | last post by:
I want to write a routine which will list all of the propetries and all property names for a particular object, say a DataColumn. I there a way for me to do this without manually looking up each...
3
by: Saurabh | last post by:
Hi Gurus, We are in the process of writing a code in C# and have to use a dll written in VB through interop and have come across an issue; In one of our other development projects in Visual...
6
by: Altman | last post by:
I would like to use an indexed property to access my private array of user controls. If I don't use an indexed property, the property will show up in my Properties Window during development. Is...
10
by: dgk | last post by:
I'm searching for a way to determine if control values have changed. For some it's easy, such as TextBox.Modified. But looking at the radiobutton I come across IsMirrored. Curious, I look to the...
1
by: thubba2000 | last post by:
We have a web application developed using IBuySpy. In older versions, Autocomplete on all web forms works. In our latest version, it stopped working on all clients. I have gone through all the...
1
by: rrmunn | last post by:
I have had a frames based website running for a quite a while in which every page has the following call: <body onload="top.SetPageTitle()"> ... </body> This is used to force the browser...
5
by: Pat | last post by:
Hi ASP Gurus, Please help me. Autocomplete works fine when the control does not have the focus when the page load. But when I put the focus on page load, then autocomplete does not work. I even...
1
by: sva0008 | last post by:
i have a auto suggest script that does not work in firefox , works great on IE. /******************************************************* AutoSuggest - a javascript automatic text input...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.