C# Browser with HTA permissions ~ JOB request ~ Earn praise & cash.

From: jOs (rocksolidrobot_at_yahoo.com)
Date: 07/19/04


Date: Mon, 19 Jul 2004 11:20:17 +1000

Attention all coders,

I have posted a job on rentacoder. It is on topic for this newsgroup.
If any of you are able to do it, you might as well log on and get paid.

Thanks for considering this work request, I am willing to pay for work
done and would like to hear from people who can do it.

rocksolidrobot@yahoo.com
Joshua Donnelly
Brisbane Australia

Here is the link:
http://www.rentacoder.com/RentACoder/misc/BidRequests/ShowBidRequest.asp?lng
BidRequestId=173059

to stay on the same page, here is the text from the above page, that
describes the task...

JOB: Adjust security for C# App hosting WebBrowser

I have used the code from Chapter 8 of Ted Faison's book "Component-based
Development with Visual C#" and now have a .NET Windows Forms WebBrowser
Written in C#.

Here is a description of the App so far...
1. The C# App returns properties, methods, and strings to the html pages via
window.external.somemethod("etc")
2. 100% of the useable Form area displays the WebBrowser control
3. Graphical User Interface will be done using html pages+script

There are 3 tasks that need to be done...
1. Lower the Security setting to the Level of a HyperText Application (HTA)
so that we don't get any more "An ActiveX control on this page might be
unsafe to interact with other parts of the page. Do you want to allow this
interaction?" pop-ups.

2. Suppress Script Errors and log the Time, FileName, LineNumber, and Error
Message to an xml file.

3. Helper functions/references to marshal the Custom method return values
into JScript types. Make it so C# can send all the different kinds of
JScript objects :: Arrays, Automation, XML docs, Dates, Objects (strings,
Booleans, numbers already work) via:
window.external.myCustomCSharpMethod(x,y,z)

Links for this project:
email me for a zip conatining the C# App.

The code base for this project was obtained from:
http://www.faisoncomputing.com/samples/programming_samples.htm
http://www.faisoncomputing.com/samples/CSharp/MyCustomWebBrowser_3.zip

The topic for this project is "WebBrowser Customization". I have not yet
found a working C# implementation of URL Security Zones,
IInternetHostSecurityManager, GetOverrideKeyPath, or what ever it is, that
allows ActiveX alerts, and script Error Dialogs to be turned off.

Newsgroup searches suggest that several people have found a way to do it,
but they've gone incommunicado. If there is a more inclusive, or concise
code base than Ted's that meets the requirements then I would be happy to
switch over and move on with the many other (more interesting) things that
need to be added.



Relevant Pages

  • C# Browser with HTA permissions ~ JOB request ~ Earn praise & cash.
    ... It is on topic for this newsgroup. ... Here is a description of the App so far... ... Suppress Script Errors and log the Time, FileName, LineNumber, and Error ... The code base for this project was obtained from: ...
    (microsoft.public.dotnet.languages.csharp)
  • C# Browser with HTA permissions ~ JOB request ~ Earn praise & cash.
    ... It is on topic for this newsgroup. ... Here is a description of the App so far... ... Suppress Script Errors and log the Time, FileName, LineNumber, and Error ... The code base for this project was obtained from: ...
    (microsoft.public.dotnet.framework.interop)
  • RE: C# Browser with HTA permissions ~ JOB request ~ Earn praise & cash
    ... It is on topic for this newsgroup. ... > Here is a description of the App so far... ... Suppress Script Errors and log the Time, FileName, LineNumber, and Error ... > code base than Ted's that meets the requirements then I would be happy to ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: C# Browser with HTA permissions ~ JOB request ~ Earn praise & cash
    ... It is on topic for this newsgroup. ... > Here is a description of the App so far... ... Suppress Script Errors and log the Time, FileName, LineNumber, and Error ... > code base than Ted's that meets the requirements then I would be happy to ...
    (microsoft.public.dotnet.framework.interop)
  • RE: C# Browser with HTA permissions ~ JOB request ~ Earn praise & cash
    ... It is on topic for this newsgroup. ... > Here is a description of the App so far... ... Suppress Script Errors and log the Time, FileName, LineNumber, and Error ... > code base than Ted's that meets the requirements then I would be happy to ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)