473,388 Members | 1,400 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,388 software developers and data experts.

Topmost problem since IE7

Hi all,

I have replied with my own questions to an older post entry
but after a while I thought it's better to start a new thread based on
the previous one. Perhaps with the new thread I will catch more eyes and
find someone who had the same problem and solved it or
has more information about it.

This is a summary of my problem:

IE7 (or anything else that IE7 installation changed in the system) is
blocking the FIRST window I am showing from my service to be displayed. The
second and
all windows I show afterwars from the service display correctly.

I am using TOPMOST in my code and everything works as accpected
without IE7.

Everything works fine with all security updates installed on my XP and using
IE6. But immediately after installing IE7 the problem occurs.

IE7 does not even have to run. Installation of IE7 is enough that the
problem occurs. Uninstalling it fixes the problem again. But I would rather
not choose that path.
The post I added to the previous entry:
"A few students told us about this behaviour a few days ago and in my tests
I have noticed it will occur the first time someone wants to print in any
application.
When you print the second time everything works fine.
We have a service running on all student PCs displaying a message (=form)
to our students when they want to print (service: allow to interact with
desktop is enabled)

Now I have read the above posts but before changing my code and re-deploying
the new software to all the student PCs I would like to clarify a few things:
- the above entries have been posted one year ago:
have their been any changes/fixes so far?
- why does IE7 make such a huge system-wide change?
- what actually does IE7 change? (is it again by-design ;-)
- Possible workaround??

Display an "unvisible" form first and immediatly afterwards the second
(=actual first) real form.
(second and all following messages (forms) are displayed correctly)"

Please have a look at the post mentioned above:
(it is in a VB group posted but I am a C# developer therefore I have chosen
now this group; it seems to be (.net) language independent problem)
http://forums.microsoft.com/MSDN/Sho...35711&SiteID=1
I appriciate your help or comments on this topic.

Best regards,
Johann

Dec 13 '07 #1
2 1918
How is it that you are displaying the form to the user in the service?
Services should not display UI elements (unless you meant an app and not a
service). You can hack around it by checking the "allow service to interact
with desktop" checkbox for the service, but if you want this to run on Vista
and beyond, you can't do this, as Vista removes this feature.

I'm not inclined to believe that IE7 is the cause just yet even though
you noticed a discrepancy between machines with IE6 and IE7. If you are
indeed showing a UI element from your service, that needs to be addressed
first, and then look to OS elements after.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"helfi" <he***@discussions.microsoft.comwrote in message
news:7C**********************************@microsof t.com...
Hi all,

I have replied with my own questions to an older post entry
but after a while I thought it's better to start a new thread based on
the previous one. Perhaps with the new thread I will catch more eyes and
find someone who had the same problem and solved it or
has more information about it.

This is a summary of my problem:

IE7 (or anything else that IE7 installation changed in the system) is
blocking the FIRST window I am showing from my service to be displayed.
The
second and
all windows I show afterwars from the service display correctly.

I am using TOPMOST in my code and everything works as accpected
without IE7.

Everything works fine with all security updates installed on my XP and
using
IE6. But immediately after installing IE7 the problem occurs.

IE7 does not even have to run. Installation of IE7 is enough that the
problem occurs. Uninstalling it fixes the problem again. But I would
rather
not choose that path.
The post I added to the previous entry:
"A few students told us about this behaviour a few days ago and in my
tests
I have noticed it will occur the first time someone wants to print in any
application.
When you print the second time everything works fine.
We have a service running on all student PCs displaying a message (=form)
to our students when they want to print (service: allow to interact with
desktop is enabled)

Now I have read the above posts but before changing my code and
re-deploying
the new software to all the student PCs I would like to clarify a few
things:
- the above entries have been posted one year ago:
have their been any changes/fixes so far?
- why does IE7 make such a huge system-wide change?
- what actually does IE7 change? (is it again by-design ;-)
- Possible workaround??

Display an "unvisible" form first and immediatly afterwards the second
(=actual first) real form.
(second and all following messages (forms) are displayed correctly)"

Please have a look at the post mentioned above:
(it is in a VB group posted but I am a C# developer therefore I have
chosen
now this group; it seems to be (.net) language independent problem)
http://forums.microsoft.com/MSDN/Sho...35711&SiteID=1
I appriciate your help or comments on this topic.

Best regards,
Johann
Dec 13 '07 #2
Hello Nicholas!

Yes, I am using a windows service with the option "allow service to interact
with desktop".

Maybe I should have explained a little bit more; here are how
things are going:

1.) The server service is running on our print server and checks
for new print jobs coming from our client (XP) machines.

2.) Then the server handles the algorithm for the print job management
and informs the user sitting on the client machine over .Net Remoting
about pages going to be printed and how much it costs.
This is the form I am showing where our users have to accept or
cancel the print job.

3.) Afterwards the client sends a message back to the server which
handles the rest of the algorithm.

The second point here makes the troubles:

- I open Notepad
- I print a page from Notepad
- Waiting for the form to show up; but form will be hidden behind notepad
- clicking a second time print: everything works fine
- opening any other program
- Waiting for the form to shop up; but form will be hidden behind notepad
- clicking a second time on print: everyhing works fine

