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

Home Posts Topics Members FAQ

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"an d
"close". With the command
Application.Com mandBars("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,MinM ax 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 1852
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(lngH Wind As Long)
'\(c)silba,0408 99\vs.01.02\rev 060100\
On Error Resume Next
Dim lngSysMenu As Long
Dim lngRes As Long
Const MF_BYPOSITION = &H400

lngSysMenu = GetSystemMenu(l ngHWind, 0)
lngRes = RemoveMenu(lngS ysMenu, 6, MF_BYPOSITION)
End Function

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

fNoExitBtn(hWnd AccessApp)

-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"an d
"close". With the command
Application.Com mandBars("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,MinM ax 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.c omwrote:
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(lngH Wind As Long)
'\(c)silba,0408 99\vs.01.02\rev 060100\
On Error Resume Next
Dim lngSysMenu As Long
Dim lngRes As Long
Const MF_BYPOSITION = &H400

lngSysMenu = GetSystemMenu(l ngHWind, 0)
lngRes = RemoveMenu(lngS ysMenu, 6, MF_BYPOSITION)
End Function

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

fNoExitBtn(hWnd AccessApp)

-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
1460
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. I know that it can be turned off by customising the menu but this doesn't stop it from appearing on other machines. Any help would be appreciated.
0
1844
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 &= (~(WS_THICKFRAME)); And applying this style to That window using user32.dll library imported function. Similarly I tried to remove maximize but its not working. Any help in this regard is highly appreciated.
2
1262
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 from the window ? Is a window without Icon possible ?
2
1640
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
1573
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
1548
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 by default to the controls. These properties must be removed from the 'Properties window' of the usercontrol. Also the user must not be able to set these properties using code. I am able to remove the properties from the 'Properties window' by...
2
9098
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 = "Test" & x controls.add(btn) next x This results in 10 buttons appearing on the screen. I've excluded the
4
2494
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 button of that window. So, i want how to disable or remove that close button of that window through javascript?
1
3052
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 a new window i want to remove existed window toolbar and for IE6
0
9714
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
10599
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
10346
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...
0
10090
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...
1
7635
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
6863
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
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
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
2
3832
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.