PC Review


Reply
Thread Tools Rate Thread

"Overlay Form"

 
 
ManniAT
Guest
Posts: n/a
 
      10th Jun 2005
Hi,

is it possible (C#) to display a small window (somekind of a modeless dialog) on top of all other running programms.
Let me explain what I want to do:
I control an application - running in the foreground.
My app is in the background.
Sometimes I have the need to inform the user about special circumstands.
BUT - I should not interrupt him totaly - because I don't know if he is willing to switch to my app a the very momet.
So what I want are two things:
A.) inform him about the situation at the very moment - and remove the icon if the situation has changed
B.) inform him that my app needs interaction - when he clicks my "Icon-Window" I will bring my app to the foreground

An Icon in the titlebar or so is not possible for two reasons:
a.) the foreground app runs in fullscreen (not Titlebar - no Menubar)
b.) the user should be able to hit the "Icon" with the finger

So what I need is somekind of a "big icon" (32x32 or something like that) which displays on top of the other app.
This "icon" should notify me if the user "clicks" it.

My first idea was to have somekind of a 32x32 sized "Topmost-window" - but how to make such a thing?
A "MessageBox" is not suitable since the user should still be able to interact with the other application ----
----and that without loosing my "Icon".

Thanks in advance

Manfred


 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      10th Jun 2005
What platform are you running on? if it's Pocket PC then the bubble
notification control may be suitable as you can indicate your status on the
titlebar and offer a pop-up bubble with more detail which can still be
dismissed by the user. See OpenNETCF.WindowsCE.Forms.Notification -
www.opennetcf.org/sdf/ (or Microsoft.WindowsCE.Forms.Notification in .NETCF
v2.0)

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.peterfoot.net | www.opennetcf.org

"ManniAT" <(E-Mail Removed)> wrote in message
news:e$(E-Mail Removed)...
> Hi,
>
> is it possible (C#) to display a small window (somekind of a modeless
> dialog) on top of all other running programms.
> Let me explain what I want to do:
> I control an application - running in the foreground.
> My app is in the background.
> Sometimes I have the need to inform the user about special circumstands.
> BUT - I should not interrupt him totaly - because I don't know if he is
> willing to switch to my app a the very momet.
> So what I want are two things:
> A.) inform him about the situation at the very moment - and remove the
> icon if the situation has changed
> B.) inform him that my app needs interaction - when he clicks my
> "Icon-Window" I will bring my app to the foreground
>
> An Icon in the titlebar or so is not possible for two reasons:
> a.) the foreground app runs in fullscreen (not Titlebar - no Menubar)
> b.) the user should be able to hit the "Icon" with the finger
>
> So what I need is somekind of a "big icon" (32x32 or something like that)
> which displays on top of the other app.
> This "icon" should notify me if the user "clicks" it.
>
> My first idea was to have somekind of a 32x32 sized "Topmost-window" - but
> how to make such a thing?
> A "MessageBox" is not suitable since the user should still be able to
> interact with the other application ----
> ----and that without loosing my "Icon".
>
> Thanks in advance
>
> Manfred
>



 
Reply With Quote
 
ManniAT
Guest
Posts: n/a
 
      10th Jun 2005
Hi Peter,

I was also messing around with that.
The interop is pretty simple -- my only problem - I found no way to get an image in there.
But that does not matter - there are other problems.

A problem is that the user should not be able to close it (my app will do it if the response is done).
And I'm not very shure if this thing is systemmodal.

But the most common problem is the placement of it - it displays somewhere in the top middle of the screen.
Since there is data from the other app - it disturbs the user.

There is an app (PocketNav) - some kind of a task switcher - which displays icons over existing apps.
Allthough these icons are to small for my use I think (hope) there is a way that this can be done with other graphics also.

Thanks for the tip

Manfred


 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      11th Jun 2005
You can create a non-fullscreen form by setting the FormBorderStyle property
to None and set your size and position properties for the form as required.
If you want this form to remain top-most you'll need to do a little bit of
P/Invoke:-
http://www.peterfoot.net/CreateATopMostForm.aspx

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org

"ManniAT" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Peter,
>
> I was also messing around with that.
> The interop is pretty simple -- my only problem - I found no way to get
> an image in there.
> But that does not matter - there are other problems.
>
> A problem is that the user should not be able to close it (my app will do
> it if the response is done).
> And I'm not very shure if this thing is systemmodal.
>
> But the most common problem is the placement of it - it displays somewhere
> in the top middle of the screen.
> Since there is data from the other app - it disturbs the user.
>
> There is an app (PocketNav) - some kind of a task switcher - which
> displays icons over existing apps.
> Allthough these icons are to small for my use I think (hope) there is a
> way that this can be done with other graphics also.
>
> Thanks for the tip
>
> Manfred
>
>



 
Reply With Quote
 
ManniAT
Guest
Posts: n/a
 
      12th Jun 2005
Hi Peter,

setting the border to none seems to be the thing I'v been searching for.

Thank's for the information

Manfred


 
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
Do word 07 users find distorted "overlay" in toolbars? Annie A Microsoft Word Document Management 0 30th Apr 2008 06:51 AM
Location of EWF overlay "flags" in disk partition? Gereon Windows XP Embedded 6 20th Jun 2005 01:45 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 09:55 PM
All video comes up as a blank screen except in "theater mode" in overlay tab auilani ATI Video Cards 4 14th Nov 2003 03:33 PM
When doing a "Find" in a form, would like the "Match" to default to "Any Part of Field" =?Utf-8?B?RG9u?= Microsoft Access Forms 2 25th Oct 2003 05:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:18 PM.