Continuous String To Rich Text Box Line?
May 5, 2010
I have a continuous string in a richtextbox and I want to select every 10 chars and add each them as a new line in a separate richtextbox.
Example:
Richtextbox1 = 0123456789
Richtextbox2 =
01
23
45
67
89
View 2 Replies
ADVERTISEMENT
Mar 8, 2012
Is it possible to turn a paragraph of text (grabbed from a textbox) into one continuous line? I could have the following information:
34 MyRoad
da7 888
london
the moon
And I want it to read :
34 MyRoad da7 888 london the moon
Spaces added to cause line breaks, and sample data formatted as code.
View 2 Replies
Mar 4, 2012
I'm trying to populate a rich text box line by line with txt file... without result!
This is the result that would like to get:
House 2. Dog 3. Cat 4. Etc
each one in a row below the other
View 2 Replies
Nov 12, 2010
In my program, I have retrieved several lines of text in RichTextBox1.text. I need to get a
name(without the colon) using a keyword that is on the same line.[code...]
Lets say I set a keyword "vacation" and I need the code to get the name Sara that is in the same
line.I have seen some tutorials that retrieve left, middle, right that gets maybe the last two
letters in the string etc but I need it to get the Name without the colon.
View 4 Replies
Jul 21, 2009
I want set a line of text link in rich text box of vb.net. Like for example: I want to know you
The word want, I want to set a link word.
View 1 Replies
Jun 24, 2009
how to make first line paragraphs in VB 2008 with rich text boxes. I need the code for it. PS. First Line Paragraphing in when only the first line indents and the rest of the paragraph stays normal. I need the code for Visual Basics 2008?
View 2 Replies
Apr 6, 2009
I have two values those are contiguously One is Time along x-axis and second is the CPU Usage in percentage along Y - Axis. I want to draw a continuous line Chart/graph what ever called.
View 11 Replies
Apr 5, 2010
I have a rich text box in my form, and formatting will be applied to the text.
I need it to save the text with its formatting as a string (to be entered into a database)
My problem is, my current code only takes the text unformatted, so when the form reloads, the text is plain
View 1 Replies
Aug 9, 2011
I have a number of text boxs that gather data and put it in a combined string in a rich text box that displays all of the collected data. Some of the text boxes require data pasted from other sources however when that data is then copied from the rich text box to the clipboard through a routine, it loses its formatting. home to maintain the original formating?
[Code]...
View 4 Replies
Jan 12, 2009
I am unable to load rich text files into my rich text box. It worked fine yesterday, would there have been anything I could have changed by accident?
With OpenFileDialog
.Filter = "Text format (*.txt)|*.txt|Rich Text Format (*.rtf)|*.rtf|All files (*.*)|*.*"
[Code]...
but I am getting the error File format is not valid when i attempt to open any Rich Text file
View 4 Replies
May 4, 2010
I'm making a application that deals with word searches
You know, the grid of text from 2nd grade that you all know and love.
Example:
WWWWWHELLOWORLD WWWWWWW
WWWWWEE WWWWWWWWWWWWW
WWWWWL WL WWWWWWWWWWWW
[Code]....
There are three hello worlds in the text grid
1 Vertical 1 Horizontal 1 Diagonal
I want to highlight them all
Everything I've tried has failed except for highlighting horizontal.
View 1 Replies
Apr 4, 2010
I have a rich text box which I use in order the user is able to add pictures, coloured writing, different font etc... however I need to load specific text in the rich text box when the user load the Form.how I can add (I guess) the HTML to load this every time the user load the form.
P.S the text will change depending on who loads the form so I can not do a simple
RichTextBox1.LoadFile("C:Documents and SettingsDesktopSigniture.rtf")
View 2 Replies
Apr 15, 2009
simple problem Basically in form1 i have a line of SQL code in a rich text box called rtb_select
what i would like..This code to run under a connection string called strSQLSelectQuery in form2
I have been told someting like strSQLselectQuery = rtb_select.text would work however because rtb_select is in a different form in the same project it does not recognise rtb_Select
View 2 Replies
Oct 21, 2009
Okay so I've got something, where when a button(Button1) is pressed, Text Appears in the RichTextBox When you press Button2, I want more text, in the same textbox, to be on a different line. I can get the text on the SAME line, but not a different one.
View 3 Replies
Feb 23, 2009
how can i read line 3 from rich textbox?
like, how do i show messagebox with only the text of line 3?
View 1 Replies
May 5, 2012
I created a small Rectangle Shape that represents a specific color. How can I add it to a line in a RichTextbox?For example, the string would look like this: RectangleShape (represents department) + Department Name + Price etc.
View 1 Replies
Jan 3, 2010
I have a rich text box where you can edit java code with a listbox on the side of it that has the line numbers. I want the listbox to scroll with the rich text box so that they line up. How would you get them to scroll as one?
View 1 Replies
Feb 2, 2009
I am trying to make a button so when clicked will remove all text from a string except for one line. I have tried several methods but it didnt seem to work.
View 7 Replies
Apr 3, 2011
I use the following command to save my textbox strings to the file:
Sub SaveToolStripMenuItemClick(sender As Object, e As EventArgs)
FileOpen(1,"test.TXT", OpenMode.Output) ' Open file for output.
WriteLine(1, textBox_name.Text) ' Print text to file.
WriteLine(1, textBox_middlename.Text)
[Code].....
View 4 Replies
May 30, 2010
I've been trying to fix this problem for days, but I haven't been able to successfully apply any of the code that I've found to my project the way it is right now. Maybe I'll need to change the way it reads the file altogether.
Anyway, I'm trying to read through a text file line by line, reading each line into its own string.
View 15 Replies
Nov 30, 2009
I'm trying to build an app that would search a text file for a string entered by the user, and delete the line of text containing that string. Here's the code I have. The code works, but since I'm relatively new to VB and programming as a whole, I was wondering if there's a better method out there. he strFilePath is handled by the openfilediaglog
Dim strSearch As String = Replace(MaskedTextBox1.Text, "-", "")
Dim strLine As String = Nothing
Dim strAllText As String = Nothing
[code].....
View 4 Replies
Aug 11, 2011
On the main form of my application, I have a Rich Text Box which is where the user will be entering information. The text is black. then, i have a button which calls the dialogue "Notes" A dialogue appears, with a rich text box. the user should then be able to enter text into the box, click "OK", and the text entered into the Notes dialogue be inserted to the rich text box on the main form -- with the font colour "Red". The rest of the text in the main rich text box on the main form should remain black.
View 2 Replies
Jul 9, 2009
Deleting a line from a text file. This is for an ASP.net Webpage. I will have a file called Sources.txt. Example data of this file looks like this[cde]...
View 8 Replies
Aug 25, 2011
i want to get the line number of a text file that contains a particular string data.
1. using the string data like str="book"
2. find if the string is part of the file
3. get the line numbers of where it occurs.
eg
filename=sample.txt
sample.txt contains
dance
book
[Code]...
View 2 Replies
May 3, 2011
I would like to know how to read from text file that have a line with string A and ignore lines with string B.
View 7 Replies
Jan 20, 2011
I'm Making a Simple syntax highlighter and I'm Doing the highlighting in the text Changed event of a RTB and for obvious reasons I can't re highlight the whole document each time someone presses a key so i highlight one line each time the text changes. But this creates a Problem. If someone pastes code into the RichTextBox It only highlights the last Line. So is there a way to get if the user typed the text in with his keyboard or pasted it from the clipboard in the text Changed event?
View 6 Replies
Feb 21, 2011
For rich textbox in vb.net i want to have single border line. Fixed single and Fixed 3D are having some dimensional effect which i do not want. And i would also like to change the color of the border.
And same thing with the button, for them how to have single line border and specified color.
View 1 Replies
Jun 12, 2011
ine from a text file. This is for an ASP.net Webpage. I will have a file called ources.txt. Example data of this file looks like this:
View 3 Replies
Dec 19, 2008
I've been looking through the FCL for a method that will allow me to erase a line of text from a text file and replace it with another line of text. Neither the StreamReader nor StreamWriter have a method for replacing or removing Text from a text file, as does the string object. Are there any available methods for erasing just certain lines of text from a file, and then replacing them with others?
In my code, I'd like to locate a certain line in the text file, and then at that point in the text file, use a For...Next Loop to replace each successive line of the text file with new text:
Dim user_data_file As String = "user_data.txt"
edit_input = New StreamReader(user_data_file)
Dim edit_line As String = edit_input.ReadLine
[CODE]...
However, I can't find any methods that will allow me to do this.
View 4 Replies
Nov 18, 2010
I would like to read an HTML file, search each line to see if it starts with </head>. Then add the centering code after it. That line at destination file should read:
</head><table border="0" cellpadding="0" cellspacing="2" width="760"align="center"><tr><td>
After this I don't care to search for anything. Just read from source and write to destination. I know there are programs out there to find/replace text in series of files but I am not allowed to use external programs.
View 16 Replies