472,800 Members | 1,276 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Components dialog in the VBE

isladogs
437 Expert Mod 256MB
This is a curiosity I discovered by accident several years ago. I've raised it at several other forums since that time but never had any response to the question. Perhaps this time will be different

If you open the VBE and press Ctrl+T, a Components dialog appears with two tabs: Controls & Designers.





From the appearance of the dialog this has been around a long time. In fact, exactly the same dialog can be found going back to A2000 if not earlier. It also appears if you open the VBE of any other Office program such as Word & Excel.

However, what is its purpose (if any)?
The Controls part shows a list similar to the Access reference list but not identical to it.
The Designers list just contains two items.
I cannot get anything to happen when I click on any item in the dialog

EDIT: Added screenshots that I couldn't do when posting thread
Attached Images
File Type: png Capture1.PNG (19.2 KB, 257 views)
File Type: png Capture2.PNG (10.0 KB, 229 views)
Mar 5 '21 #1

✓ answered by NeoPa

It appears that the Components dialog is for managing items available on MS UserForms. Something seen in other applications that use VBA more than in Access so much because Access has its own (better?) forms as standard.

It's still there because the VBA IDE is essentially Application Agnostic. It's possible to use them in Access - just not much point ;-)

10 2319
NeoPa
32,534 Expert Mod 16PB
I've never seen that myself either.

It looks like a way of configuring what's available from the ToolBox when designing forms but I'll give it some further thought & post back if I discover anything.
Mar 5 '21 #2
isladogs
437 Expert Mod 256MB
Thanks for replying. I asked the same question in the past at UA, SO & AWF. Between those 3 forums I got one reply! Nobody so far has any idea.

For info, I discovered it about 3 years ago when I first installed Office 365 on a Windows tablet. At that time, the VBE toolbar did not appear when in tablet mode. I tried various things none of which helped before clicking Ctrl+T (for tablet) as a random guess...with that unexpected result

To get the VBE toolbar to appear, it was necessary to switch off tablet mode

The good news is that I reported the issue with the VBE toolbar to MS and it was fixed a few months later.
Mar 5 '21 #3
NeoPa
32,534 Expert Mod 16PB
Would you consider Components dialog box to be an adequate response?
Mar 5 '21 #4
isladogs
437 Expert Mod 256MB
Hi Ade
Thanks
I hadn't seen that article before but what it outlines is exactly what I had tried to implement.
I think its a legacy from MDB days and is/was intended to be used with the MS Forms 2.0 library.

However, I was unable to alter the 'toolbox' by ticking any of the control checkboxes. The ribbon controls are definitely not affected.
Ticking MS Forms on the Designers tab also has no effect that I can see.

Perhaps I need to try it again with an old version like A2K
Mar 6 '21 #5
NeoPa
32,534 Expert Mod 16PB
That doesn't sound good. I certainly saw it was still there in my copy of Access 2019. I may need to put a question in to the team. I'll let you know what I find out - or someone else may post is always a possibility.
Mar 6 '21 #6
isladogs
437 Expert Mod 256MB
Thanks
The article was written in 2018 so it should still be active ... perhaps I'm just not doing it correctly.
As I said this is more a curiosity than something essential...but its odd that none of us seem to know what its actual purpose is.
Mar 6 '21 #7
NeoPa
32,534 Expert Mod 16PB
It appears that the Components dialog is for managing items available on MS UserForms. Something seen in other applications that use VBA more than in Access so much because Access has its own (better?) forms as standard.

It's still there because the VBA IDE is essentially Application Agnostic. It's possible to use them in Access - just not much point ;-)
Mar 7 '21 #8
isladogs
437 Expert Mod 256MB
Thanks Ade.
I think that confirms what I was suggesting in post #5.
Mar 7 '21 #9
ADezii
8,834 Expert 8TB
I'm not sure if this is relevant or not, but I use the Components Dialog Box extensively in Visual Basic. The Items listed in this Dialog Box include all Registered ActiveX Controls, Insertable Objects, and ActiveX Designers. You can select one or more Options within the Controls, Designers, or Insertable Objects Tabs, then click OK. After closing the Components Dialog Box, all of the ActiveX Controls that were selected will now appear in the Toolbox, where they can then placed on a Form. Clearing the Check Box next to a Component will remove it from the Toolbox unless an Instance of it is being used on any Form in the Project. Obviously, the same functionality does not exist in Access, maybe it is simply a throwback to Visual Basic. To the best of my knowledge, selecting a Control(s) from the Controls Tab, then OK within the Excel VBA Environment, will NOT list that Control in the Toolbox.
Mar 7 '21 #10
isladogs
437 Expert Mod 256MB
Hi @adezii$
That behaviour was what I was expecting with regard to the user form toolbox in e.g. Excel but, like you, I've had no luck with it in any Office program so far. Yet the article that Ade found suggests it should work with Office VBA
I haven't used VB for at least a decade. However, from your description, the VB version of the Components toolbox has additional functionality compared to that in the VBE
Mar 7 '21 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Basil Fawlty | last post by:
I need help and suggestions on how to modify the below program to get two numbers from user input using a input dialog box. B/c I'm a total newbie with next to no programming experience, I'm not...
1
by: flupke | last post by:
I'm using wxPython and design the gui via wxglade. One of the gui components is a simple dialog class that gets displayed when a user exits the program. I want to use the same dialog but with a...
4
by: dave | last post by:
I have an app that uses the OpenFile Dialog class. When I invoke the ShowDialog method, the hourglass appears and just stays. The dialog window never opens. I created a test form with an...
4
by: Alexander | last post by:
Hi, I have written a program that takes on some operations much more time than I expected. As I have seen users clicking wildly on the screen to make something happen, I want to follow the...
0
by: Andrew | last post by:
I get a Null Reference Exception if I close a modeless form (that is, a form displayed using Show()) when a selection is made from a ComboxBox. If the form is modal (displayed using ShowDialog())...
3
by: Andrew | last post by:
I get a Null Reference Exception if I close a non-modal dialog (that is, a form opened with Show()) when a selection is made from a ComboBox. The error message refers to Unsafe Native Methods, but...
1
by: Oren | last post by:
hi all, i do have an aspx page with "Microsoft common dialog" that i added to my components. when i'm adding new component i get: <OBJECT name="dialog" style="Z-INDEX: 108; LEFT: 83px;...
6
by: pradeep_TP | last post by:
I am facing a strange problem with my web site. Afer reinstalling the web application on the web server, I am getting a dialog box for each page. The dialog box has the following information. ...
7
by: Peter van der Veen | last post by:
Hi I've a component (from the vb.net resource kit; the flexgroup component) But how can i add that to my form?? I don't see it in the components tab. In the example the component is on the...
3
by: Ian | last post by:
I am working with Distributed Components with VB.NET for the first time (pretty much), and am having the following problem. My components have been added and are visible in component services...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?

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.