473,246 Members | 1,359 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,246 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 2679
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: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.