Creating non-rectangular windows in WPF

I have an application written for a client, that they wanted to have the look and feel of a vista application (actually wanted it to look lik media player).

To get rid of the regular windows border in XP, we set AllowsTransparency to True. This has caused us no end of grief, from slow rendering to bizarre problems with data not refreshing when windows are minimised etc.

I finally found this blog article: http://jerryclin.wordpress.com/2007/11/13/creating-non-rectangular-windows-with-interop/ that shows a way to do what we wanted without Transparency turned on.

And it was very simple to retro-fit to our app. Beaty Newk!



Posted: 5. November 2008 15:49 by Admin
Categories: WPF Tags: ,

Setting permissions to write to Event Log

I have several ASP.Net applications that write errors and login details to a specific key in the event log.

The key is created OK but the users don't have permission to write to the logs, instead the events all go to the generic Application log.

After some searching I found this article: http://forums.techarena.in/server-security/85026.htm

Which basically says to change the CustomSD DWORD value under the key with the application name and add (A;;0x0002;;;AU) - this gives permission to write to the event log for all authenticated users.



Posted: 4. November 2008 17:09 by cutty
Categories: ASP.Net Coding Hints and Tips | General IT Gear Tags: