[Question] ComboBox/TextBox menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    Henessy's Avatar Contributor
    Reputation
    104
    Join Date
    Sep 2008
    Posts
    1,284
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] ComboBox/TextBox

    If I have a WebBrowser (WebBrowser1), and I have a Button (Button1), and either a TextBox or ComboBox... well I can't really explain but here's what is going down.

    BUTTON = WebBrowser1.Navigate(ComboBox1.whatevericantrememberightnow)
    OR
    WebBrowse1.Navigate(TextBox1.Text)

    How would I make it so that every time the WebBrowser changed the URL, the TextBox or ComboBox would display the site as it's default text? like any other web-browser.

    [Question] ComboBox/TextBox
  2. #2
    The Maffyx's Avatar Contributor

    Reputation
    249
    Join Date
    Feb 2007
    Posts
    1,186
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Trying to figure it out now, I think I know what you want, trying to find the right syntax for it.


  3. #3
    Henessy's Avatar Contributor
    Reputation
    104
    Join Date
    Sep 2008
    Posts
    1,284
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ty (:
    (Fillers)

  4. #4
    The Maffyx's Avatar Contributor

    Reputation
    249
    Join Date
    Feb 2007
    Posts
    1,186
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok here it is:
    Code:
     Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
            TextBox1.Text = WebBrowser1.Url.ToString
        End Sub
    Of course you can change the names to match yours, but every time you change sites the text box should change when that page finishes loading.


  5. #5
    maclone's Avatar / Authenticator enabled
    Reputation
    2420
    Join Date
    Nov 2007
    Posts
    8,726
    Thanks G/R
    0/1029
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Don't use 'DocumentCompleted', use 'Navigating'
    Zomfg. And no, don't ask. - Dombo did it.

  6. #6
    The Maffyx's Avatar Contributor

    Reputation
    249
    Join Date
    Feb 2007
    Posts
    1,186
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by maclone View Post
    Don't use 'DocumentCompleted', use 'Navigating'
    Suppose that works too, I haven't coded in a while so I found that by chance.


  7. #7
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    DocumentCompleted fires when the page is loaded. Navigating fires whilst it's loading the page. Use whichever is more appropriate.

Similar Threads

  1. [Question] Textbox info [Solved]!
    By Jonthe838 in forum Programming
    Replies: 0
    Last Post: 02-22-2009, 04:41 AM
  2. Model Changing Question
    By MasterYuke in forum World of Warcraft General
    Replies: 6
    Last Post: 09-17-2006, 09:56 PM
  3. Sorry..newb mail question
    By nolbishop in forum World of Warcraft General
    Replies: 2
    Last Post: 06-07-2006, 07:21 PM
  4. Question..
    By janzi9 in forum Community Chat
    Replies: 3
    Last Post: 04-02-2006, 10:20 AM
  5. A GALB question
    By bassman in forum World of Warcraft General
    Replies: 4
    Last Post: 03-28-2006, 09:49 AM
All times are GMT -5. The time now is 10:52 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search