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
ADVERTISEMENT
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
Nov 5, 2009
1) disable the scroll bar on a richtextbox
2) transfer all scroll capability to a standalone scrollbar control
View 1 Replies
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
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
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
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
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
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
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
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
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
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
Jun 23, 2011
i am trying to display a line of smiley faces ☻ and change the colour of each face, i cant use a find method as there are 10 of these smilies so i thought about using a loop and selecting only the last one entered and changing its colour. here is a simplified version of my
VB.Net
For a = 0 to 9
RichTextBox1.Text += "☻" ' add the smiley
[code]....
This when i ran it changes the first nine to the first colour in the array and correctly does the colour of the last smiley? could i for instance format the character first then add it formatted?
View 2 Replies
Feb 8, 2009
However, it loops through does the first one .... then I have to click the button event again for it to get the 2nd one BUT THEN when I click button the 3rd time it doesnt do the third address it simply repeats number 2
View 5 Replies
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
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
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
Jun 12, 2011
I am loading several command buttons into it (one in each grid box). I have the panel set to autoscroll. When TableLayoutPanel is set to AddColumns, all works well. However, I dont want horizontal scroll, I want vertical. When I set TableLayoutPanel to AddRows, a vertical scrollbar will not appear.
View 4 Replies
Jan 6, 2010
How would I leave the vertical scroll position as it is and set the horizontal scroll position all the way left if it isn't already in that position? I've been using Me.AutoScrollPosition and have come up with code that is satisfactory but I haven't been able to always leave the vertical scroll position exactly as it is and just move the horizontal scroll position to the left limit.
View 4 Replies
Mar 13, 2010
I have a textbox that shows events on a program, which I add. I use the 'scroll bar' option on the textbox to show the vertical scroll bar, but how do I make it stay at the bottom most possible? I am using this code while I am trying to learn how to do what I want the scroll bar to:[code]But how do I get it so the scroll bar will stay at the bottom-most it can? I'd like the newest, most recent events to appear at the bottom of the textbox, and to have the user not have to scroll down every time something new is added.
View 2 Replies
Aug 19, 2009
i have 2 controls on a form. Panel1 and picturebox. I am using the following code to zoom in.
PicBox.Width = PicBox.Width + 100
PicBox.Height = PicBox.Height + 75
'PicBox.Left = PicBox.Left - 50
'PicBox1st.Top = PicBox.Top - 20
i am also using the following code to try and scroll whilst zoomed in
Inherits System.Windows.Forms.Form
Private m_PanStartPoint As New Point
Private Sub picbox_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PicBox.MouseDown
'Capture the initial point
[code]....
I have set the panel to autoscroll and added scroll bars but they do not scroll far enough... They only scroll about 2cm.
View 6 Replies
Dec 10, 2009
Following default the datagridview will scroll following vertical. How can i do that. I tried :
DataGridView1.ScrollBars = ScrollBars.Horizontal but not work
View 2 Replies
Mar 14, 2011
Makes the following statement about the code below:
**"The computer evaluates the loop condition in the Do...Loop statment to determine whether the loop instructions should be processed. In this case, the inputsales <> String.Empty condition compares the contenst of the input sales variable to the String.Empty value. As you know the String.Empty value represents a zero length, or empty, string if the inputsales variable is empty, the loop condition evaluates to True and the computer process the loop instructions. *If on the other hand the inputsales variable is not empty, the loop condition evaluates to false and the computer skips over the loop instructions.
Based on the code I think it is the opposite: ...that while the inputsales value is not empty it should evaluate to true and process the loop and if it is empty it should evaluate to false and skip the loop?
See below.
Option Explicit On
Option Strict On
Imports System.Globalization
[CODE]...
View 2 Replies
Oct 30, 2009
Is it possible to write code to make a scroll bar scroll? I have a working scroll bar on my form.
I am using voice in my application and I just want to know if there is code that I can write to make it scroll so that I can add that code with a voice command so it will scroll.
View 6 Replies
Aug 26, 2010
I have a richtextbox with a large file inside....I want to be able to search for "Fornication" within the text (KJV Bible) and have every instance of that word to pop up into another richtextbox along with the scripture it is in.
View 1 Replies
Jun 28, 2011
I'm currently having a problem dragging and dropping my label1.text to a richtextboxt which isn't created on design time...well im currently found a solution but i think it is only for a temporary solution because i use a drag and drop i drag it to a textbox then it willl transfer the data to the richtextbox....through the use of the textbox... here is the code ive come through..[code]...
View 2 Replies
Jul 25, 2011
I am creating a text editor like notepad. Well its an advance type because it is a tabbed notepad type. It saves html files.
I only created tabcontrol on the design time named TabControl1. the tabpages and the richtextbox are created on the form load and when adding tabs. [code]...
View 7 Replies
Jul 26, 2011
I have 2 forms. The 1 is named frmMain. inside of it is a Richtextbox named RTB.
The other form is named frmInsert. Inside of it is a Richtextbox named rtbtext.[code]..
View 5 Replies
Mar 9, 2011
I know I am missing the obvious. I would like a label to show how many cycles in loop are left.
[Code]...
View 5 Replies