Avoiding drag and drop from embedded Web Browser - windows

I have written a Win32 sample, in this sample I have added web Browser control. It is working fine.
I launch the application with web page having some images. Here I can drag the images on to the desktop.
One of the requirements says that application should not allow drag and drop feature.
Please let me know how to disable this feature.

Related

Drag and drop local file in browser with Robot Framework

I have a web application with some place holders for photos. The only possibility to move a picture in a placeholder is to do a drag and drop from the filesystem. That means to open a Windows explorer and do a drag and drop of a photo from there into my Firefox browser.
I have already included the AutoIt-library in my Robot Framework. But I do not find any way, how I could test this drag and drop scenario.
Can anyone help me?
According to my knowledge, It is not possible to drag and drop files from your local. While you are executing script your web driver scope will be up to web page which is displayed to you.
Try something else by using javascript executor. It may be useful for your scenario.

web browser engine to embed in win32 program

I need to put in simple Win32 program kind of ability to view web pages. It must be just window with page in it, no browser adress bars or other elements, just working web page in win32 window without any standart browser elements.
It seems that i need some kind of project, that gives me some way to embed chromium engine (chromium most likely) in to win32 api, and, obviously, give the full controls over the messages and other stuff that going to that "browser" window. I was looking at CEF project http://code.google.com/p/chromiumembedded/ , but will it fit, or any other suggestions?
My (unfortunate) suggestion is to use IWebBrowser2 if you just want to use the Internet Explorer control.
Example can be seen here:
http://www.codeproject.com/Articles/16559/Launch-and-control-MSIE-using-IWebBrowser2

Clickable banner image in WiX dialog

I would like to put an image banner on one of my WiX dialogs that when clicked opens a web page for our product support, in case users have trouble with the installation. I think I know how to open the web page but the problem is registering the click event. Is there a way to do this?
From my own attempts I've concluded that a "bitmap" type control won't let you detect clicks. Do I have any other options, like making a pushbutton with a picture on it and hiding the borders so it looks good? I've not been successful with this.
I'm using WiX 3.5.
I think you can't do what you want with internal MSI UI for which WiX provides interface.
You can create a button with image on it but you can't hide the borders of the button.
Starting from Windows Installer 4.5, there's ability to include custom UI elements, see Using an Embedded UI for reference. Another option is using External UI, where you develop UI as a regular application and handle notification messages from MSI.

window application to webapplication

In my window application when I login I open a new window there I want to display the webapplication that is like xxx.aspx in the same window. How can i write the code in window?
I think you are looking for
WebBrowser Class
Enables the user to navigate Web pages
inside your form.
The WebBrowser control lets you host
Web pages and other browser-enabled
documents in your Windows Forms
applications. You can use the
WebBrowser control, for example, to
provide integrated HTML-based user
assistance or Web browsing
capabilities in your application.
Additionally, you can use the
WebBrowser control to add your
existing Web-based controls to your
Windows Forms client applications.
Edit:
Add a webbrowser control from your tool box to the form in which you need to show the web page.
and you can use the Navigate method
webBrowser1.Navigate("http://www.stackoverflow.com");
See
Navigate

How do I implement a web linked button that will open inside of my iphone application (not open a link in Safari?

I have an iphone sdk application and want to tweak it.. as I've had a great idea on how I want my interface to appear.
I'm trying to create several buttons that will open a web page within my application but have failed to do so countless amounts of times now.
(I don't want the button to open a link in safari, I already know how to do this and it's not what I'm trying to achieve)
The application must not shut down in order to operate any links (i.e close down to open the link in safari as stated above.)
MORE INFO-----------------------------------
i already have the application and yes it is working and complete, however a while ago i decided that id like to change the interface on my application, but havnt been successful in doing so.
Currently i am using a webView based app which works perfectly, i have my website and another within the application (using a tab bar with two tabs within it).
Now i would like to completely re-model my app by starting from scratch..
using a uiwebview i want to place several buttons on the uiwebview page and have them as links which will direct my members to different sections of my website when pressed..
I have managed to do this but when the buttons are pressed, my application is closed and the link is then opened in safari, which is not what i want.
I would like the links to open within my application
Any ideas?

Resources