473,605 Members | 2,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2298
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******@onlin e.excite.comwro te in message
news:5C******** *************** ***********@mic rosoft.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**@markNOSPA Mrae.netwrote in message
news:OO******** ******@TK2MSFTN GP06.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...@markNOSPA Mrae.netwrote:
"Mark Rae" <m...@markNOSPA Mrae.netwrote in message

news:OO******** ******@TK2MSFTN GP06.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.goo glegroups.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
4029
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 form load event, but I don't see any significant drop in memory usage. Anybody know why? Thanks, Bhargavan
3
8388
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. Also, when the parent form's FormBoarderStyle is set to nothing, then the child form is maximized, I get the minimize and maximize buttons at the top of the parent from even though the boarder style is set to none for both forms. How do I prevent...
0
486
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 mamiximze in the parent form. So then the maximized button is still active. But I want the child form to fill the parent form without the ability to close minimize or maximize the form like a default page.
3
5421
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 remains visible (albeit completely disabled).
2
2806
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 supposed to do. To maximize the window I have to go to "task manager" and double click the application. How do I control those maximize, minimize buttons on the top right section of my form? A learner here
4
3689
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 student exam system. I don't want students to be able to copy from other windows. I have put a close button on the page in order to close the page. I have been searching though the website, all I can do now is to diable the maximize button, the...
4
13449
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. Thanks in advance. Emil.
5
10766
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 server. Now, every console program instance will open a command mode window and they occupy the whole screen. I want to minimize all of them and maximize it if neccessary by manual. Is it possible and how to do it? I'm using VB.NET 2005. ...
0
1405
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 use to work fine, but recently they have stopped. Anyone got any ideas?
1
8071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8288
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...
0
6743
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5886
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
5445
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
3912
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2438
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
1
1541
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1271
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.