MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Topmost problem since IE7

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> C Sharp
Author Message
helfi



Joined: 13 Dec 2007
Posts: 2

PostPosted: Thu Dec 13, 2007 8:30 am    Post subject: Topmost problem since IE7 Reply with quote

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 Wink
- 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/ShowPost.aspx?PostID=2535711&SiteID=1


I appriciate your help or comments on this topic.

Best regards,
Johann

Archived from group: microsoft>public>dotnet>languages>csharp
Back to top
View user's profile Send private message
Nicholas Paldino [.NET/C#



Joined: 08 Aug 2007
Posts: 71

PostPosted: Thu Dec 13, 2007 3:08 pm    Post subject: Re: Topmost problem since IE7 Reply with quote

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]
- mvp@spam.guard.caspershouse.com

"helfi" wrote in message @microsoft.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 Wink
> - 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/ShowPost.aspx?PostID=2535711&SiteID=1
>
>
> I appriciate your help or comments on this topic.
>
> Best regards,
> Johann
>
Back to top
View user's profile Send private message
helfi



Joined: 13 Dec 2007
Posts: 2

PostPosted: Thu Dec 13, 2007 5:02 pm    Post subject: Re: Topmost problem since IE7 Reply with quote

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]
> - mvp@spam.guard.caspershouse.com
>
> "helfi" wrote in message
> @microsoft.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 Wink
> > - 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/ShowPost.aspx?PostID=2535711&SiteID=1
> >
> >
> > I appriciate your help or comments on this topic.
> >
> > Best regards,
> > Johann
> >
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
How do I fix this problem Hi everybody: when I make the web.config file to make the and the autherization for my web site. the code is as following: mode="Forms">
Problem with example in wse 2 Hi: I have a winXp-Prof with visual studio 2003, when I try to run in C# the example I get this error Message: Calling ****** Exception Raised ******

WMI Problem I am trying to create a WMI query and it's not working. I know very little about creating querys so any help would be great. I'm trying to create a query to monitor the Blackberry Redirector process. Here is how I have it setup. Namespace: root\CIMV2 Que

Possible .NET 1.1 CLR problem it seems we have encountered a problem in the Microsoft .NET Common Language Runtime library for Windows Workstation, i.e. Our software runs on servers using the library version 1.1.4322.573 (MS .NET 1.1 Service Pack 1 not installed), howe

asp problem hi, i have a problem while running the asp script. The error is as follows. Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x800A0046) Driver Manager] Driver's failed Can u plzz tell me what to do? Very urgent!!
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> C Sharp All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group