LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
151 151 is offline
external usenet poster
 
Posts: 2
Default removing maximize control from excel application (not justworksheet)?

hi all,

I am trying to remove the maximize control (the small square control
common to most windows) from the top right of Excel (the application,
not just the worksheet) and I can remove everything BUT the maximize
and minimize controls with code similar to:

lHandle = FindWindowA(vbNullString, Application.Caption)
If lHandle < 0 Then
DeleteMenu GetSystemMenu(lHandle, False), 0, MF_BYPOSITION
DeleteMenu GetSystemMenu(lHandle, False), 1, MF_BYPOSITION
.....etc

A variation of the code above removes the maximize option from the
system menu but does NOT remove the maximize icon (the small square)
too. Strangely I can disable the "X" that closes the application
without any problems....

Is it possible to do it? I want to stop the user maximizing Excel as
I am trying to make the worksheet look like more of a standalone
application. Its working pretty well apart from this issue!

thanks guys!

Gav

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel application level control for Excel 2003 Kieran[_56_] Excel Programming 0 November 12th 07 07:03 PM
Removing a control Mekinnik Excel Programming 3 October 9th 07 03:10 AM
Removing Gridlines in excel, from another application iambalrog[_7_] Excel Programming 2 June 22nd 06 09:17 AM
Returning User Control to Excel from other Application in VBA [email protected] Excel Programming 1 March 10th 06 09:54 PM
Displaying MS Excel Chart control in ASP.NET Application oursmp Charts and Charting in Excel 0 April 20th 05 04:17 PM


All times are GMT +1. The time now is 05:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"