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

Minimize without Maximize

Hello,

I have a WinForms app (VS.NET 2005 + SP1) where the FormBorderStyle of the
main form is set to FixedDialog.

I've added a NotifyIcon, so have set the form's MinimizeBox property to
true;

This enables the form's minimize button, obviously, and the NotifyIcon stuff
is working.

However, this also displays the form's maximize button, even though the
form's MaximizeBox property is set to false;

Not a huge problem because even though the maximize box is visible it is not
enabled, but it seems to be confusing some of my users who are asking me why
nothing happens when they click the maximize button.

Is there a way to enable the minimize button without displaying the maximize
button?

Thanks,

DJ
May 2 '07 #1
5 2287
AFAIK, it is not possible.

"David Jackson" wrote:
Hello,

I have a WinForms app (VS.NET 2005 + SP1) where the FormBorderStyle of the
main form is set to FixedDialog.

I've added a NotifyIcon, so have set the form's MinimizeBox property to
true;

This enables the form's minimize button, obviously, and the NotifyIcon stuff
is working.

However, this also displays the form's maximize button, even though the
form's MaximizeBox property is set to false;

Not a huge problem because even though the maximize box is visible it is not
enabled, but it seems to be confusing some of my users who are asking me why
nothing happens when they click the maximize button.

Is there a way to enable the minimize button without displaying the maximize
button?

Thanks,

DJ
May 2 '07 #2
"Siva M" <sh******@online.excite.comwrote in message
news:5C**********************************@microsof t.com...
AFAIK, it is not possible.
Actually, I'm pretty sure this *is* possible with API / pinvoke...

The following article indicates that a method exists to do exactly this with
Microsoft Access forms by manipulating the window's style bits property.

Registration and subscription is required to see the actual code - I guess
if the OP needs it badly enough, he'll pay up... ;-)

May 2 '07 #3
"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:OO**************@TK2MSFTNGP06.phx.gbl...
The following article...
Might help if I actually provide the link... ;-)
http://safari.oreilly.com/0596000847...-CHP-11-SECT-1
--
http://www.markrae.net

May 2 '07 #4
On 2 May, 11:30, "Mark Rae" <m...@markNOSPAMrae.netwrote:
"Mark Rae" <m...@markNOSPAMrae.netwrote in message

news:OO**************@TK2MSFTNGP06.phx.gbl...
The following article...

Might help if I actually provide the link... ;-)http://safari.oreilly.com/0596000847...-CHP-11-SECT-1

--http://www.markrae.net
The maximize button toggles between being the maximize button and the
restore button. If you do manage to get rid of the button and then
minimize the form, how will you get it back? (assuming not the main
form, which would minimize to the task bar.)

Also.
Are your users using a theme which doesn't make a disabled item
(grayed out) clear?
If your users are trying to maximize the form, isn't it likely that
they are doing this as they want the form to be bigger? If this is
the case, why not allow the form to be maximized?

May 2 '07 #5
"Matt Lacey" <m.*****@fdsltd.co.ukwrote in message
news:11**********************@l77g2000hsb.googlegr oups.com...
The maximize button toggles between being the maximize button and the
restore button.
Don't ask me, mate - ask the OP...
If you do manage to get rid of the button and then
minimize the form, how will you get it back? (assuming not the main
form, which would minimize to the task bar.)
Er, presumably by clicking in the task bar...

--
http://www.markrae.net

May 4 '07 #6

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

Similar topics

7
by: Bhargavan | last post by:
Hey Group, When I minimize and then maximize a form (in windows application), I see a significant drop in memory usuage in the task manager. I tried to do the same thing programatically during the...
3
by: Paul Welter | last post by:
I'm building a MDI application that has child forms. I'm trying to find a way to hide the inner boarder of the child frame area. Setting the FormBoarderStyle of the child form has no effect. ...
0
by: Bill | last post by:
Hi I have a parent child forms. I want the close, maximize, and minimize buttons to be removed. One the child form I have set the maximize and minimize buttons to false. I have the child form...
3
by: Don | last post by:
If you have a form that calls another form via the following code: Dim myForm as Form2 myForm = New Form2 myForm.Owner = Me MyForm.ShowDialog and you minimize the second form, the first form...
2
by: jj | last post by:
I have a single threaded application in c# that scans through a file system. While doing this if I try to minimize, maximize buttons on the top,right hand corner of my form do not do as they are...
4
by: Linda | last post by:
My environment is Windows Server 2003, .NET Visual Studio Academic 2003, ASP.NET. I need to create a page with no top title bar, no mimize button, no maximize button, no close button. It is for a...
4
by: EmilH | last post by:
Hi, Can anybody show me how to minimize/maximize a window dynamically? I placed buttons for each of these commands and want to place the code which will minimize and maximize the window. ...
5
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Dear all, I'd like to know if there is any method to minimize command mode window when a console program is running. In my case, there are several console programs which run periodically in...
0
by: =?Utf-8?B?Ym9hdGFibGU=?= | last post by:
Some of my shortcuts that use to allow my to left click properties run: minimize/maximize do nothing. They allow me to change to but after change minimize/maximize behavior does not change. They...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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
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
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...

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.