xp styles in Visual Studio 2005 Outlook add-in

J

Joe

hi all

i have a problem with the themes in my add-in which is developed using
Visual Studio 2005.. its does not take the default xp themes at
runtime.. at design time it looks perfect.. i had gone thru Ken's old
post and i put a manifest in the folder where Outlook.exe is placed..
and it works fine.. .. but my question is .. how do i deploy it in the
client machines.. ?? how do i access that location to put the file ???
wat is the recommented practice for the same ??? i ve tried this ..
http://msdn.microsoft.com/vstudio/tour/vs2005_guided_tour/VS2005pro/S...
.... but no joy..
by default winforms 2.0 comes with xp theme support but in my addins it
doesnot work !!!

please do reply

Joe
 
X

XL-Dennis

Joe,

I'm not an Outlook specialist like Ken et al however I would like to see if
the following approach is in You case workable or not.

Add the following snippet (VB.NET) code to the OnConnection event:

System.Windows.Forms.Application.EnableVisualStyles()
System.Windows.Forms.Application.DoEvents()

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
 
K

Ken Slovak - [MVP - Outlook]

Answered in your post in microsoft.public.developer.outlook.addins. Please
do not multipost.

As Dennis recommended, use EnableVisualStyles(), but only if using Framework
2.0. It doesn't work very well in earlier Framework versions.
 
J

Joe

hi Ken

thanks for the code ... n bye the way sorry for the multi-post..

i m using .net framework 2.0 and the code u gave me works fine only in
my development machine..
and in the client machines it just shows the flat old style..

again is this a case of missing reference here lik in my last post...
:)

do i need some reference..

regards

Joe

Answered in your post in microsoft.public.developer.outlook.addins. Please
do not multipost.

As Dennis recommended, use EnableVisualStyles(), but only if using Framework
2.0. It doesn't work very well in earlier Framework versions.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm

Joe said:
i have a problem with the themes in my add-in which is developed using
Visual Studio 2005.. its does not take the default xp themes at
runtime.. at design time it looks perfect.. i had gone thru Ken's old
post and i put a manifest in the folder where Outlook.exe is placed..
and it works fine.. .. but my question is .. how do i deploy it in the
client machines.. ?? how do i access that location to put the file ???
wat is the recommented practice for the same ??? i ve tried this ..
http://msdn.microsoft.com/vstudio/tour/vs2005_guided_tour/VS2005pro/S...
... but no joy..
by default winforms 2.0 comes with xp theme support but in my addins it
doesnot work !!!
please do reply
 
J

Joe

hey i got it fixed up !! thanks !! it was a problem with only one
machine where in i reinstalled .netframwork .. now things look so
lively ..

thanks one again.

Joe

No idea, the target machines do have Framework 2.0 installed?

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm

Joe said:
thanks for the code ... n bye the way sorry for the multi-post..
i m using .net framework 2.0 and the code u gave me works fine only in
my development machine..
and in the client machines it just shows the flat old style..
again is this a case of missing reference here lik in my last post...
:)
do i need some reference..

Joe
 

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