Solved

WebBrowser Component and Copy/Paste

Posted on 2004-04-25
6
327 Views
Last Modified: 2010-04-05
Hi there,

I've placed a WebBrowser component on my form and let's say an editbox as well. When I select a text from a page loaded on my WebBrowser component and copy the selected text, I cannot paste it in to the EditBox. Is there any way for that?
0
Comment
Question by:bilgehanyildirim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10914328

I tried this, it works fine....

Right click on Browser, select copy to copy selected text to clipboard.
Right click on Edit , select paste to past selected text from clipboard to Edit Box

You maay need to do the folowing:

you could try adding the following lines to the bottom of your main unit

initialization
  OleInitialize(nil);

finalization
  OleUninitialize;


http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_10551601.html?query=TWebbrowser+Selected&searchType=topic


Shane
0
 

Author Comment

by:bilgehanyildirim
ID: 10914340
I couldn't quite understand what you mean with "you could try adding the following lines to the bottom of your main unit". Coul you please make it a little bit clear?

Thanks in advance.
0
 
LVL 11

Accepted Solution

by:
shaneholmes earned 50 total points
ID: 10914824
This is a stripped doen version with out the form declaration

you should get the idea though...

SHane

unit UntMain;

interface

implementation

initialization
  OleInitialize(nil);

finalization
  OleUninitialize;

end.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:bilgehanyildirim
ID: 10915818
Thanx!
0
 

Author Comment

by:bilgehanyildirim
ID: 10917495
I tried what you said but i came up with an error

"Undeclared Identifier : ' OleInitialize'
"Undeclared Identifier : ' OleUnInitialize'
0
 

Author Comment

by:bilgehanyildirim
ID: 10917527
Solved.. Added Activex to the USES.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question