Multimobile Development: Building Applications for any Smartphone
adding a "minimize-to-tray" box to main form
Messages   Related Types
This message was discovered on microsoft.public.dotnet.languages.vb.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

steve
hi all,

i was wondering how is it possible to add an extra box ( i think they are
called boxes: upper right corner ...) in a form that will minimize it in the
system tray?
You know some applications have a 4th one (apart from the square , bar and
X ) which contains a dot and once u click it minimizes the application to
the tray.

TIA

-steve

Reply to this message...
Vote that this is a GOOD answer...
 
Really good experience at the Apple Store
MonoDroid – looking *awesome*
 
    
Steve Long
I think you can get that done with a NotifyIcon control on your form. Look
it up in the docs and see what you think.

HTH
Steve

"steve" <noemail.@try.com> wrote in message
news:iwQPc.84192$Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
First volume of Multimobile Development nearly ready to go to press
A mention on Developing for the iPhone and Android: The pros and cons
 
    
Jeff Johnson [MVP: VB] (VIP)
"steve" <noemail.@try.com> wrote in message
news:iwQPc.84192$Click here to reveal e-mail address...

[Original message clipped]

I've never seen an application that provides this. I'm not disputing that
they exist, but I think it's a non-standard thing to do. First off, adding a
button to the title bar is not a trivial task. Second, most of the programs
that I've seen that offer this ability make it a user option, so that
minimizing (with the normal minimize box) either sends the app to the
taskbar or the tray, as opposed to having two buttons which do different
things.

Reply to this message...
Vote that this is a GOOD answer...
 
 
    
Mick Doherty
The Old API Viewer had this extra Caption Button as did GetRight, and I'm
sure several other programs.

I wrote code for this back in my old VB6 days the source of which you will
find on PlanetSourceCode.
It was a lot of code for a simple button and it will not be much easier to
do in dotnet since it involves drawing to the forms Non Client Area, which
is not supported by the framework. I have not attempted to repeat this task
in dotnet as it is much simpler and more common to attach the option to the
existing Minimize Button.

If you really want the appearance, and your form has no menu, then I would
suggest removing the TitleBar from the form and simulating it with a Docked
Panel and some buttons using the Marlett font.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html

"Jeff Johnson [MVP: VB]" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004

Reply to this message...
Vote that this is a GOOD answer...
 
First chapters of Multimobile Development book now available on Apress Alpha program
iPad
 
    
steve
So I remembered correctly, but hard to do... oh well, it`s not important.

Thanx all of you for your kind responses! I love this newsgroup. Very
knowledgeable and kind people giving advice at roughly (what ?...) 95% of
the questions.
Excellent work.
Thanx again
"Mick Doherty"
<EXCHANGE#Click here to reveal e-mail addressRACKETS.[mdaudi100#ntlworld.com]> a écrit
dans le message de news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
New book project – Multimobile Development: Building Applications for any Smartphone
Dive into HTML5
 
 
System.Windows.Forms.NotifyIcon




Multimobile Development: Building Applications for any Smartphone
Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734