469,326 Members | 1,319 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,326 developers. It's quick & easy.

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 2134
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Bhargavan | last post: by
4 posts views Thread by EmilH | last post: by
5 posts views Thread by =?Utf-8?B?SmFtZXMgV29uZw==?= | last post: by
reply views Thread by =?Utf-8?B?Ym9hdGFibGU=?= | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.