Results 1 to 8 of 8

Thread: perfect form resizing???

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    perfect form resizing???

    I want to show the horizontal scroll.

    when I run the form in max. size it's fine, but when resizing it to small and scroll down then I can't see the scroll .
    why is this behaviour when I resize the form.I set the autoscroll property but nothing changed.
    this's working greatly in VB6 without adding any scroll bars.
    Thanx a lot.

    plz download the attached project

  2. #2

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    sorry forgot the proj , you have to add reference of the webbrowser COM.
    Attached Files Attached Files

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I am not sure what your doing. I took your project, and took out the resizing code. I then used the ANCHOR properties of the two controls so that when the form is resized, so are the controls. Try it out and see if that is what you wanted.
    Attached Files Attached Files

  4. #4

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    still the same problem .I've used anchor for the webbrowser control.
    OK , if you want to face the problem then run the proj and write any address , let's say :www.msn.com .
    then , resize it to small then you won't find the horizontal scroll bar nor the vertical scroll bar will be completely shown .

  5. #5

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I've just got VB6 code that solve this problem .It'll work fine.
    thanx hellswraith

    here is the link :
    http://www.developerfusion.com/show/18/4/

  6. #6
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Ok, that picture in the link you posted really explained it better. Sorry, didn't understand your post.

    Still though, I use anchoring in my application with the webbrowser control with no problems. But instead of it being directly on the form, I have it on a panel. Glad you found your solution. You might want to try putting it on a panel and use anchoring for the panel and the webbrowser control. I have no problems when I do this.

  7. #7

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    well, thanx a lot for these tips.

  8. #8

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    if you still remember the problem then here is the code for VB.NET

    to center the webbrowser and show both bars
    VB Code:
    1. webbrowser1.SetBounds(0, 0, ClientRectangle.Width, ClientRectangle.Height)

    Pirate

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