Results 1 to 16 of 16

Thread: VB Question

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    9

    VB Question

    Please help, I just got VB a few days ago. However, I've gone through the in-built tutorial, and I've created my custom web-browser. I have been able to add in buttons that work and perform right, such as working forward and back buttons, refresh and stop loading buttons also work.

    However, what I cannot get done is get my status bar that I put in to actually show how far the page has loaded up. I can also not get my drop down menus to work, such as a file, edit, view, etc. Also, is it possible to set a homepage and add bookmarks, etc. to a VB made web browser?

    Thanks,

    ~Warbirds

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: VB Question

    Welcome to the Forums.

    Which VB language are you using? VB.NET or Classic VB (VB 6)?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    9

    Re: VB Question

    I have VB.Net '05.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB Question

    Moved to VB.Net forum

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    9

    Re: VB Question

    Well, SI. You could've at least helped with my problem instead of just saying you moved it...

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB Question

    No I couldn't - I don't use VB.Net! The best I could do is let the relevant people see your question.

  7. #7
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: VB Question

    Welcome to the forums.
    You should limit yourself to 1 question per thread, and use thread titles that describes the problem more.
    Progress question:
    The WebBrowser control has a ProgressChanged event you should check out.
    In the ProgressChanged subroutine you can use e.CurrentProgress and e.MaximumProgress to get the information you want.

    You need to be more specific about your menu problem. What isnt working?

    And for your final question; yes it is possible. Using either a database, or by creating a class to contain all information you need and serializing it to an XML file when it needs to be saved, and deserializing the XML file when it needs to be loaded. Search http://www.msdn.com for serialization
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  8. #8
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: VB Question

    Quote Originally Posted by Warbirds
    Well, SI. You could've at least helped with my problem instead of just saying you moved it...
    As you can see, Si is a moderator (a super moderator even!) so thats his job.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  9. #9

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    9

    Re: VB Question

    Arg. Thanks for the help, Atheist, and sorry, SI.

    I didn't make multiple threads because I don't want to spam. And about the menus, I click the button for a drop down menu, put it on the top left, and type in file, but I don't know how to add options under it, or even make them perform functions. Also, when I test it, the text vanishes from the parent box.

  10. #10
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: VB Question

    Ah, its alright to make as many threads as you want, as long as they dont contain the same question
    In designview, just click the menu to make it popup, then just click it to add new subitems. It should say "Type here".
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  11. #11

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    9

    Re: VB Question

    Damn, the tips you gave me for making the progress bar won't work, or at least, I can't get the code in right. And I don't know how to actually make the drop down menu buttons do what they are supposed to.

  12. #12
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: VB Question

    Well if you have a progressbar, just do this in the ProgressChanged subroutine:

    VB Code:
    1. ProgressBar1.Maximum = e.MaximumProgress
    2.         ProgressBar1.Value = e.CurrentProgress
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  13. #13

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    9

    Re: VB Question

    Thanks, I'll try it now.

  14. #14

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    9

    Re: VB Question

    Not to double post, but when I put that in, this is what happened:

  15. #15
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: VB Question

    Yeah thats because you didnt put it in the WebBrowsers ProgressChanged subroutine
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  16. #16

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    9

    Re: VB Question

    Atheist can you perhaps make a pic of what it should look like? I cannot get it to work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width