473,406 Members | 2,345 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.

toolbar position

hello there,

I am having a really diffuclt time positioning the toolbars where I
want them in Access 2000. I have a main toolbar open and docked at the
top, and I want to open an additional toolbar in line and to the right
of the main one as part of an on_click event.

the problem is that the second toolbar drops to the line below instead
of appearing in line with it (for some users). therefore i need a way
to programmatically ensure they open in a single line.

the main bar .top = 23 and using the sub below i attempt to set the
additional toolbar .top = 23 as well. the problem is that it continues
to = 49!

i can manually drag it up to the top line and Access will 'remember'
the position the next time I open, but I distribute this as an .mde
and users have to manually drag it up every time they open.

I am at my wit's end and desperately need to get this working
properly. Can anyone help???

thank you!!
suzanne

***************
Sub SetToolbar(str As String)

Dim cmdBar As Office.CommandBar
Set cmdBar = Application.CommandBars(str)
With cmdBar
.Visible = True
.Top = 23
.Position = 1
.Protection = 0

Debug.Print ".top=" & .Top
Debug.Print ".position=" & .Position
Debug.Print ".protection=" & .Protection
Debug.Print ".height=" & .height

End With

End Sub

****output****
..top=49
..position=1
..protection=0
..height = 26
**************
Nov 13 '05 #1
0 1344

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

Similar topics

2
by: Jeff Thies | last post by:
On Mac IE5.1 there's a vertical toolbar on the left of the browsing window. This seems to throw off calculations of position and width. How do you detect the presence of the toolbar and/or...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
0
by: Herve Bocuse | last post by:
Hi, I have a a custom control derived from System.Windows.Forms.Control. Inside I have some sub controls (let's say an editbox) that I can place manually correctly. But When I try to add a...
1
by: JC Voon | last post by:
Hi: My base form has a menu bar and tool bar, the menu bar have File | Open, Close, Exit Menu Item and the tool bar has a exit button. Problem 1: I inherite a child form from this base...
3
by: Flashster | last post by:
How do I create a moveable toolbar that can be docked on a windows form?. I'm using vb .net (2002). I have added the toolbar item to the windows form, but I cannot see a way of making it...
1
by: mookid8000 | last post by:
Hello again, group! Can someone tell me a nice way to include a zoom percentage combobox in a toolbar? My first try was a workaround, where I inserted a bunch of separators where I wanted the...
1
by: Austen | last post by:
hello, i having an ole application open power point and word for editing. having problem of when i activate the document. office toolbar prompt out and overlap with my control and button. how do i...
1
by: bkasmai | last post by:
An access 2000 database is used by a number of users on a windows xp professional machine. Users logon to the machine using their own individual windows login name and password. The database is...
3
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
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...
0
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...

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.