And this happens only for the first window it should display from the service.
All following messages are displayed on top of all windows as planned.
To I open a new application (i.e. Excel) it happens the same again.

installed IE7 --not working
uninstalled IE7 --working
installed IE7 --not working
....
If IE7 is not causing the problem what might it be?

But reading your comment "services should not display UI" I am planning to
rewrite my code that the client application is a normal windows application
that starts when the user logs on (same way as ZoneAlarm does).

But before I have to do further testing if TOPMOST is at least working as
accepected
with windows applications.

Btw, how is the recommended way to show message boxes/forms from
a windows service? Should the windows service call a windows form?
maybe with paramters telling what to display?

Thank you for your information. I really appriciated your feedback
and I would really be happy to hear more if you or anyone else
has some ideas.

Best regards,
Johann

" Paldino [.NET/C# MVP]" wrote:
How is it that you are displaying the form to the user in the service?
Services should not display UI elements (unless you meant an app and not a
service). You can hack around it by checking the "allow service to interact
with desktop" checkbox for the service, but if you want this to run on Vista
and beyond, you can't do this, as Vista removes this feature.

I'm not inclined to believe that IE7 is the cause just yet even though
you noticed a discrepancy between machines with IE6 and IE7. If you are
indeed showing a UI element from your service, that needs to be addressed
first, and then look to OS elements after.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"helfi" <he***@discussions.microsoft.comwrote in message
news:7C**********************************@microsof t.com...
Hi all,

I have replied with my own questions to an older post entry
but after a while I thought it's better to start a new thread based on
the previous one. Perhaps with the new thread I will catch more eyes and
find someone who had the same problem and solved it or
has more information about it.

This is a summary of my problem:

IE7 (or anything else that IE7 installation changed in the system) is
blocking the FIRST window I am showing from my service to be displayed.
The
second and
all windows I show afterwars from the service display correctly.

I am using TOPMOST in my code and everything works as accpected
without IE7.

Everything works fine with all security updates installed on my XP and
using
IE6. But immediately after installing IE7 the problem occurs.

IE7 does not even have to run. Installation of IE7 is enough that the
problem occurs. Uninstalling it fixes the problem again. But I would
rather
not choose that path.
The post I added to the previous entry:
"A few students told us about this behaviour a few days ago and in my
tests
I have noticed it will occur the first time someone wants to print in any
application.
When you print the second time everything works fine.
We have a service running on all student PCs displaying a message (=form)
to our students when they want to print (service: allow to interact with
desktop is enabled)

Now I have read the above posts but before changing my code and
re-deploying
the new software to all the student PCs I would like to clarify a few
things:
- the above entries have been posted one year ago:
have their been any changes/fixes so far?
- why does IE7 make such a huge system-wide change?
- what actually does IE7 change? (is it again by-design ;-)
- Possible workaround??

Display an "unvisible" form first and immediatly afterwards the second
(=actual first) real form.
(second and all following messages (forms) are displayed correctly)"

Please have a look at the post mentioned above:
(it is in a VB group posted but I am a C# developer therefore I have
chosen
now this group; it seems to be (.net) language independent problem)
http://forums.microsoft.com/MSDN/Sho...35711&SiteID=1
I appriciate your help or comments on this topic.

Best regards,
Johann
Dec 13 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JaguarX | last post by:
I have an application that needs a window to stay on top of the other ones, I thought that TopMost = true would be suitable for this feature but it also makes this window to stay on top of all other...
3
by: Hovhannes Asatryan | last post by:
Hello guys. I have a problem with a topmost form. I am writting in C#. I have Mdi Form wich has 2 child forms. I want to set one of them as a topmost window, but when I sets MdiParent the...
12
by: E Goforth | last post by:
Hello, I have a VB6 app that calls a VB.NET app via named pipes and a third party component. Inside the VB.NET app I'm trying to force a form to the top, at least temporarily. Inside a form's...
3
by: Jason Garland \(Secure Access Pty Ltd\) | last post by:
Does anyone know a way of making an item the highest form ? (eg nothing can go above it, stays on top ?) I have used the TopMost = True But if users hit the Start Button, it then goes over...
1
by: SamSpade | last post by:
I learned about the TopMost property from a recent post which solved some problems. But I have a situation where a control wants to make the form it is on be the topmost. It could raise an...
6
by: Strahimir Antoljak | last post by:
I'm running VS.NET 2002 and keep having problems with form keeping on top with its TopMost property. Sometimes my program places the invoked form on top sometimes not. Sometimes when I click on the...
2
by: facicad | last post by:
I would like to set topmost another prog. from my program. Ex: I use AutoCAD, run my prog. from autocad. My prog. is topmost but went I would like to pick some object in autocad, I set TopMost to...
1
by: Phil Galey | last post by:
I have a small application, which is to always stay on top. Another application, which it is supposed to stay on top of, is QuarkXPress 5. I'm using Me.TopMost = True in the Form1_Deactivate...
1
by: Gary Brown | last post by:
Hi, I have a dialog box that must behave as MessageBox does with regard to the TopMost property. It must be TopMost if and only if the calling form is TopMost. A static method creates the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.