 |

03-03-2006, 04:13 AM
|
|
Newcomer
|
|
Join Date: Mar 2006
Location: Oxfordshire, UK
Posts: 2
|
|
RTB Resizes at Runtime
|
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? 
|
|

03-03-2006, 04:21 AM
|
|
Newcomer
|
|
Join Date: Mar 2006
Location: Oxfordshire, UK
Posts: 2
|
|
Found Coe problem
So, I wrote
Quote:
|
Originally Posted by Taff
Has anyone had this problem - I can't see any properties that are different or find any code that would do this. 
|
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
But at least I can get predictable behaviour now 
|
|

03-03-2006, 09:27 AM
|
 |
Centurion
|
|
Join Date: Aug 2002
Location: Ontario, Canada
Posts: 170
|
|
Quote:
|
Originally Posted by Taff
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
But at least I can get predictable behaviour now 
|
Resize is always called on the form being shown (or maybe just when loaded).
|
__________________
A silly idea is current that good people do not know what temptation means. This is an obvious lie. Only those who try to resist temptation know how strong it is... A man who gives in to temptation after five minutes simply does not know what it would have been like an hour later. That is why bad people, in one sense, know very little about badness. They have lived a sheltered life by always giving in. -C.S. Lewis
|

03-04-2006, 05:48 AM
|
|
Contributor
|
|
Join Date: Apr 2004
Posts: 679
|
|
Quote:
|
Originally Posted by Taff
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? 
|
What code?
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|