473,883 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Hello,

The class "Control" contains a documented Property "ControlTyp e".

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

Dim c as control
set c = me.Controls("te xtbox1")
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 2801
Using the Object Browser, ControlType is a property of a BoundObjectFram e, 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**********@v ienna.at> wrote in message
news:cd******** *************** ***@posting.goo gle.com...
Hello,

The class "Control" contains a documented Property "ControlTyp e".

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

Dim c as control
set c = me.Controls("te xtbox1")
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
10930
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 without any such attribute and am wondering whether there is another way to do it .... like via CSS or a naming convention or .......
2
5245
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 property name and the property value? Thanks in advance for your assistance!!!!!!!!!!!
3
1572
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 Basic 6.0, we are using the dll very successfully to get a list of all properties of a class exposed by the dll; say by using the code snippet OleObject.Contacts.Fields.
6
1879
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 there a way to get this to show up in the properties window?
10
4181
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 help. Not very helpful. So I look to the newsgroup. Not mentioned. So now I ask. What does the IsMirrored property tell me?
1
1769
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 groups and tried a bunch of things. Two main areas I keep seeing are, 1. Browser Settings not set correctly. 2. Ability to turn off Autocomplete for a control and a form.
1
1439
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 title to be set to the page title for a page loaded into a frame. The index.html page is setup as follows:
5
3377
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 tried javascript pageload code, but with no success. <script language ="javascript" type ="text/javascript" > function focusIt() { //alert('test'); var mytext =
1
3669
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 completion component Copyright (C) 2005 Joe Kepley, The Sling & Rock Design Group, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software...
0
9944
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, 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...
0
10752
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 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...
1
10858
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,...
0
10420
tracyyun
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...
0
9582
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, 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...
1
7974
isladogs
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...
0
5804
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...
0
5996
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4619
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 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.