fgnt
fgnt

Reputation:

Problem with flash in a webbrowser in a winform

I have the oddest problem (but aren't all programming problems odd?). I have a winform that contains a webbrowser object that opens a website that has flash on it. This winform is running on a touchscreen computer (I can't find the brand or model number).

Here is what I know:

Upvotes: 1

Views: 1403

Answers (2)

Prit
Prit

Reputation: 11

I also got the same problem while developing my windows application.
Create a user defined control as follows:

// CREATE A CLASS AND INHERITS TO WEBBROWSER CLASS
public partial class ucWebBrowser : WebBrowser
{
     public ucWebBrowser()
     {
        InitializeComponent();
     }

     protected override void WndProc(ref Message m)
     {
         switch (m.Msg)
         {
            case 0x021:
            case 0x201:
            case 0x204:
            case 0x207:
                base.DefWndProc(ref m);
            return;
        }
        base.WndProc(ref m);
    }
}

Now you can see this control in a Toolbox list. Now click and drag this control on to your winform instead of webbrowser control.

Upvotes: 1

Joe Solano
Joe Solano

Reputation: 285

We had a similar error and the only solution was to ensure that at least service pack 1 for .NET 2.0 was installed on the client machine.

Upvotes: 1

Related Questions