Reputation:
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
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
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