Results 1 to 7 of 7

Thread: Webrowser control

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2002
    Location
    Australia
    Posts
    635

    Webrowser control

    How do I fix the web browser and drop-down combo box's size?-see attached screenshot-all of the 2 controls size isn't -right the web browser control should be sized so it goes near the form's bottom, the the drop-down boc control is toosmall?
    Attached Images Attached Images  
    A.A. Fussy
    Babya Software Group

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2002
    Location
    Australia
    Posts
    635
    Fixed-but how do i make the web browser autmoatically resize so it fill the area when a forjmis maximised?
    A.A. Fussy
    Babya Software Group

  3. #3
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Arrow Coding...

    Originally posted by aafuss
    Fixed-but how do i make the web browser autmoatically resize so it fill the area when a forjmis maximised?
    Here, that was the default coding with the wizard of VB6...

    Assuming Me is the web browserform...

    VB Code:
    1. Private Sub Form_Resize()
    2.     On Error Resume Next 'Dunno why that would occur
    3.     cboAddress.Width = Me.ScaleWidth - 100 'Width of adress bar
    4.     brwWebBrowser.Width = Me.ScaleWidth - 100 'Width of web page
    5.    brwWebBrowser.Height = Me.ScaleHeight - cboAddress.Height
    6. End Sub

    Hope it helps ya......

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2002
    Location
    Australia
    Posts
    635
    Ruku, would yoyr code work if the form's width is 6735 by height 7890? the form name is frkbrowser.
    A.A. Fussy
    Babya Software Group

  5. #5
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Ummm, yeah!!!

    Originally posted by aafuss
    Ruku, would yoyr code work if the form's width is 6735 by height 7890? the form name is frkbrowser.
    Of course, I'll explain again...

    VB Code:
    1. Private Sub Form_Resize()
    2.     On Error Resume Next 'If an error occurs, then ignore it and continue process
    3.     cboAddress.Width = Me.ScaleWidth - 100 'Rename "cboAddress" by your control name of the webpage URL
    4.     brwWebBrowser.Top = 0 - cboAddress.Height 'Fix the position of your browser to the top (Rename "cboAddress"again...)
    5.     brwWebBrowser.Left = 0 'Browser is on the left
    6.     brwWebBrowser.Width = Me.ScaleWidth - 100 'Width takes the entireform
    7.    brwWebBrowser.Height = Me.ScaleHeight - cboAddress.Height
    8. End Sub 'Height takes the entireform

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2002
    Location
    Australia
    Posts
    635
    OK, with your first code-0the adressbar becomes very small in width-and thre web browser also shrinks, so oinlylittle bnut of a oage could be shown-how do i fix that?
    A.A. Fussy
    Babya Software Group

  7. #7
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Lightbulb Oh...

    Originally posted by aafuss
    OK, with your first code-0the adressbar becomes very small in width-and thre web browser also shrinks, so oinlylittle bnut of a oage could be shown-how do i fix that?
    Is the form scalemode = to pixels???

    If yes, simply replace it to Twips

    If this still doesn't work, Attach your programs code to the forum and I'll take a look at it....

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

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