473,406 Members | 2,371 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,406 software developers and data experts.

No-Click and Application manifest file.

I have a windows form application distributed via no click deployment. I am
thinking about adding xp theme support using an application manifest. I know
the manifest is not downloaded to the client machine because of this I
embedded the manifest as resource in the *.exe file, as recommended by many
people. If I run the application using a url(No click) then xp style
visualization isn't enabled. If i run it locally(clicking on the .exe file)
then it is enabled. Because of this i created a IEExec.exe.manifest and
placed it in the framework directory and xp style is supported even using no
click. Of course this is not the way to do it. Does any one know how to
actually support xp theme in no click deployment situations.
Application.EnbableVisualStyle()
Application.DoEvents() does not work throws an SEHException. thanks for
any suggestions.
Jul 21 '05 #1
5 2686
Hi

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to enable visual style on a no
touch deployment app. If there is any misunderstanding, please feel free to
let me know.

When you need to apply XP Visual Styles to a Windows application that runs
as a separate process. you can either use a separate manifest file or embed
it in the resource as RT_MANIFEST(with index 1). If you build your
application in VS .NET 2003, then you can take advantage of the new method
EnableVisualStyles. But if you run your windows application on the web via
No-touch deployment, then the manifest approach will not work.

So when you run your windows application on the web via No-touch
deployment, you are running inside the context of another process such as
IE. The manifest will not be looked at. The only official solution is to
use Application.EnableVisualStyles which applies XP visual style to the
activation context before any window is created.

I tried it on my computer, and it works fine. Here is an example:

Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new Form1());

Make sure that you have set the FlatStyle property to FlatStyle.System.

Also, here is a community thread that discussing the same problem. HTH.

http://groups.google.com/groups?hl=z...4-43,GGLD:en&t
hreadm=6c7eb516.0311270224.409a5ff3%40posting.goog le.com&rnum=1&prev=/groups
%3Fq%3DEnableVisualStyles%2Bdeployment%26hl%3Dzh-CN%26lr%3D%26rls%3DGGLD,GGL
D:2004-43,GGLD:en%26selm%3D6c7eb516.0311270224.409a5ff3%2 540posting.google.c
om%26rnum%3D1

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #2
HI, thanks for the response.
From my experience, using
Application.EnableVisualStyles();
Application.DoEvents(); do not work and thorws an SEHException.

The following blog explains it.
http://blogs.msdn.com/rprabhu/archiv.../28/56540.aspx
I knew , from testing, when you run the application via No_touch ,it is
run under IE's context. Tthat is the reason why i created an
IEExec.exe.manifest and everything worked fine. So the bottom line, Enabling
XP style isn't that simple or it isn't possible with out any problems.
"Kevin Yu [MSFT]" wrote:
Hi

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to enable visual style on a no
touch deployment app. If there is any misunderstanding, please feel free to
let me know.

When you need to apply XP Visual Styles to a Windows application that runs
as a separate process. you can either use a separate manifest file or embed
it in the resource as RT_MANIFEST(with index 1). If you build your
application in VS .NET 2003, then you can take advantage of the new method
EnableVisualStyles. But if you run your windows application on the web via
No-touch deployment, then the manifest approach will not work.

So when you run your windows application on the web via No-touch
deployment, you are running inside the context of another process such as
IE. The manifest will not be looked at. The only official solution is to
use Application.EnableVisualStyles which applies XP visual style to the
activation context before any window is created.

I tried it on my computer, and it works fine. Here is an example:

Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new Form1());

Make sure that you have set the FlatStyle property to FlatStyle.System.

Also, here is a community thread that discussing the same problem. HTH.

http://groups.google.com/groups?hl=z...4-43,GGLD:en&t
hreadm=6c7eb516.0311270224.409a5ff3%40posting.goog le.com&rnum=1&prev=/groups
%3Fq%3DEnableVisualStyles%2Bdeployment%26hl%3Dzh-CN%26lr%3D%26rls%3DGGLD,GGL
D:2004-43,GGLD:en%26selm%3D6c7eb516.0311270224.409a5ff3%2 540posting.google.c
om%26rnum%3D1

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #3
Hi,

I would like to know if creating a manifest file resolved the problem? Is
there anything I can help?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #4
I have to create two manifests, one for my application and one for
IEExec.exe. Manifest for IEExec.exe is neccessary to support xp stlyle for
no-click applications. Do you know what causes the SEHException?, this
happens usually when i close other forms. We catcah every single exceptions
and when this is thrown, the applciation simply terminates. If i know what
causes this then I might be able to work around it and I could use
Application.enableVisualStyles() and
Application.DoEvents(). So i dont need to use use two manifests. Please let
me know. thanks.

"Kevin Yu [MSFT]" wrote:
Hi,

I would like to know if creating a manifest file resolved the problem? Is
there anything I can help?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #5
You're welcome. Thanks for sharing your experience with all the people
here. If you have any questions, please feel free to post them in the
community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #6

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

Similar topics

1
by: banaticus | last post by:
What does this error message mean? What can I do to fix it? Here'e the command that I just tried running, and the messages that I received. I just barely unpacked python. linux:/Python-2.4 #...
2
by: Zack | last post by:
Hi, I am an access newbie and wanted to get a design check to see if I have done the right thing or if there is a better way. I don't like the Yes/No field option in a table. I want to have the...
9
by: Colin McGuire | last post by:
Hi, I have an report in Microsoft Access and it displays everything in the table. One column called "DECISION" in the table has either 1,2, or 3 in it. On my report it displays 1, 2, or 3. I want...
10
by: MLH | last post by:
I have an A97 table with a Yes/No field named TowJob and a form bound to that table. The TowJob control on the form is bound to the same field. It is an option group with Yes and No bttns valued...
3
by: Stevie_mac | last post by:
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the ASPX (inside the iFrame) is clicked but then...
18
by: siddharthkhare | last post by:
Hi All, what is the diference between these two cache control header. no-cache and no-store. I have read the w3.org explanation. So lets say I am using only no-cache ....my understanding is...
3
by: Rahul B | last post by:
Hi, I have a user UCLDEV1 which is a part of staff and a group(db2schemagrp1) to which i have not given any permissions. The authorizations of that user are shown as db2 =get authorizations...
0
natalie99
by: natalie99 | last post by:
Hey people! Being so lacking in access knowhow I have turned to good old 'asking the smart people' again! I need to create a query or lookup table (although I have had zero success with lookups...
2
Parul Bagadia
by: Parul Bagadia | last post by:
I have written a code for deleting certain value from linklist; it's not working; where as i have written one for deleting a no., after given no. which works fine! I even debugged it; but invain;...
1
by: sora | last post by:
Hi, I've developed a MFC program under VS 6.0. My debugger *was* working fine and I've used it often for my project. Then, one day, the errors below appear and they prevent me from using the...
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
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,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.