Flashing Application is task bar

M

mdhaman

Hi,

I have VB.Net MDI application (.Net 2.0). This application listen for
incoming message on a Message Queue. If a new message appears in the message
queue, it opens a new MDI child window and displays data related to the that
message in a new child window.

Now what I want is that, if the application is not in the focus or is
minimized, i want the application to flash in the taskbar and turn
orange..... I tried to use Me.Focus for MDI Parent window but the behaviour
is quite erratic. At times, the taskbar button flashes and turns orange
which is correct, but at times it does not do anything. Sometimes it even
steals the focus and bring the application in front.

Can anyone help me to fix the problem so that the application flashes in
the task bar when a new MDI child window opened and the MDI application is
minimized or not in focus....

MD
 
M

Michael C

mdhaman said:
Hi,

I have VB.Net MDI application (.Net 2.0). This application listen for
incoming message on a Message Queue. If a new message appears in the
message queue, it opens a new MDI child window and displays data related
to the that message in a new child window.

Now what I want is that, if the application is not in the focus or is
minimized, i want the application to flash in the taskbar and turn
orange..... I tried to use Me.Focus for MDI Parent window but the
behaviour is quite erratic. At times, the taskbar button flashes and turns
orange which is correct, but at times it does not do anything. Sometimes
it even steals the focus and bring the application in front.

Can anyone help me to fix the problem so that the application flashes in
the task bar when a new MDI child window opened and the MDI application is
minimized or not in focus....
http://msdn2.microsoft.com/en-us/library/ms679346.aspx


MD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top