473,378 Members | 1,623 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,378 software developers and data experts.

How can i remove the mimize window

How can I remove the three buttons on the upper right corner in the
database ? These three buttons are called "minimize" "restoredown"and
"close". With the command
Application.CommandBars("Menu bar").Enabled = False

With the help of the above command remove all the buttons and the
screen is clear of them, but these three buttons remain on the right
upper corner. Is there any command with which to remove them by
code ?
In the design view of the form i have put No to the properties
ControlBox,MinMax button
and CloseButton but these buttons persist to stay at the upper right
corner of the screen. perhaps they are tied up not with Acces but with
Windows ?

Aug 13 '07 #1
5 1827
On the form properties, in the OTHER tab there are two properties:
popup and modal. Play with them.

Christian

Aug 13 '07 #2
Also, in form properties on the format tab look at "Min Max Buttons"
and "Close Button".

Aug 13 '07 #3
solar - here is an article about 'trapping' and disabling the x that
closes access:
http://www.mvps.org/access/general/gen0005.htm

And if you want to make it go away completely, here is the code that I
use, that I got from this newsgroup - (I use it in Access 2002, with XP.
I'm not sure if it will work with new stuff like vista and 2007):

'\***BEGIN CODE***\
Private Declare Function GetSystemMenu Lib "user32" (ByVal hWnd As Long, _
ByVal bRevert As Long) As Long
Private Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, _
ByVal nPosition As Long, ByVal wFlags As Long) As Long

Function fNoExitBtn(lngHWind As Long)
'\(c)silba,040899\vs.01.02\rev060100\
On Error Resume Next
Dim lngSysMenu As Long
Dim lngRes As Long
Const MF_BYPOSITION = &H400

lngSysMenu = GetSystemMenu(lngHWind, 0)
lngRes = RemoveMenu(lngSysMenu, 6, MF_BYPOSITION)
End Function

'when you want to hide the close button, you call the function like this:

fNoExitBtn(hWndAccessApp)

-hope this helps
-John

solar wrote:
How can I remove the three buttons on the upper right corner in the
database ? These three buttons are called "minimize" "restoredown"and
"close". With the command
Application.CommandBars("Menu bar").Enabled = False

With the help of the above command remove all the buttons and the
screen is clear of them, but these three buttons remain on the right
upper corner. Is there any command with which to remove them by
code ?
In the design view of the form i have put No to the properties
ControlBox,MinMax button
and CloseButton but these buttons persist to stay at the upper right
corner of the screen. perhaps they are tied up not with Acces but with
Windows ?
Aug 13 '07 #4
Oops, I should have paid closer attention. I didn't realize he was
talking about the db window. Sorry.

Aug 13 '07 #5
On 13 , 21:56, John Welch <so...@nospam.comwrote:
solar - here is an article about 'trapping' and disabling the x that
closes access:http://www.mvps.org/access/general/gen0005.htm

And if you want to make it go away completely, here is the code that I
use, that I got from this newsgroup - (I use it in Access 2002, with XP.
I'm not sure if it will work with new stuff like vista and 2007):

'\***BEGIN CODE***\
Private Declare Function GetSystemMenu Lib "user32" (ByVal hWnd As Long, _
ByVal bRevert As Long) As Long
Private Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, _
ByVal nPosition As Long, ByVal wFlags As Long) As Long

Function fNoExitBtn(lngHWind As Long)
'\(c)silba,040899\vs.01.02\rev060100\
On Error Resume Next
Dim lngSysMenu As Long
Dim lngRes As Long
Const MF_BYPOSITION = &H400

lngSysMenu = GetSystemMenu(lngHWind, 0)
lngRes = RemoveMenu(lngSysMenu, 6, MF_BYPOSITION)
End Function

'when you want to hide the close button, you call the function like this:

fNoExitBtn(hWndAccessApp)

-hope this helps
-John

Thank you John. The code does prevents from closing but i need to
remove the mimize window, this is the first button fronm the three
buttons on the right upper corner. Is there any method to do it ? I
wil be very grateful if you could help me

solar

Aug 13 '07 #6

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

Similar topics

1
by: Wayne | last post by:
Is there a way to remove the "Type a question here for help" window from the menu bar with code? I don't want this window available to the user and would like to hide it when the database starts....
0
by: satish jupalli via .NET 247 | last post by:
Hi all, I have a word Add-in from which i will open a word new document. For this document I want to remove maximize, resize option. I'm able to remove the resize option using stsyle &=...
2
by: Peter Stojkovic | last post by:
I have programmed a window with an icon. Now I want, that this window has NO Icon. But I can not remove the icon within VS.NET. I can only select an other ICON ! How can I remove the icon...
2
by: moondaddy | last post by:
How can I remove all menu and toolbars from a web page (aspx) and fix the size of the page? Thanks. -- moondaddy@newsgroup.nospam
1
by: ck | last post by:
What should I program in order to close window and remove a text file as soon as users click on "Abort" button. Thanks.
1
by: abyclassic | last post by:
Dear All, I am making a Windows Control Library(user control) using VS.NET & C#.NET. Now, i am facing 3 problems: 1.In this control, i wants to remove some of the properties which are available...
2
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have the following code the dynamically adds a specific number of controls. for x as integer = 1 to 10 Dim btn as Windows.Forms.Button = New Windows.Forms.Button btn.Name = "btn" & x btn.Text...
4
by: sasimca007 | last post by:
Hello friends, In my project, i am opening a window with javascript, in that new window i am providing a link to close that window, then there is no use of default close...
1
by: LVenkatrao | last post by:
how to remove toolbar and menubar of a jsp page i tried to use window.toolbar.visible=false not working and giving some javascript error window.open(attributes) will not because i don't want to open...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.