By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,775 Members | 1,345 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,775 IT Pros & Developers. It's quick & easy.

System modal messages/forms

P: n/a
I have a user who likes to keep my application minimized. He wants to have
a pop up of some sort come up to tell him he needs to return to the
application to take action.

I have used both message boxes and forms as pop ups but if the application
is minimized it only comes up on the task bar. He wants to have system
modal warning that will pop up and over ride all other applications open.
Any help is greatly appreciated.
Apr 5 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Greg,

That's actually very rude behavior for an application, and MS agrees,
which is why you can't create a system-modal dialog box, or have other forms
take focus when your app is in focus.

Quite frankly, I would tell your user to pay more attention, but being
that is not a viable option, I would recommend a notification tray icon,
which you can then change when the user has to be informed of a change.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Greg Smith" <gj*@umn.edu> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I have a user who likes to keep my application minimized. He wants to have
a pop up of some sort come up to tell him he needs to return to the
application to take action.

I have used both message boxes and forms as pop ups but if the application
is minimized it only comes up on the task bar. He wants to have system
modal warning that will pop up and over ride all other applications open.
Any help is greatly appreciated.

Apr 5 '06 #2

P: n/a
Greg Smith wrote:
I have a user who likes to keep my application minimized.
He wants to have a pop up of some sort come up to tell
him he needs to return to the application to take action.


If you want to show an obvious alert but don't need to display a
message, you can call FlashWindow (via System.Runtime.Interop) to make
the program's taskbar button flash.

Eq.
Apr 5 '06 #3

P: n/a

Nicholas Paldino [.NET/C# MVP] wrote:
That's actually very rude behavior for an application, and MS agrees...


<bit of a rant>
If MS agrees, can we convince somebody to change Outlook to not pop up
a top most window in Outlook every time a login fails? I have three
different mailboxes and if one of them fails to retrieve on its five
minute check, I get a top most login box regardless of what application
I'm typing in. While not technically modal, it still hijacks your
active window at that moment. As others have said, a change in the
tray icon or flashing your taskbar entry is much more palateable.
</bit of a rant>

Apr 5 '06 #4

P: n/a
I agree with you, it definitely shouldn't do that. The Office team
walks with a big stick in general in MS, if you know what I mean.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<d2*****@yahoo.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...

Nicholas Paldino [.NET/C# MVP] wrote:
That's actually very rude behavior for an application, and MS agrees...


<bit of a rant>
If MS agrees, can we convince somebody to change Outlook to not pop up
a top most window in Outlook every time a login fails? I have three
different mailboxes and if one of them fails to retrieve on its five
minute check, I get a top most login box regardless of what application
I'm typing in. While not technically modal, it still hijacks your
active window at that moment. As others have said, a change in the
tray icon or flashing your taskbar entry is much more palateable.
</bit of a rant>

Apr 5 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.