Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 29th, 2004, 08:47 PM
sniggley sniggley is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 sniggley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RTF Scrolling issue

Hi Folks,

Ive got a vb form (vb6) that has an RTF control on it, so I can use it as a report viewer.

I load the form from another module, then append information to the RTF until my report is done. Then I show the form and the users can view the report.

The problem is, when I show form, if the report it longer than the area of the RTF that is showing, it scrolls down to the end. In essence, you are looking at the end of the report, and need to scroll up to see the top.

Is there a way to make it automatically jump to the top of the contents?

Secondly, how do I put, into the RTF itself, pagebreaks? I want to be able to code page breaks in there, so I can put headers and such on each page.

I care more about the first question, though. That ones a dealbreaker.

HELP!!!

Sniggley

Reply With Quote
  #2  
Old August 30th, 2004, 02:44 PM
Rich's Avatar
Rich Rich is offline
Administrator
Developer Shed Admin.
 
Join Date: Sep 2003
Location: Fort Lauderdale, FL
Posts: 151 Rich User rank is Sergeant (500 - 2000 Reputation Level)Rich User rank is Sergeant (500 - 2000 Reputation Level)Rich User rank is Sergeant (500 - 2000 Reputation Level)Rich User rank is Sergeant (500 - 2000 Reputation Level)Rich User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 11 h 37 sec
Reputation Power: 10
hi Sniggley,

Just set your rtfcontrol.selstart = 1

This will cause the cursor to move to that position, and the RTF window will adjust the contents accordingly.

Have fun!

Rich

Reply With Quote
  #3  
Old September 18th, 2004, 12:03 AM
jdarden jdarden is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 8 jdarden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RichTextBox1.SelStart = 0

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > RTF Scrolling issue


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway