| |

VerySource

 Forgot password?
 Register
Search
View: 625|Reply: 3

How to get the homepage address (C #) in internet options?

[Copy link]

2

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-1-19 01:20:02
| Show all posts |Read mode
Recently set up a browser using C #

When I click the home button, the homepage is displayed normally, but the homepage URL is not displayed in address.text. What I think is that there should be a way to get the URL in the homepage address in the internet option and then pass it to my adress. In text, my homepage URL can be displayed in my address bar.

It ’s more detailed ~~ Thank you all ~
Reply

Use magic Report

0

Threads

119

Posts

67.00

Credits

Newbie

Rank: 1

Credits
67.00

 China

Post time: 2020-1-26 21:09:01
| Show all posts
Establish a delegation:
   _axWebBrowser.ProgressChange + = new
                AxSHDocVw.DWebBrowserEvents2_ProgressChangeEventHandler (
                this.mainBrowser_ProgressChange);
Reprocessing:
     private void mainBrowser_ProgressChange (object sender, AxSHDocVw.DWebBrowserEvents2_ProgressChangeEvent e)
        {// Handle progress bar events
            AxSHDocVw.AxWebBrowser axWebBrowser1 = (AxSHDocVw.AxWebBrowser) sender;
            HE_WebBrowserTag _HE_WebBrowserTag = (HE_WebBrowserTag) axWebBrowser1.Tag;

            // If the current page does not match the current webbrowser, then discard it
            if (_HE_WebBrowserTag._TabIndex! = this.MainTabCtrl.SelectedIndex) {return;}

            processBar.Visible = true;
            if ((e.progress> 0)&&(e.progressMax> 0))
            {
                processBar.Maximum = e.progressMax;
                processBar.Step = e.progress;
                processBar.PerformStep ();
            }
            else if (axWebBrowser1.ReadyState == SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE)
            {
                processBar.Value = 0;
                processBar.Visible = false;
            }
        }
Reply

Use magic Report

0

Threads

119

Posts

67.00

Credits

Newbie

Rank: 1

Credits
67.00

 China

Post time: 2020-1-26 23:54:01
| Show all posts
Sorry, it was wrong!
Read the registry:
HKEY_USERS\S-1-5 ........\Software\Microsoft\Internet Explorer\Main\Start Page

You can search the registry Start Page
Reply

Use magic Report

2

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-2-12 15:45:01
| Show all posts
Oh, maybe I have some ideas.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list