How to Display NO Title Bar

A

AG

Is it possible to remove both the Access and a form's title bar, when both
are maximized?

If so, can anyone point me to an example or explanation?

Thanks,
 
A

Arvin Meyer [MVP]

If you turn off all the items around the titlebar (no caption, min,max,
close, and the Control Box) you can set the border to None. Make sure that
you have a button to close the form.
 
A

AG

Thanks Arvin, but I also want to remove the Access application title bar, so
that there is nothing at the top of the screen.
 
C

Charles Wang [MSFT]

Hi AG,
I recommend that you first execute "DoCmd.Maxmize" in your Form OnLoad
event and then try setting your Access Form's properties "Pop Up" and
"Modal" to Yes.

Hope this helps. Please feel free to let us know if you have any other
questions or concerns.

Best regards,
Charles Wang
Microsoft Online Community Support
===========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: (e-mail address removed).
===========================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for
non-urgent issues where an initial response from the community
or a Microsoft Support Engineer within 1 business day is acceptable.
Please note that each follow up response may take approximately
2 business days as the support professional working with you may
need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by
contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
============================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
 
A

Arvin Meyer [MVP]

You can, as Charles suggests, set the popup property to yes and your
maximized form will cover the Access screen. Setting the modal property to
yes will then require setting all the rest of your forms to modal, and they
will need to be closed, or at least the clutter dealt with, as you are done
with their current action.

You cannot hide Access's title bar (at least easily) but you can disguise it
very easily in versions 2003 and earlier. Simply supply a new icon and app
title in the database's Startup properties. You can change the background
and even supply an image for the background with:

http://www.lebans.com/changemdibackground.htm

You can also hide the entire Access interface, by minimizing it:

http://www.mvps.org/access/api/api0019.htm
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
 
A

AG

Thanks Arvin,

The second link looks promising.
The idea is to completely fill the screen. The app is for display purposes
and consists of only two forms. The main display form that constantly polls
a back end to display current data and a modal pop-up form for configuration
settings (and exit button) only.
 
C

Charles Wang [MSFT]

No, you could not hide Access titile bar. There is no way in Access to do
it. The method that I showed to you can have your Access form window
displayed with full screen.

Best regards,
Charles Wang
Microsoft Online Community Support
=========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: (e-mail address removed).
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
 
C

Charles Wang [MSFT]

Hi AG,
I did not expect that you want to use Win32 API since for Win32 API
questions it is recommended to post them at our windows SDK communities for
the best support.

Anyway if you decided to use Win32 API, indeed you can have the window
display with NO title bar.

I write the following sample for your reference:
1. Create a module and input the following Win32 APIs
Public Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As
Long) As Long

Public Declare Function apiMoveWindow Lib "user32" Alias "MoveWindow"
(ByVal hWnd As Long, ByVal X As Long, ByVal Y As Long, _
ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As
Long


2. In your form_load event, input the following code
===================================
Dim nHeight, nSX, nSY As Long

Dim nRet As Long
Dim hWnd As Long

hWnd = Forms("Form1").hWnd

nHeight = Module4.GetSystemMetrics(31)
nSX = Module4.GetSystemMetrics(0)
nSY = Module4.GetSystemMetrics(1)

nRet = Module4.apiMoveWindow(hWnd, 0, 0 - CInt(1.5 * nHeight), nSX, nSY +
nHeight, True)
======================================

Please feel free to let us know if you have any other questions or
concerns. Have a nice day!

Best regards,
Charles Wang
Microsoft Online Community Support
=========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: (e-mail address removed).
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
 
A

AG

Thanks Charles,

Since I did not know how to do it, or even if it was possible, how would I
know whether or not to use WIN32 API?
If I would post to an SDK group and ask an Access specific question (which
this is), someone would tell me to post in an Access group.
I think you are splitting hairs.
 
C

Charles Wang [MSFT]

Hi AG,

Sincerely I am sorry if I gave you that feelings, but thanks for your
feedback and I will try to improve it in future.

Also we appreciate your understanding that for those issues that relate to
other technologies except Access, sometimes it is hard to effectively give
the real resolution only at Access community. Since one support engineer
cannot cover every Microsoft technology, that is why we sometimes redirect
customers to a dediated community for best addressing the issue.

As for effectively getting Microsoft support at the managed newsgroup, I
recommend that no matter in which managed newsgroup you have a post in
future, if a Microsoft professional jumps in the thread to assist you,
please respond to us and let us know your concern, feelings or questions,
so that we can effectively follow up and collaborate with other
professionals to try to find a resolution/workaround for you. Also managed
newsgroup is a public community so that we can hear many people's voices
that may also give Microsoft support professionals some hints to assist you
further.

I appreciate your understanding that we always care for you and other
Microsoft customers and are delightful to provide assistance on resolving
customers issues, so if you have any concerns or questions, please feel
free to let us know. We will try our best to improve and hope to achieve
your top expectation on our support services.

Have a nice day!

Best regards,
Charles Wang
Microsoft Online Community Support
=========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: (e-mail address removed).
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top