473,796 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

invisible toolbar

With my command DoCmd.ShowToolb ar "Toolbar1", acToolbarYes i make my
toolbar Toolbar1 visible.I want at the same time make all
other
toolbars on the screen invisible,regar dless how they are
called.Sometime s i have
different toolbars shown and i am interested in a command
that does
not refer toa specific toolbar, but makes all the toolbats
on the
screeninvisible .Is it possible ?

May 28 '06 #1
2 1756
ADezii
8,834 Recognized Expert Expert
With my command DoCmd.ShowToolb ar "Toolbar1", acToolbarYes i make my
toolbar Toolbar1 visible.I want at the same time make all
other
toolbars on the screen invisible,regar dless how they are
called.Sometime s i have
different toolbars shown and i am interested in a command
that does
not refer toa specific toolbar, but makes all the toolbats
on the
screeninvisible .Is it possible ?
This should do the trick:
On Error Resume Next

Dim MyCommandBar As CommandBar

For Each MyCommandBar In Application.Com mandBars
If MyCommandBar.Na me <> "Toolbar1" Then
MyCommandBar.Vi sible = False
End If
Next MyCommandBar
May 28 '06 #2

"solar" <sp*******@gmai l.com> schreef in bericht news:11******** **************@ u72g2000cwu.goo glegroups.com.. .
With my command DoCmd.ShowToolb ar "Toolbar1", acToolbarYes i make my
toolbar Toolbar1 visible.I want at the same time make all
other
toolbars on the screen invisible,regar dless how they are
called.Sometime s i have
different toolbars shown and i am interested in a command
that does
not refer toa specific toolbar, but makes all the toolbats
on the
screeninvisible .Is it possible ?


I could not find a solution but maybe the command
DoCmd.RunComman d acCmdShowOnlyWe bToolbar
will help you.
This command seems to make all toolbars invisible except the Toolbar "web" (if visible)

So I would try:
DoCmd.RunComman d acCmdShowOnlyWe bToolbar
DoCmd.ShowToolb ar "Web", acToolbarNo
DoCmd.ShowToolb ar "Toolbar1", acToolbarYes

Arno R
May 28 '06 #3

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

Similar topics

15
4872
by: Greg Schmidt | last post by:
We all know that one trick in dealing with old browsers is to add extra bits of content with class="old", where old is defined as display:none in a style sheet that is @imported so that old browsers never see it and hence don't "none" the display of the content. I use this, for example, to put a heading on my navigation menu in NN4 et al, because they can't handle the CSS-P that I use to move the menu to a place where it's obvious and...
102
7403
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
6
3132
by: Juan Pedro Gonzalez | last post by:
I wanted to add a Combobox to a toolbar... Kind of the look you get on VisualStudio's toolbar. I've been able to find some VB 6 samples, but the placeholder option is no longer available for ToolbarButtons... Does anyone know how this could be done? Looking forward to hear from you,
1
3482
by: Alfredo Barrientos | last post by:
Hi, I have a little trouble trying to assign a Toolbar control to another toolbar variable control. I am getting my forms controls with this: for (int j = 0; j <= frmChild.Controls.Count - 1; j++) { // Some operations
2
1582
by: graeme34 via AccessMonster.com | last post by:
Hi I was wondering if there was any way of making the windows for the currently opened objects in access invisible on the bottom toolbar. Iam using Access 2003 also is it possible to turn of the right click facility on the mouse to prevent the user from getting into the 'background' of Access?? Thank you. -- Message posted via http://www.accessmonster.com
3
2901
by: rockdale | last post by:
Hi, All: I have a datagrid with TemplateColumn as following: <asp:TemplateColumn Visible="False" > <ItemStyle Width="0px"></ItemStyle> <ItemTemplate> <asp:Label id="lblMin_Value" Visible=False runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.min_value") %>'> </asp:Label>
4
3661
by: Gerhard | last post by:
I have an MS Access app with multiple forms. One of the forms has a Toolbar (MsComctlLib.Toolbar) and it works as advertised. I handle the buttons in the Toolbar1_ButtonClick event. I would like to be able to control the toolbar from another form. Forms!frmClipping!Toolbar1.Buttons(2).Clicked = True does not work. Does anybody have any ideas how to do this? Gerhard
3
5264
by: Undergrid | last post by:
Hi All, I've got a few toolbars in my application hosted in a ToolStripContainer. I have found a problem whereby the location of a toolbar is not restored when doing a LoadSettings if the toolbar is in the same ToolStripPanel as specified in the settings. For example, create a toolbar in ToolStripContainer.TopToolStripPanel and save settings. Drag to tool bar somewhere else within ToolStripContainer.TopToolStripPanel and then load...
9
4793
by: Mel | last post by:
I have 10 columns total. 3 of them are invisible. The rest are read- only BoundFields, 3 of which are editable fields using TemplateFields. Upon editing, I want to validate what the user enters against one of those invisible columns. How do I accomplish this? The code below that I attempted just returns an empty string when I try to retrieve the invisible column data: gvParts.Rows(e.RowIndex).Cells(8).Text
0
10456
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...
0
10230
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
10174
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
9052
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
7548
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
6788
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();...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4118
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
3
2926
bsmnconsultancy
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...

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.