I am trying to use the AxShockwaveFlashObjects.AxShockwaveFlash object in a console application in C#. To do that, you have to set the obj.OcxState to something. I looked at how the Forms designer does that, and it does it this way:
this.flash.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("flash.OcxState")));
I looked in resources and there is nothing there.
My question is, how can I create an AxHost.State manually so I can set the OcxState of my flash object to it?
I see that the constructor of a State takes a Stream, int, bool, and a string. But I don't know what to put in the Stream (or the int, bool, or string) to create it.