On Nov 1, 4:54 pm, Adam <spam...@wp.pl> wrote:
> Dnia Thu, 1 Nov 2007 19:06:40 +0100, Adam napisał(a):
>
>
>
> > Hello,
>
> [cut]
> > How disable context menu on WebBrowser in mobile device?
>
> I found something like this:http://tinyurl.com/38f4vc
> It works but
> --
> //instead of the normal Application.Run(new Form1); we must manually
> display
> the form
> Form1 formInstance = new Form1();
> formInstance.Visible = true;
>
> PeekMsg msg = new PeekMsg();
> while (1 == 1)
> {
> PeekMessage(out msg, formInstance.Handle, 0, 0, WM_REMOVE);
> --
>
> is crazy. Never ending loop on windows mobile?
> What about battery life?
>
> Is there any PROPER WAY?
> Is possible to set Hook on mouse? How can I do this?
Two quick comments about this.
First, I also found the context menu to be an issue and looked for
ways to disable/prevent it. Based on the answers I found, there is
simply no "proper" way of doing this. The next release may address
this oversight and provide a way to disable it. On a similar note,
the progress-bar that appear when the WebBrowser control content is
loaded may also become optional.
Second, what you've found may not be a bad solution. Your concern
about the battery life being depleted by the loop shouldn't be of
concern because that's what Windows CE/Mobile does anyway -- the
message loop.
- Jin