Allow RichTextBox Scrollbar To Control Another RTB Scroll?

Jul 10, 2009

I want to be able to have a richtextbox scroll event synced with the scroll of another richtextbox. Do any of you know how this is possible

View 4 Replies


ADVERTISEMENT

Control Scroll Bar Of A RichTextBox?

Aug 22, 2011

I Want Just Ask If It's Possible I Have A RichTextBox And I Wanted To Detect If The Control Needs A Scroll Bar But Without Performing The Any Other Function (Without Changing The Text).

View 1 Replies

Scroll A RichTextBox Control?

Jun 8, 2009

I am working in vb2008. I understand how to set a richtextbox's selectedstart property to a text block using .find. I would like to know how to tell the richtextbox to scroll to the selected position based upon the find operation and show its position at the top of the window. I would like to pass text blocks into my richtextbox control and have the control automatically scrolll to that position if the text block is found.

View 2 Replies

Make A Scrollbar Scroll Through Code?

May 28, 2009

I am making a Mario remake. I made the picturebox for the ground stretch out the form and make it really long, but I need it to be able to scroll the form through the code, instead of with a scroll bar.

[code]...

View 4 Replies

Make One Scrollbar To Scroll Two Richtextboxes At Once

Nov 16, 2009

I Want To Make One Scrollbar To Scroll Two Richtextboxes At Once

View 1 Replies

Forms :: Scroll One Panel With Another Panels Scrollbar?

Sep 21, 2009

I have two panels, and I want them to both scroll horizontally with one scroll bar, but I only want one of them to scroll vertically. So if I have a large panel on autoscroll, it works fine for that panel, but I have another smaller panel above that, could I make the smaller panel scroll horizontally with the larger panel's horizontal scrollbar?

View 2 Replies

Scroll Scrollbar In TreeView To See Selected Node?

Feb 2, 2009

Scroll scrollbar in TreeView to see selected node

View 8 Replies

[2005] Datagridview Vertical Scrollbar Doesn't Scroll?

Mar 9, 2009

I have a datagridview in my for that contain some infos like name of a file, date and hour but the vertical scrollbar doesn't work, the scroll doesn't move. Here's my code

If Me.ofd_Fichier.ShowDialog() = DialogResult.OK Then
Dim str_Fichier As String
For Each str_Fichier In ofd_Fichier.FileNames

[code].....

View 3 Replies

Two Textboxes - Scroll Event To Trigger Change Of Position Of Scrollbar

Mar 23, 2012

I am currently working on a VB.Net program where there are two parallel multiline text boxes like this.

----- -----
| | | |
| | | |
----- -----

I would like that when one text box is scrolled, the other is scrolled as well. I was wondering if there was a Scroll event that could trigger the change the position of the scroll bar of the two text boxes.

View 1 Replies

.net - Detect If A Scrollbar Is Or Is Not At The End Of A Richtextbox?

Mar 18, 2009

How to detect if a scrollbar is at or not at the end of a richtextbox?

edit: when I say at the end I mean completely scrolled to the bottom, not anywhere else.

View 3 Replies

Hide RichTextBox Scrollbar

Nov 26, 2009

I have a form with multiple richtextboxes that have synchronized scrolling (ie when one RTB scrolls, the other RTBs scroll down with it). The only problem I have is that I have 10 RTBs, which means 10 scrollbars in total. I would like some of them to not show for simplicity reasons. Basicly the scrollbar of RTB1 to show and hide the rest.

View 1 Replies

Hide RichTextBox Scrollbar?

Nov 25, 2009

I have a form with multiple richtextboxes that have synchronized scrolling (ie when one RTB scrolls, the other RTBs scroll down with it). The only problem I have is that I have 10 RTBs, which means 10 scrollbars in total. I would like some of them to not show for simplicity reasons. Basicly the scrollbar of RTB1 to show and hide the rest.

View 1 Replies

Tab Control Scrolling - Middle Mouse Wheel Doesn't Scroll The Scroll Bar

