Andrew's Blog

Random musings in code

  • Andrew's Blog

    Common Issue: Security Exceptions

    • 1 Comments
    If you are hosting a control in the browser and have given it elevated permissions (we will use FullTrust for this example) you might notice that you are still getting security exceptions when you try to call protected APIs. Here's what is going on...
  • Andrew's Blog

    Strong names for controls in the browser

    • 6 Comments
    If you have a control hosted in the browser and you try to strong name it, you may find that it stops working. Looking at the IEHostLog ( http://blogs.msdn.com/andrewdownum/archive/2006/02/10/Using_DebugIEHost.aspx ) you might see something like this...
  • Andrew's Blog

    Diagnosing Control in browser issues

    • 2 Comments
    Controls hosted in the browser can often be difficult to debug. If anything goes wrong with loading the dll or constructing the control instance, you will get nothing but the standard IE "something is wrong" image (the small icon in the top-left with...
  • Andrew's Blog

    Exposing Events from managed controls

    • 3 Comments
    Earlier we talked about adding properties and methods to a managed control so that the page hosting the control can interact directly with the managed control programmatically. This time we will add events which is a little bit more difficult. To really...
  • Andrew's Blog

    Properties and Methods

    • 0 Comments
    Now that we have a simple control hosted in the WebBrowser, it would be nice to be able to interact with it from the page. Using JavaScript, we can call methods on the managed control, and also get/set properties (which are essentially just method calls...
  • Andrew's Blog

    Windows Forms Control In Browser scenario (introduction)

    • 4 Comments
    Recently I have been hearing from more and more people who are embedding Windows Forms controls into webpages and I thought that I would put together a series of blog posts on this technique. Since the original release of .NET Windows Forms has supported...
  • Andrew's Blog

    Finalization revisited

    • 11 Comments
    Last time ( http://blogs.msdn.com/andrewdownum/archive/2004/12/13/282135.aspx ) I talked about the consumer side of the dispose pattern (i.e. how to correctly use an object which supports the IDisposable pattern to ensure that its non-memory resources...
  • Andrew's Blog

    Dispose revisited

    • 156 Comments
    I know that everyone and their uncle has blogged about their Dispose pattern flavor of the week, but I feel the need to add my 2 cents to the discussion. I’d like to start with Andrew’s Cardinal Rule of Disposable objects. “If your object has a Dispose...
  • Andrew's Blog

    Hello, World

    • 12 Comments
    As is customary in the world of computers, I had to start with a Hello World. Linked is a collection of Hello World programs written in a variety of languages http://en.wikipedia.org/wiki/Hello_world_program Here's a simple example of what you could do...
Page 1 of 1 (9 items)