Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Hi, I am developing an editor program using rtb in vb.net. Now, i hav added some controls in it using rtb.controls.add statement and i want to scroll these controls with scrollbar(vertical). Is it possible to do it? if yes then how can i start?
Posted

Hi there,

Do you want the textbox to consist of scrollbars? Since then you don't have to add them, you can then dis-/enable them in the property page of the rtb. (named Scrollbars and you can set it to both, horizontal, vertical, force horizontal etc.)

 

Otherwise you can add multiple controls to a usercontrol or add them to a panel.

Here you can add the VScrollBar. Now you can dock it to the right (as default in most programs) and handle the scroll event (with e.newvalue and e.oldvalue in the event arguments you can determine how far you want your controls moved) You can then adjust the location property of the controls contained within the panel or usercontrol.

 

~ DP

My Development System

Intel Core i7 920 @2.66Ghz

6 GB DDR3 SDRAM

Windows 7 Ultimate x64 & Windows Vista Home Premium x64 dual boot

GeForce GTX295 1.8 GB

3.5 TB HD

Posted
DPrometheus thnx for ur reply. I dont want to use panel or usercontrol. I want to add functionality in richtextbox to scroll controls added inside richtextbox. I hav read somewhere that autoscrolloffset property can be used to scroll controll child controls added in a scrolling control but i dont know how to use it.
Posted
it says in the wiki that if no tag then it uses defaults of 60 pixels per second, so one part of my rss - home_rss dont have the scroll tag but the second part - home_rss2 has it in all 3 controls, do i have to use it in both or it should work as is?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...