May 22, 2012

I have a tab control with two tab pages. One page has the auto scroll enabled since there is to much content in the page. The middle mouse wheel doesn't scroll the scroll bar; I have to actually click and hold the scroll bar and drag it down to scroll. Is there a property to allow this?

View 2 Replies

Change RichTextBox Horizontal Scrollbar Height ?

Sep 29, 2009

I'm using a RichTextBox and wondered if it's possible to change the height of the horizontal scrollbar. I don't hve much room to fit the RTB so I need to reduce the height of the scrollbar.

View 2 Replies

Horizontal Scroll Control - Using It To Scroll A Series Of Panels Across A Form?

Nov 11, 2010

I am having an odd problem with the Horizontal Scroll Control in my program.I am using it to scroll a series of panels across a form.This is my code:

Private
Sub scrHoriz_Scroll(ByVal
sender As[code]....

The problem is that this works perfectly if I use the left and right arrows and it also works perfectly if I use the scroll bar's slider SLOWLY. If I scroll using the slider and move it quickly then the scroll gets out of sync.The small change and large change are both set to 1 and maximum is set to 8

View 3 Replies

Making A DataGridView Horizontal Scroll Event Scroll Another Control

Aug 5, 2011

I have a DataGridView with a panel above it, that contains a group of textboxes above each column. My DataGridView has a horizontal scroll bar. What I want to do is when the DataGridView scrolls horizontally, scroll the panel with textboxes above it, so they stay aligned.I tried handling the DataGridView's scroll event, but I'm not sure what to do with it.

View 1 Replies

Disable Scroll Bar On A RichTextBox?

Nov 5, 2009

1) disable the scroll bar on a richtextbox

2) transfer all scroll capability to a standalone scrollbar control

View 1 Replies

Programmatically Scroll A Richtextbox?

May 10, 2010

I need to jump to the last viewed position of the text in my richtextbox when I open my project again.

I used GetScrollInfo to obtain the position of the scroll box within the scroll box.

How do make my application to jump to this same location on the scroll bar and also within the text in the richtext control?

I am using VS 2008 with .NET Framework 3.5.

View 1 Replies

Richtextbox Auto-scroll?

Dec 9, 2009

i'm implementing search on a richtextbox and i want to auto scroll up/down left/right when needed. i tried ScrollToCaret but it always scrolls. even when the searched text already presented on the shown part of the text.

View 2 Replies

Richtextbox Scroll - But Then Loop?

Sep 12, 2011

I would like to be able to vertically scroll some text in a richtextbox control in a loop so when it reaches the last line in the richtextbox it jumps back to line 0 and starts over, I can figure out the scrolling using code:

[Code]...

Which is placed in a timer but I am not sure how to reset the scrolling back to the top once it has been through all the lines of text. Using the above code just seems to go on forever even if there is no more text to show... I tried setting the POINT values to 0 but that does not help.

Has anyone got some ideas on how I can do it, I want to use this code as it gives a nice smooth scroll efect.. how can I reset the scroll position back to 0/the top of the richtextbox?

View 1 Replies

Richtextbox Scroll Down Slowly?

Dec 16, 2010

what i want to do is have a richtextbox lets say this is the text

1
2
3
4

[Code].....

and i what i want to do is have a timer and have it scroll down line by line so each letter gets show and some letters go off the richtextbox cuz its small

View 3 Replies

Make Horizontal Scroll Onto Richtextbox?

Apr 8, 2010

1.how can i resize my project's form1?i mean my form1 only has fixed size.when i'm trying to maximize the form(by click a square on the top right corner of the form) my form remains in the same size even the window has fullfill my screen.

2.how can i make my project to become an installer?

3.how to make exe file from the project?

View 5 Replies

Richtextbox - Get Vertical Scroll Bar Position As Integer?

Oct 25, 2009

I have a RichTextBox and I need to find the position of the vertical scroll bar.

