Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Interface and Graphics > RTB Resizes at Runtime


Reply
 
Thread Tools Display Modes
  #1  
Old 03-03-2006, 04:13 AM
Taff Taff is offline
Newcomer
 
Join Date: Mar 2006
Location: Oxfordshire, UK
Posts: 2
Default 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?
Reply With Quote
  #2  
Old 03-03-2006, 04:21 AM
Taff Taff is offline
Newcomer
 
Join Date: Mar 2006
Location: Oxfordshire, UK
Posts: 2
Default 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
Reply With Quote
  #3  
Old 03-03-2006, 09:27 AM
MarkVB6's Avatar
MarkVB6 MarkVB6 is offline
Centurion
 
Join Date: Aug 2002
Location: Ontario, Canada
Posts: 170
Default

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
Reply With Quote
  #4  
Old 03-04-2006, 05:48 AM
VB_Alien VB_Alien is offline
Contributor
 
Join Date: Apr 2004
Posts: 679
Default

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?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->