How do I create an edit box so that when I hit it with the cursor still? Then goes to the website in the web browser that was in the edit box?
Can anyone help me?
You OnKeyDown instead of
OnKeyPress event Should use:
process TForm1.Edit1KeyPress (Sender: tobjject; var key: four); If ord (key) = VK_RETURN starts, start key: = # 0; // Stop WebBrowser1 Navigating (edit.1 text); End; End;
Comments
Post a Comment