Is there any way to do this without Pinvoke? If not, what is a way to do this WITH Pinvoke?

I need to return an integer value.

View 1 Replies

Make A Richtextbox Scroll Automatically When Text Fills It Up?

Dec 7, 2011

how do you make a richtextbox scroll down automatically when text fills the screen so that the new line can be seen,

View 2 Replies

RichTextBox Scroll 1 Line Instead Of 3 Or Disable Smooth Scrolling?

Feb 7, 2011

I am new to programming- basically I have a richtextbox1 with some data from the database,but when you scroll it scrolls 3 lines, whereas I want to scroll only one line at a time.

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Dim mySelectQuery As String

[code].....

View 2 Replies

ScrollBar Control By Program?

Nov 22, 2010

I have a game with a large panel in VBE2008 with a Vertical Scroll Bar Control.

The user uses his mouse to move it up and down, etc.

But how can the game program move this control?

For example, the control bar is slid down to the panel and I want my program to slide back to the top starting position when the user clicks on the Reset Button.

View 2 Replies

Media Player And RichTextBox - Highlight The Text Being Played And Auto-scroll When It Plays The Next Line

Feb 9, 2011

I am trying to build a language tool, basically I am getting lines of text into a richtextbox and playing the audio for that line. Things are working great except that I want to highlight the text being played and autoscroll when it plays the next line. how to implement the line highlighting and autoscrolling.

View 2 Replies

Horizontal Scrollbar For WebBrowser Control?

Jul 25, 2009

I have a webbrowser control and when I dock it to fill the screen, the h scroll bardissapears. If it is undocked, there is a h scroll bar. How do I get it to have an h scroll bar if it is docked to fill the screen?

View 1 Replies

Scrollbar Won't Enable On Custom Control?

May 30, 2010

I moved this from the debugger thread as I got no responses.This may be a better area.I have a problem enabling a Scrollbar on a custom control I have created.The custom control has one component,the scrollbar and an area that I draw upon from an internal datasource.Think something like a textbox.In certain instances,I want the scrollbar to be enabled. The Custom Control's job is to do this when the situtation is appropriate.I have a very simple piece of code here:

If <logic conditions> Then
DataScroll_vscrollbar.Enabled = False
Else[code].....

This code is in my OnPaint routine (along with a bunch of other drawing related stuff).Essentially I've determined that there is more stuff to display than the area of the control and need to turn on the scrollbar to give the user of the control the ability to see later stuff.With the exception of this funny behavior, the control is doing exactly what I want.I step through this and have a watch set.I can step through the set to True, but the Enabled value doesn't change.Even the EnabledChanged event fires (Doesn't on the set to False because it's already False), but the Enabled value is still False.I don't know why.Now here is the really interesting part and may give somebody an idea about what's happening: I can change the Enabled value via the debugger (via the Watch) to True.The EventChanged will fire, and from that point on I can set the Enabled value to either True or False and back again with no problems.

I even did some really crazy testing to see if perhaps the debugger just wasn't showing something.

did something like:

Dim idiot as boolean = false
if <logic> then
idiot = true[code]....

I have set the values to Minimum and Maximum, but the problem remains.

View 5 Replies

Textbox With Vertical Scrollbar - Get The Scrollbar Position Without Having To Reposition The Carat?

Oct 21, 2010

So with the stock Textbox, I set the Scrollbars property to Vertical. This is great if the text in my box never changes; I can scroll up and down while the box sits still. If I'm running a background operation that logs output to the box though, the scrollbar resets itself to the top every time I append text to the box.

I know I can set the Textbox.Selection property (or use the Select method) to reposition the carat in the textbox, make note of that position in a variable, then append text, reset the carat, and use the ScrollToCarat method to reposition the scrollbar where it belongs. That's a really (ridiculously) long way around. Anybody know if there's another/better way of holding the scrollbar position, short of actually building a custom control (or using a Textbox and a separate Scrollbar)? It never hurts to try. In a worst case scenario, you'll learn from it.

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved