We help IT Professionals succeed at work.

Disable Script debugging in WebBrowser.

dyancer
dyancer asked
on
Hello Expers.

i use an instance of WebBrowser to show a web page in my program. and later i try to build a new html from this page including custom info and assign it to another WebBrowser instance in order to print it.
but there are those script Run time errors.
i change the registry key "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main\Disable Script Debugger" to yes but i still get the Script error.
i believe there is a message that i should send in order to notify the WebBrowser instances about changes in the registry but don't know which exactly.

Thank u.
Comment
Watch Question

Software Developer
CERTIFIED EXPERT
Commented:
Hello

  What you wrote is write about the link in registry, but if you write put the value as "YES" it's will not working, u need to write it as small letters, this will do what u asked for

uses Registry;
procedure TForm1.Button1Click(Sender: TObject);
var
  Reg : TRegistry;
begin
  reg := TRegistry.Create;
  Reg.RootKey := HKEY_CURRENT_USER;
  Reg.OpenKey('Software\Microsoft\Internet Explorer\Main',false);
  Reg.WriteString('Disable Script Debugger','yes');
  Reg.Free;
end;

Author

Commented:
mnasman,
that's exactly what i did,
i believe that i should send a notify message that the registry changed,
I used a Registry spy utility to see what happen when i change this option with IE and i see that this is the key that changed and then i saw that all the running programs are starting to reading the registry all at once which indicate that there is a message that was BROADCASTED to all running programs.
OR NOT. i don't know for sure.



Author

Commented:
mnasman,
that's exactly what i did,
i believe that i should send a notify message that the registry changed,
I used a Registry spy utility to see what happen when i change this option with IE and i see that this is the key that changed and then i saw that all the running programs are starting to reading the registry all at once which indicate that there is a message that was BROADCASTED to all running programs.
OR NOT. i don't know for sure.



Author

Commented:
Ok guys,
lets make it more intersting...
more points added.

Author

Commented:
Any takers?
Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.

For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process.  Click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, in the event new items have been created since this listing was pulled.

http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20044312.html
http://www.experts-exchange.com/questions/Q.20096486.html
http://www.experts-exchange.com/questions/Q.20172391.html
http://www.experts-exchange.com/questions/Q.20193902.html
http://www.experts-exchange.com/questions/Q.20227603.html
http://www.experts-exchange.com/questions/Q.20235247.html
http://www.experts-exchange.com/questions/Q.20260351.html


PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  EXPERTS:  Please leave any comments regarding this question here on closing recommendations if this item remains inactive another three days.
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange


P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.
dyancer:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
kacorretired

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:
       partial point refund and a "normal" split to mnasman
Please leave any comments here within the next seven (7) days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

If you will get a useful answer to your newer question next time, please accept it after evaluating. By this way the experts will get sooner his expert points for supporting you. If you have question about, please look at  http://www.experts-exchange.com/help.jsp.

kacor
EE Cleanup Volunteer

Explore More ContentExplore courses, solutions, and other research materials related to this topic.