Blog Home  Home RSS 2.0 Atom 1.0 CDF  
Hairy Spider Blog - Downloads
A web of intrigue
 
 Friday, February 24, 2006
Well I've finally got round to producing the inline CSS editor that I wanted to do in the first place. The first stab, was in C++ and although it worked, it was a complete nightmare. It didn't allow you to alter CSS files that were loaded as "@import". This new version does, it parses the CSS and adds each individual rule back to the style sheet. Simply replacing the CSSText caused a memory corruption error in MSHTML.

It's been re-written it in C# using Pavel Zolnikov's BandObjects. I've also added a few extras such as a DOM Explorer and the ability to add plugins to the band object.

While it's been writting in C# 2.0 there's not much use of the new version 2 features. Mind I was most satisfied with my first foray into using generics. I didn't think that there'd be much use for them but I did find a use, albeit slightly contrived.

So you want to see the screen shot?



OK, so now you like the look of it, you want to know how to get it and play with it?

I really wanted to deploy this as with the proper installer however, C# Express doesn't include that so you going to have to install the file manually:

First of all download DOM Helper.

Extract the files in that archive to a location on your harddrive that you can remember (e.g. c:\DOMHelper\).

Next you'll need to regasm the assembly open a cmd shell ( Start -> Run -> cmd) and type:

"%windir%/Microsoft.Net/Framework/v2.0.50727/regasm" /codebase c:\DOMHelper\DOMHelper.dll

This should have registered the assembly, and the next time you open Internet Explorer you will be able to view DOM Helper by choosing it from View -> Explorer Bars -> DOM Helper.

If for any reason you don't like it to uninstall run the following command

"%windir%/Microsoft.Net/Framework/v2.0.50727/regasm" /u c:\DOMHelper\DOMHelper.dll


Thanks to www.famfamfam.com/lab/icons/silk/ for the icons

If you want to know more, then please let me know.

2/24/2006 2:32:05 PM (GMT Standard Time, UTC+00:00)  #      c-sharp | DOM Helper | Downloads | Inline CSS Editor  | 
 Wednesday, August 31, 2005

BrowserLauncher is a small windows forms application which acts as an intermediary between launching a url and the web browser.

My default browser these days is Firefox, but a number of sites that I access frequently Firefox can not handle. This isn't because Firefox is broken, it's just that the sites are written particularly badly. Also there are a number of sites which I want launched in their own browser.

So I wrote BrowserLauncher. When this runs it registers itself as the default browser through manipulating the StartMenuInternet registry key - it then adds itself to the HKCR\http key. The next time you launch a URL from the desktop, start bar or ShellExecute - the details are passed to BrowserLauncher. BrowserLauncher will search its list of browser entries and launch the URL with the specified browser.

Additionally I've added some DropMyRights code that allows you to launch the browser with 3 levels of privilege, therefore allowing IE to run in Normal or Constrained mode.

Please note:

  • This software works for me, it may not work for you, if you have a bug please let me know and I'll endeavour to fix it.
  • The software will try to manipulate some registry keys.

8/31/2005 9:57:23 AM (GMT Daylight Time, UTC+01:00)  #      .net | BrowserLauncher | c-sharp | Downloads | Source Code  | 
Copyright © 2008 Rhys Jeremiah. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: