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?
Printable View
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?
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...Quote:
Originally posted by aafuss
Fixed-but how do i make the web browser autmoatically resize so it fill the area when a forjmis maximised?
Assuming Me is the web browserform...
VB Code:
Private Sub Form_Resize() On Error Resume Next 'Dunno why that would occur cboAddress.Width = Me.ScaleWidth - 100 'Width of adress bar brwWebBrowser.Width = Me.ScaleWidth - 100 'Width of web page brwWebBrowser.Height = Me.ScaleHeight - cboAddress.Height End Sub
Hope it helps ya......
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...Quote:
Originally posted by aafuss
Ruku, would yoyr code work if the form's width is 6735 by height 7890? the form name is frkbrowser.
VB Code:
Private Sub Form_Resize() On Error Resume Next 'If an error occurs, then ignore it and continue process cboAddress.Width = Me.ScaleWidth - 100 'Rename "cboAddress" by your control name of the webpage URL brwWebBrowser.Top = 0 - cboAddress.Height 'Fix the position of your browser to the top (Rename "cboAddress"again...) brwWebBrowser.Left = 0 'Browser is on the left brwWebBrowser.Width = Me.ScaleWidth - 100 'Width takes the entireform brwWebBrowser.Height = Me.ScaleHeight - cboAddress.Height End Sub 'Height takes the entireform
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???Quote:
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?
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....