Force System.Windows.Forms.WebBrowser open in standard mode - window

I'm developing a client windows form application. the application must browse URLs provided by servers in a System.Windows.Forms.WebBrowser control.
The problem is when Navigating Document Mode is set to Quirks and a "Http Status 403" is shown instead of the requested Page.
How to force webBrowser to open in standard mode without changing the registry?

Have you tried setting the FEATURE_BROWSER_EMULATION feature control got your application's executable filename?
Remember that the default values for a number of feature controls vary between IE and applications hosting the webbrowser control. If you see different behavior when rendering the same content, it's possible that a feature control needs to be adjusted.
Hope this helps...
-- Lance

Related

AEM 6.2 How to switch from classic UI to Touch

How can we switch from classic UI to Touch UI in AEM 6.2. I see documentation to switch from touch ui to classic but not other way round.
Site Wide
In system console (http://localhost:4502/system/console/configMgr) there is an OSGi configuration for WCM Authoring UI Mode Service. You can change the property of Default authoring UI mode to TOUCH.
Per User
Login as the user, navigate to Projects (http://localhost:4502/projects.html/content/projects), select the user icon in the top right hand corner, select the settings icon, ensure that Authoring Mode has Touch-Optimized selected.
Other Items
You should also ensure the OSGi config for Day CQ Root Mapping has the property Target Path set to /projects.html
Here is a short cut to switch between the two UI modes:
Open any page from Site Admin by default it will load in Touch UI Mode. The URL will be say http://localhost:4502/cf#/content/test.html. Now to switch to classic UI you would write http://localhost:4502/editor.html/content/test.html. Replace 'cf#' in the URL with 'editor.html'.
Three methods to do so are:-
[User Level]
[Global Level]Go to:-http://localhost:4502/system/console/configMgr
and choose WCM Authoring UI Mode Service
using cf# or editor.html
If your site is :- http://localhost:4502/content/geometrixx-outdoors/en.html
then
Classic UI :- http://localhost:4502/cf#/content/geometrixx-outdoors/en.html
Touch UI :- http://localhost:4502/editor.html/content/geometrixx-outdoors/en.html
Reference Adobe AEM Community posts:-
Link:-http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__isbp-hi_i_want_toope.html
Link:-http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__7rmk-i_was_askedtoconfi.html
I hope this will help you.
Thanks and Regards
Kautuk Sahni
Unfortunately, Classic UI has been more or less abandoned since 6.1 and won't likely be updated anymore as Adobe is trying to move away from ExtJS.
That said what you could do is add a custom button to the sidekick that would navigate to the TouchUI, which would involves adding the editor.html at the root of the URL of the page (and removing the #cf if it's there)
You can follow this link that gives an example on how to add a new function to the Classic UI sidekick.
https://helpx.adobe.com/experience-manager/using/creating-touchui-component1.html
Nate Yolles has produced a Chrome Extension that allows switching between modes amongst other things
https://chrome.google.com/webstore/detail/aem-developer/hgjhcngmldfpgpakbnffnbnmcmohfmfc?utm_source=chrome-app-launcher-info-dialog

The control Type is hidden - Coded Ui

While trying to automate an web application using Coded UI, I faced the following issue :-
"Failed to perform Action on hidden control exception: Cannot perform 'Set property of text with value "Muj*****" on the hidden control'.
Version used:-
Microsoft Visual Studio Ultimate 2012//
Version:11.0.50727.1
Microsoft .NET Framework
Version:4.5.50709
IE Version used:11.0
This is a internet banking application. Once I launch the browser with the application URL, I will be able to view the page in two languages. One in Arabic (default) and there is a Hyperlink to change the preferred language to English. So once I click on the hyper link and try to pass the Username and password to the respective fields, I get the above mentioned error. But without changing the language to English, the credentials are passed successfully. Again once I enter into the next page, I face the above mentioned issue to control the objects.
I assume that once we navigate from one page to the other, we face this issue.
Got to know this could be due to One Security update in IE (KB2870699). But this security update is not installed in my PC. Instead (KB3003057) is installed. I am not sure if this could be a reason for this issue. Just mentioning this here.
Kindly provide me a solution on how can I proceed.

Creating options page for BHO

I am creating an IE browser extension using BHO,
I would like to create an option page like the on chrome or firefox.
I want this page to be accessible using manage add-ons page like it works in chrome and firefox. Is it possible? how do I do that?
I am using visual studio ATL and c++
Your Best Best is adding Context Menu or Tools Menu Item.
Basically There is no Standard IE Options Dialog that you can merge your stuff into.
you are gone have to have your own dialog.
as a warning starting with IE10 and IE11. your IE-Addons (BHO,Menu,Toolbar,DeskBank) will not have any access to registry or file system.
if you need to save some stuff. you are gone have to probably create a broker process.
for instance you need to create a windows service that listen on a socket (maybe some random port) and yo you can communicate with it from your options dialog on what to save and what to read.
Inserting context Menus into IE
Inserting Menu Options

Security settings in IE that cause not loading all page components

The situation is this: site was added as trusted in IE, I'm able to open it, but not all components in a webpage are visible. The page contains multiple tabs (that use AJAX), with a tab as default. When trying to access other tabs, they appear empty (tab content doesn't load). So, always only the default tab opens with loaded content, the others don't.
What security settings in IE can cause this?
You have to enable "active scripting" and allow the browser to run safe ActiveX modules in older versions of IE. The usual work-around involves using an iframe for IE since most people will not add the domain to the trusted domain list and deal with all of IE's warnings about security being lowered (or they don't have access to those settings in their workstations because of a group policy set by IT).
After IE 6 they started using the standards approach... check out this reference from Microsoft on the XMLHTTP object.
Also you have to actually be able to call the other windows by name in your instance (since there is no main DOM-accessible listing of available windows and tabs), which means that you would need to have opened them from the initial window so you can setup the Javascript reference as a reusable variable.
var Window1 = window.open();

Winform usercontrol in WebForm

I want to display a "folderview" which I can drag and drop files into but via WebForm. I am doing this via a webbrowser control pointing at local drive. The code works in a win form user control but what I want is to embed this control in web form. This is an intranet so security etc is less of an issue. However when I add things like AllowDrop or the webbrowser control to my control it stops working - I get the image placeholder which I take to mean an error. Can anyone give me an idea what is wrong or perhaps suggest a different solution.
Hi I figured it out when you deploy a new version of your user control you need to clear the GAC download cache - gacutil /clc but I think versioning your dll may work. I don't think web browser control work at all but I may be wrong. I've managed to drag and drop msg files with Outlook Automation see http://bytes.com/groups/net-vb/527320-drag-drop-outlook-vb-net-richtextbox

Resources