Adblock breaks this site

My problem topic

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

  1. xevenx

    xevenx Guest

    Referrals:
    0
    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!
     
  2. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0
    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 :/
     
  3. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    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 >


 
 
Adblock breaks this site