RTB Resizes at Runtime

Taff
03-03-2006, 04:13 AM
Hi,
I've a simple form with an RTB, a few text boxes & labels, and a single menu. I've used this code for a few years without problem. But I added a few more labels & text boxes, changed the form size, RTB size, & RTB position.

Now, on running the RTB Vertical size change to cover the whole of the lower form & I lose the horizontal scroll bar.

Has anyone had this problem - I can't see any properties that are different or find any code that would do this.

But I do find if I move the RTB back to close to the top of the form it behaves correctly? Seems a bit weird? :confused:

Taff
03-03-2006, 04:21 AM
So, I wrote

Has anyone had this problem - I can't see any properties that are different or find any code that would do this. :confused:

Made me double-check Code, and I find at runtime,
Private Sub Form_Resize()
get's called, even though user hasn't touched the form?

- so why's that :confused:

But at least I can get predictable behaviour now :cool:

MarkVB6
03-03-2006, 09:27 AM
So, I wrote


Made me double-check Code, and I find at runtime,
Private Sub Form_Resize()
get's called, even though user hasn't touched the form?

- so why's that :confused:

But at least I can get predictable behaviour now :cool:

Resize is always called on the form being shown (or maybe just when loaded).

VB_Alien
03-04-2006, 05:48 AM
Hi,
I've a simple form with an RTB, a few text boxes & labels, and a single menu. I've used this code for a few years without problem. But I added a few more labels & text boxes, changed the form size, RTB size, & RTB position.

Now, on running the RTB Vertical size change to cover the whole of the lower form & I lose the horizontal scroll bar.

Has anyone had this problem - I can't see any properties that are different or find any code that would do this.

But I do find if I move the RTB back to close to the top of the form it behaves correctly? Seems a bit weird? :confused:


What code?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum