'Disabling' a WebBrowser Control 
Author Message
 'Disabling' a WebBrowser Control

I have a WebBrowser control in my application, and I would like to know if
there is any solution for this:

What I really want is something that simulates the 'enabled' property of the
text boxes: the user can see it contents, but not change them. With one
exception: the user must be able to scroll the document...

What I have already tried...
  - cancel user clicks... didn't work
  - put an invisible control in front of the WebBrowser control.. did't find
any that really is in front... for example, the text box always keeps in th
back...

Any other sugestions?

Thanks in advance...

Alberto Silva



Sun, 06 May 2001 03:00:00 GMT  
 'Disabling' a WebBrowser Control
I found a way... using the onmousedown of the document object and setting
the focus to another control in the form.

But if someone finds another way, they are welcome to tell us!

Alberto Silva

Quote:

>I have a WebBrowser control in my application, and I would like to know if
>there is any solution for this:



Sun, 06 May 2001 03:00:00 GMT  
 'Disabling' a WebBrowser Control
What you can do, is placing your WebBrowser control into a PictureBox, and
disabling that PictureBox.
The problem is that the user cannot scroll down, because the scroll-bars are
disabled too.

I dont know if this is what you're looking for...

Pieter Philippaerts,
http://users.turboline.be/btl10148/


Quote:
>I have a WebBrowser control in my application, and I would like to know if
>there is any solution for this:

>What I really want is something that simulates the 'enabled' property of
the
>text boxes: the user can see it contents, but not change them. With one
>exception: the user must be able to scroll the document...

>What I have already tried...
>  - cancel user clicks... didn't work
>  - put an invisible control in front of the WebBrowser control.. did't
find
>any that really is in front... for example, the text box always keeps in th
>back...

>Any other sugestions?

>Thanks in advance...

>Alberto Silva




Sun, 06 May 2001 03:00:00 GMT  
 'Disabling' a WebBrowser Control


Fri, 19 Jun 1992 00:00:00 GMT  
 'Disabling' a WebBrowser Control
Don't ask me why but the "enabled" property in VB has become the "disabled"
property in the Document Object Model (I assume similar logic which turned
<collection>.Count into <collection>.length !).

Given a Project/References to the "Microsoft HTML Object Library"
(mshtml.dll)", your text box (single-line) is of type "HTMLInputTextElement"
and has this "disabled" property as a boolean.

Barry Evans
Canberra, Australia
---------------------------

I have a WebBrowser control in my application, and I would like to know if
there is any solution for this:

What I really want is something that simulates the 'enabled' property of the
text boxes: the user can see it contents, but not change them. With one
exception: the user must be able to scroll the document...

What I have already tried...
  - cancel user clicks... didn't work
  - put an invisible control in front of the WebBrowser control.. did't find
any that really is in front... for example, the text box always keeps in th
back...

Any other sugestions?

Thanks in advance...

Alberto Silva



Mon, 07 May 2001 03:00:00 GMT  
 'Disabling' a WebBrowser Control


Fri, 19 Jun 1992 00:00:00 GMT  
 'Disabling' a WebBrowser Control

Quote:

>I have a WebBrowser control in my application, and I would like to know if
>there is any solution for this:

>What I really want is something that simulates the 'enabled' property of
the
>text boxes: the user can see it contents, but not change them. With one
>exception: the user must be able to scroll the document...

>What I have already tried...
>  - cancel user clicks... didn't work
>  - put an invisible control in front of the WebBrowser control.. did't
find
>any that really is in front... for example, the text box always keeps in th
>back...

>Any other sugestions?

>Thanks in advance...

>Alberto Silva

>Albert,

Why not use a text box as you suggest? Set KeyAscii=0 in Keypress event and
KeyCode=0 KeyUp and KeyDown events. Users can then view text in text box but
can't change it.

Dave



Tue, 08 May 2001 03:00:00 GMT  
 'Disabling' a WebBrowser Control


Fri, 19 Jun 1992 00:00:00 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. 'Disabling' a WebBrowser Control

2. IDocHostUIHandler , disable 'show pictures' in WebBrowser

3. !!!! Disable 'Control - L' Key Press in WebBrowser Control !!!!

4. !!!! Disable 'Control - L' Key Press in WebBrowser Control !!!!

5. 'Enable / Disable' macro message

6. Disable 'Back buttoning' from site

7. Form Resize disable 'Drag box'

8. how to : Disable 'Start' button

9. Document's HTML source with WebBrowser control?

10. Can't find tag in WebBrowser Control

11. Document's HTML source with WebBrowser control?

12. IE3 doesn't work after working with webbrowser control

 

 
Powered by phpBB® Forum Software