473,804 Members | 2,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I don't know how to make the toolbars not show up in A97

MLH
Is there a simple way to hide built-in toolbars in A97?
Nov 13 '05 #1
4 1663
MLH
I'm afraid I understated the question.

I'm aware of clicking View, Toolbars, Customize and of
selecting/deselection the checkboxes in the resulting
dialog box. That's not what I'm talking about. I want to
do it from code.

In the development environment, I want these toolbars.
I do not want them to show up, however, in an app
that I roll out in the runtime environment. Not wanting
to click these options before preparing the mde and
rolling out a runtime app, I would just like to know the
equivalent code that accomplishes the same as say,
clicking View, Toolbars, Customize and deselecting
the "Database Toolbar".
Nov 13 '05 #2
MLH
Even though the following snippet comes right out-a-the
A97 Help, I find that the Database Toolbar still shows up
for me in my runtime environment. That seems contradictory
to the following HELP blurb...

The run-time environment disables all built-in Microsoft Access
toolbars. However, even though the run-time environment doesn't
support built-in toolbars, you can add your own custom toolbars to
your application.
When you create a custom toolbar, it is stored in the current
database. It will automatically be available to your application.
By default, the Microsoft Access run-time environment turns all
toolbars off. The run-time environment will not automatically show and
hide your custom toolbars as the context changes. It's up to your
application to show and hide your custom toolbars using the
ShowToolbar method in the Activate and Deactivate event procedures of
your forms and reports. You can also customize a form or report by
using the Toolbar, MenuBar, and ShortcutMenuBar properties.

For examples of using the ShowToolbar method and the Toolbar and
MenuBar properties, see the Developer Solutions sample application.
Nov 13 '05 #3
MLH wrote:
Even though the following snippet comes right out-a-the
A97 Help, I find that the Database Toolbar still shows up
for me in my runtime environment. That seems contradictory
to the following HELP blurb...

The run-time environment disables all built-in Microsoft Access
toolbars. However, even though the run-time environment doesn't
support built-in toolbars, you can add your own custom toolbars to
your application.
When you create a custom toolbar, it is stored in the current
database. It will automatically be available to your application.
By default, the Microsoft Access run-time environment turns all
toolbars off. The run-time environment will not automatically show and
hide your custom toolbars as the context changes. It's up to your
application to show and hide your custom toolbars using the
ShowToolbar method in the Activate and Deactivate event procedures of
your forms and reports. You can also customize a form or report by
using the Toolbar, MenuBar, and ShortcutMenuBar properties.

For examples of using the ShowToolbar method and the Toolbar and
MenuBar properties, see the Developer Solutions sample application.


When you say "Runtime Environment", what are you thinking of? Whne the
help file says it, they're talking about the msaccess runtime version
that's distributed with the "office developer whatsit"[1].

You can hide toolbars using DoCmd.ShowToolb ar.

[1] whatever they called it in that version.

--
[OO=00=OO]
Nov 13 '05 #4
MLH
Yes, Trevor, that's it. The runtime environment one is in when
running an app rolled out with the ODE tools in developer edition.

xxxxxxxxxxxxxxx xxxxxxxxxxxxxx

When you say "Runtime Environment", what are you thinking of? Whne the
help file says it, they're talking about the msaccess runtime version
that's distributed with the "office developer whatsit"[1].

You can hide toolbars using DoCmd.ShowToolb ar.

[1] whatever they called it in that version.


Nov 13 '05 #5

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

Similar topics

2
357
by: John Galt | last post by:
I noticed that the Visual Studio.NET statusbar on one of my development machines has disappeared. I.e., the IDE statusbar, not the form control. Does anyone know how to restore it? (It doesn't appear to be in View/Toolbars.)
2
2269
by: Sandra | last post by:
Hello, I want to develop an application for WindowsCE using eMbedded Visual C++ 4.0. Is it possible to add/delete or hide/show toolbars by running the application. e.g. the user choose a menuitem and then a second toolbar should be opened. Can anybody help me??? Many greetings Sandra
1
2653
by: Mario Crevits | last post by:
My name is Mario Crevits, I'm from Belgium (Roeselare) and I'm working with Access97 for several years now. We are in an Access97-2000 migration project. I'm writing a wizard for the end-users to automatically find and convert their Access97 databases on a specific drive. I want to convert the databases through VBA : 1. create an empty Access2000 2. set the right properties and references 3. import the objects (tables, queries,...
1
11325
by: cefrancke | last post by:
I have set the Startup properties to the following... All menus, toolbars, etc are turned off plus these are unchecked Allow Full Menus Allow Built-in Toolbars Allow Default Shortcut Menus Allow Toolbar/Menu Changes Use Access Special Keys
3
11530
by: cefrancke | last post by:
The only reason I ask is that no one has made this subject clear or given a definitive answer. What I would like to do is, after turning off all the menus/tbars/etc using the startup options. Upon restarting Access, when an admin is detected (I use a GetSystemUser() function) I want to restore everything so that Access behaves like normal, ie. all menus/tbars/etc show up (only where they are supposed to show up).
0
1328
by: jkricka | last post by:
Hi! Can someone please explain me how to show/hide word toolbars? I'm oppening new word doc with follownig code. public class classWordDoc { private Word.ApplicationClass WordApp = new Word.ApplicationClass(); Word.Document bDoc = new Word.Document();
19
3884
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it still doesn't work. Did anyone run into this problem. What's the solution? Please help. Thank you
1
1478
by: Free BSD | last post by:
Hi, Is there a possibility that i can control the toolbars from my javascript code snippet ??? like ... make a window with my custom toolbars or like window.open .. with now toolbars
3
2211
by: Uriah Piddle | last post by:
Hi Gang, With your help, I can show a thumbnail image in a new browser window. But I would like to open the browser without all of the toolbars and sized smaller -- something like what you get when you click on a product image at the Amazon site. Here is the code line I am using now: <a href="ShowImage.aspx?Image=Explorer" target="_blank" />
0
9711
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
9591
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10594
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10331
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
10087
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
9166
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
7631
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
5667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.