Resizing Problems

Get help on programming - C++, Java, Delphi, etc.
Post Reply
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Resizing Problems

Post by DJT »

Hello!!!

I am having a problem/ can't get my programs to resize depending on what resolution the user is using. I am using VB 6.0 . Could someone please talk me through the proccess?
PLEASE!
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Post by DJT »

No one? Me is hurt!
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
Asbestos
Registered User
Posts: 407
Joined: 09 Jun 2003, 02:00
Location: eGoli

Post by Asbestos »

Me too
NightStalker
Registered User
Posts: 11
Joined: 29 Sep 2004, 02:00

Post by NightStalker »

hey

go to: www.sitepoint.com/forums

ask the same question there... 1 of the biggest programming websites ever. Very good and very busy! :D
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Post by RuadRauFlessa »

Sorry pal this forum isn't verry big on *work* but rather play 8)

Hope you manage however. If kronos comes in to work today I will let him know someone has a query. I am sure he wouldn't mind taking a look.
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
Locksmith
Registered User
Posts: 156
Joined: 28 Oct 2004, 02:00

Resize ?

Post by Locksmith »

When you say resize !
Do u mean it doesnt resize when resize it with the mouse ?
Locksmith
Registered User
Posts: 156
Joined: 28 Oct 2004, 02:00

Try this it works

Post by Locksmith »

Right-Click in VB's toolbar and click customize
In the resulting dialog click on the commands tab.
In the Categories List, select Help.
Select "About Microsoft Visual Basic" in the Command List, and drag it to any menu or the toolbar.
Right-click on the item you just dragged and rename it to "Show VB Credits" (without quotes).
Close the "Customize" dialog and click on the "Show VB Credits" item.
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Re: Resize ?

Post by DJT »

Locksmith wrote:When you say resize !
Do u mean it doesnt resize when resize it with the mouse ?
I mean when you make the web browser tool fit the whole form in 800 X 600 and it fits a small section in 1024 X 768
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
Locksmith
Registered User
Posts: 156
Joined: 28 Oct 2004, 02:00

Resize Web Active X control

Post by Locksmith »

Well have you tried the following

put the webbrowser control on a from.
double click the form then goto its Resize sub

Eg:

Private Sub Form_Resize()
On Error Resume Next

WebBrowser1.top = 0
WebBrowser1.left = 0

WebBrowser1.Height = Form1.Height - 1000
WebBrowser1.Width = Form1.Width - 100



End Sub

I know its dumb but it surly works
the -1000 is just to make sure the Taskbar doesnt cover part of the
WebBrowser Control and the -100 to not make it go out the screen.

Hope it helps........
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Post by RuadRauFlessa »

Good answer. The one thing I know about VB is that it doen't have layout managers so you have to do all that resizing stuff yourself.
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
Post Reply