Andrew's Blog

Random musings in code

  • Andrew's Blog

    Common Issue: Security Exceptions

    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

    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 ( ) you might see something like this...
  • Andrew's Blog

    Diagnosing Control in browser issues

    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

    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

    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)

    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

    Last time ( ) 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

    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

    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 Here's a simple example of what you could do...
Page 1 of 1 (9 items)