Hello,
Environment VP 7.4 Commercial Edition.
I am trying to access an specific URL www.abc.com from within a dialog box when someone clicks on the cancel button. I am using the following code inside the program :
A button is a user interface element that can basically receive clicks, to "access a URL" you will need something that can do that.
It is however not clear what you mean by "access a URL". Should it open in an external browser or do you which to load it somewhere in your dialog, or what?
All I want to open the website in an external browser, once the button is clicked.
Or alternatively if it makes it easier, I would like to put a URL link in my dialog box such that once someone clicks on that to open that website in an external browser.
I was able to find the webBrowser code in the example section that deals with the URLs.
Apparently opening a URL in an external browser is achieved through the webBrowserControl type control( which is not an standard Control) on the Form. But I cannot figure out how to include such a control on a Form.
If you want to open an URL in an independent browser, which your program should not otherwise control or interact with, then you should use call shell_api::shellOpen with the URL.
But if you want to open it in a separate browser that your program control, then you should use the internetExplorer class.
And finally if you want to have a web browser embedded directly in your own dialog then you should use the webBrowser control.