My problem topic

Discussion in 'Programming General' started by xevenx, Aug 6, 2008.

My problem topic
  1. Unread #1 - Aug 6, 2008 at 11:32 AM
  2. xevenx
    Referrals:
    0

    xevenx Guest

    My problem topic

    I found out about the buttons... google is my friend!

    Next thing I need help to is:
    Make my webbrowser to resize when people change the size of the window...

    -Even!

    --------------------------------------------------------------------------------------
    Since Im getting vb problems each day, I will keep this topic alive with my freakin problems.

    For now I need a link to Charmelon buttons and someone to explain how to use it!

    Thanks!
     
  3. Unread #2 - Aug 10, 2008 at 6:31 PM
  4. demonavenger
    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0

    demonavenger Forum Addict
    $5 USD Donor

    My problem topic

    Simple... i presume your webbrowser is called webbrowser1

    You put the following code on the form resize area...
    Code:
    Webbrowser1.height = form1.height
    webbrowser1.width = form1.width
    
    Something like that anyways lolz.. i dont have VB on this current computer :/
     
  5. Unread #3 - Aug 10, 2008 at 10:21 PM
  6. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    My problem topic

    If you used .Net there is a dock property which docks it to it's parent container.

    However, with visual basic 6 you must do some trivial math. The webbrowser control has Width and Height properties. All you need to do is set the Width and Height to the width and height of the parent container, give or take whatever value.

    If you want room for other controls to the left or top of the control, there are simple methods. Just set the Top or Left properties of the control to whatever value, then take away that value from the width/height so it won't stretch out of the parent container.
     
< Really great joke virus! give to friends ect. | Editing a textbox in a web page >

Users viewing this thread
1 guest


 
 
Adblock breaks this site