Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TWebBrowser copy and paste?

Status
Not open for further replies.

ug505

Programmer
Jan 2, 2010
52
US
I'm building a basic web browser but the copy and paste is not working, when I visit a web page in the program, I highlight some text and right-click then copy. I open notepad and it won't paste what I copied. Can someone help?
 
Add AciveX to your uses clause, then add the following code right before the final END. statement to your web form:
Code:
Initialization
begin
  OleInitialize(nil)
end;

Finalization
begin
  OleUninitialize
end;

end.

Roo
Delphi Rules!
 
Forgot to say one thing, I'm using Delphi 7. This code will work in Delphi 7 right?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top