473,441 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,441 software developers and data experts.

System modal messages/forms

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
4 2735
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
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: D Cameron | last post by:
I'd like to be able to make a full screen form in one of my apps inescapable: disable the Start button, Alt-Tab etc. until my application closes the form. I seem to remember VB3.0 distinguishing...
3
by: Andrew Baker | last post by:
OK this has me perplexed, puzzled and bamboozled! I have a remoting service which I displayed a message box in. I then wondered what would happen if a client made a call to the service while the...
2
by: cassidyc | last post by:
Hi, I was wondering if anyone has come accross this issue? And if they have any solutions I have that can create new copies of itself Form1 as = new form1(); af.show(); This form can also...
5
by: Bill nguyen | last post by:
I need to popup a tiny modal dialog box when a user clicks on the "Print" button to force the user to wait for printing process to finish before he/she can continue. The model dialog box should go...
2
by: Mike | last post by:
Hi, I'm having a problem with modal forms on windows. I've written a very short test program, with a main window and a form called from the main window. The form is set to modal with...
2
by: =?Utf-8?B?TmF0aGFuIFdpZWdtYW4=?= | last post by:
Hi, I am wondering why the .NET Framework is quite different from Win32 API when it comes to displaying system modal message boxes. Consider the four following types of system modal message...
2
by: diogenes | last post by:
I have created many shortcut/popup (aka context, or right-click) menus for my application - instead of toolbars or standard drop-down menus. Within my custom menu, I am using...
4
by: =?Utf-8?B?Z2luYWNyZXNzZQ==?= | last post by:
I am trying to close/dispose multiple instances of a form but because they are modal and hidden, they do not show up in My.Application.OpenForms. They must be modal, so making them modeless is not...
1
by: Mohit | last post by:
Hi all, I am working on a windows based client server application with multiple forms. All forms are having custom title bars with no default bars. There is one main form. Some forms are opened up...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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...
0
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...
0
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...

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.