PC Review


Reply
Thread Tools Rate Thread

adding a "minimize-to-tray" box to main form

 
 
steve
Guest
Posts: n/a
 
      3rd Aug 2004
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 With Quote
 
 
 
 
Steve Long
Guest
Posts: n/a
 
      3rd Aug 2004
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$_(E-Mail Removed)...
> 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 With Quote
 
Jeff Johnson [MVP: VB]
Guest
Posts: n/a
 
      3rd Aug 2004

"steve" <noemail.@try.com> wrote in message
news:iwQPc.84192$_(E-Mail Removed)...

> 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.


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 With Quote
 
Mick Doherty
Guest
Posts: n/a
 
      3rd Aug 2004
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]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "steve" <noemail.@try.com> wrote in message
> news:iwQPc.84192$_(E-Mail Removed)...
>
> > 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.

>
> 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.
>
>



---
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 With Quote
 
steve
Guest
Posts: n/a
 
      4th Aug 2004
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#(E-Mail Removed).[mdaudi100#ntlworld.com]> a écrit
dans le message de news:(E-Mail Removed)...
> 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]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> > "steve" <noemail.@try.com> wrote in message
> > news:iwQPc.84192$_(E-Mail Removed)...
> >
> > > 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.

> >
> > 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.
> >
> >

>
>
> ---
> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding or deleting "Tray" icons HELP!! =?Utf-8?B?YXNlcnZhbnQ=?= Windows XP Help 6 26th Nov 2006 03:48 PM
update a "sub" table from a "Main" form Phil Microsoft Access Forms 2 29th Jul 2004 06:00 AM
updating a "sub" table from a "main" form PHIL Microsoft Access Reports 0 29th Jul 2004 12:54 AM
Minimize the main form to System Tray at start up =?Utf-8?B?RG90bmV0anVua3k=?= Microsoft Dot NET Framework Forms 4 1st Jul 2004 10:05 AM
<FORM METHOD="post" onSubmit="return fieldcheck()" name="orientation" action="http://ws-kitty.BU.edu/AT/survey/orientation/script/write.asp" language="JavaScript"> Joeyej Microsoft ASP .NET 0 4th Jun 2004 08:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:47 AM.