Re: Context Menu for Embedded WebBRowser

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I don't remember how the WebBrowser control works. Doesn't it have some
means of notifying the application of various things? I'm not a Pocket PC
programmer, so I just embed the Internet Explorer ActiveX control in my
code, when I need a browser, and it tells me all kinds of things about
what's going on, most of them useless. The WebBrowser wrapping was designed
as a much simpler Web browser interface, so maybe it doesn't tell you that.
I can't think of any way, other than what you've already tried (you've tried
this with PIE, right? Making sure that you're trapping messages for all
windows up the stack from the immediate parent of the browser window?), to
figure out what else it might be doing; you don't get WebBrowser source
code...

Paul T.

"Neil D" <neilSP@xxxxxxxxxxxxxx> wrote in message
news:OsD7h8DAGHA.2156@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Paul
>
> I've looked into remote spy but can't seem to pick-up any messages when I
> click on the context menu. I know I need to control the full-screen at
> the application level and can do that, but once it's in full screen then
> the context menu is the standard way to return to normal but if I don't
> get to see the event then I can't do anything about it. An alternative
> (not ideal) would be to remove the full screen functionality but I don;t
> seem to have control over the context menu either to modify it or remove
> it. Without a soultion to this it makes the application look a little
> unprofessional to have a context menu item that doesn't actually do
> anything.
>
> I find it hard to believe that this issue hasn;t been discovered by
> Microsoft so surely there is a solution.
>
> Cheers
>
> Neil
>
>
> "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
> wrote in message news:e9PUZVz$FHA.1600@xxxxxxxxxxxxxxxxxxxxxxx
>> Full screen support has to be implemented at the application level. I
>> have not done much with the IE on PPC, but it seems like it might simply
>> be sending a message to its parent window. How about using Remote Spy++
>> and seeing what messages are sent when you choose that menu item?
>>
>> Paul T.
>>
>> "Neil D" <neilSP@xxxxxxxxxxxxxx> wrote in message
>> news:OcIoYvS$FHA.3660@xxxxxxxxxxxxxxxxxxxxxxx
>>> Hi
>>>
>>> I'm using WM5.0, CF2.0 and have an embedded webbrowser control on a
>>> form. The problem is that the fullscreen menu item from the context menu
>>> doesn't work. Is there a way to capture the context menu events and
>>> implement this or alternatively a way to remove the Full Screen entry
>>> from the menu. Full Screen support would be prefereable.
>>>
>>> On the subject of the embedded webbrowser is it also possible to mimic
>>> the full PIE functionality for the View and Zoom menus?
>>>
>>> Cheers
>>>
>>> Neil
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: Button list control
    ... > When you use page controls, different context menus may apply to every ... > of the actually displayed archive, not on the container control. ... "DisplayProperties" action is enabled, and the selected transaction, ...
    (comp.lang.pascal.delphi.misc)
  • RE: Printing HTML from Window Forms
    ... private static extern IntPtr SendMessageTimeout(IntPtr hWnd, uint Msg, ... control) is not up to the task of printing reliably from a Windows Forms. ... Maybe you could suggest to the team in charge of WebBrowser that they should ... add a bit more functionality to the managed control so that you can specify a ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: raising Page event with customs webcontrol
    ... Context, which would be raised when there's no associated http context e.g ... inside a control you can get to the HttpContext yourself via ... > through the registering of the control to raise events and place a public ... > and they will have Page level scope context. ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: TypeConverter Question
    ... >> have a property whose type is Control. ... >> public override bool GetStandardValuesSupported(ITypeDescriptorContext ... >> context) ... >> public override object ConvertFrom(ITypeDescriptorContext context, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Adding menu items to a controls context menu
    ... and a sub-classed "control" that each possess the correct interfaces for ... contributes their own items to the context menu. ... Each component contributing menu items defines a "rank" for ... and the parent form also has a set of context menu items. ...
    (microsoft.public.dotnet.languages.csharp)