I use a proprietary IDE that is part of a large software package. At its core, however, C# is used as the language. Most .Net components and classes can be used. I can use it to create my own functions / WinForms, which are then integrated into an ERP system. This means that you can expand this system yourself. This is quite well implemented but there is no documentation and the support is also poor at this point. That's why I'm trying my luck here. Maybe someone can help.
I am currently programming a WinForms window that contains a WebBrowser control (wb). I'm pretty sure this is IE. I can programmatically create and include HTML code via MemoryStream (ms):
ms.Write(bytes, 0, bytes.Length);
wb.DocumentStream = ms;
It all works very well. Now I want to get events from the browser and have had the IDE create event handlers for this:
try {
wb.Click += new EventHandler(wb_Click);
...} etc.
public void wb_Click (object sender, EventArgs e)
{ }
The compiler shows no errors. During the execution I get the error message: The Click event is invalid for this ActiveX control. What could trigger this error? W. Wolf