Read The Text From Richtextbox1 In Richtextbox2?
Mar 1, 2012It is necessary to find certain text from richtextbox1 and put it in richtextbox2
View 5 RepliesIt is necessary to find certain text from richtextbox1 and put it in richtextbox2
View 5 RepliesHow can I do it? I tried this but it gives me an error.
View 1 RepliesI need to search through richtextbox1.text for emails out of a random jumple of text and source code and put the emails in richtextbox2.text.
View 1 RepliesHow do I save text from 'RichTextBox1' to a text file?
View 4 RepliesI'm using Visual Basic 2005 Express Edition and I was just wondering if someone could help me out with a few things? I'm making a Notepad-type program just to clarify things.1. I have a button which adds text to my RichTextBox1 (excuse the name), but when you click it it adds text to the end of the script. I want to make it so the text is added where your "cursor" (the blinking thing which lets you know where you're typing) is, at the current part of RichTextBox1. At the moment I'm using:
RichTextBox1.Text = RichTextBox1.Text + "The text I'm adding" If anyone could tell me the code to make it put "The text I'm adding" at your current cursor that'd be great.
2. I have a Save As button and a Save button. When you click Save As and save the file it works 100%, when you click Save and you haven't saved previously then it works 100%, but after you have saved the file and then click save it doesn't overwrite the file. Here's the code for Save:
[code]...
So if anyone can tell me the code that's needed so it will overwrite the current file 3. I have a FontDialog but I have no idea what the code is supposed to be to make RichTextBox1's font change after you click Okay in the FontDialog.
Text displayed by the RichTextBox1 is too big. It creates vertical and horizontal scroll bars. It there any way to zoom in and out to make the text fit as one desires?
View 5 RepliesBasically I want a piece of code that will only do something if richtextbox1s text is a url. Here is a MOCK code.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If richtextbox1.text.containsURL = True Then
webbrowser1.navigate(richtextbox1.text)
End If
End Sub
or something similar.
in a RichTextBox1 you select some text and you want to move it to before or after some other text.
View 2 RepliesHow to print a text from RichTextBox1 in VB 2008 Express?
View 6 Repliesi am programming a note and i save the plain text of the richtextbox1 to a notepad then i want to print it i use this code but it print the frist line only and i want to print all lines Private Sub SaveToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem1.Click
[Code]...
I have an email creator that needs to extract the emails created from the html page, display the accounts in a richtextbox1 & then save the accounts as a .txt file on my system. How would I go about doing this? Doe anyone have a great code sample??
View 1 Repliesis there anyway to make listbox1.item1=textbox1.text? or the first row of richtextbox1=textbox1.text?
View 1 RepliesI have a program that will keep adding info to a richtextbox, I want to to autoscroll to the end
this is what I have vb.net Private Sub RichTextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox2.TextChanged RichTextBox2.SelectionStart = RichTextBox2.Text.Length - 1 RichTextBox2.ScrollToCaret()
Return
End Sub
the problem is that it will go back to the beginning of the richtextbox2 then it will go to the end and it keeps jumping like that. If there a "smoother" way to do this? So it wont keep jumping back and forth?
How can i make it so if my RichTextBox1 has the word "void" in it; it will be coloured blue but only "void" it self so the world "else" next to it can be red but in the same RichTextBox1
View 1 RepliesI'm using vb.net 1.1 to develop the program. I got text files that contain test result from a machine, like below.
T1 1.24535 2.56335 2.43253 1.24538 2.55619 4.35243
T2 1.42542 1.63728 3.57295 4.59275 1.57320 2.72057
T3 5.12857 2.45375 6.38593 2.58375 3.57259 3.57204
I need to check the test result with the data from database, to find out which test result is failed. If there is a fail test result, I will show an alert to the operator and stop the checking process. Until the operator close the alert, then the checking process will continue from the last read point.
I would like to romove any line that doesn't have "http://" Or "https://" within Richtextbox1.text.
e.g.:
[URL]
I need any line above that doesn't have the http:// or https:// to be remove and no empty lines left.
I'm trying to create a quick little program in VB 2008 that can parse extract the google search results based on the search criteria of the user input.
Basically what I have is a textbox1.text that enters the keywords into google, google will then put the url results back into my richtextbox1.text.
Here is the code that I have:
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
Me.Text = WebBrowser1.Url.AbsoluteUri
[Code].....
How can i make the font's size in richtextbox equal to combobox1?
RichTextBox1.font.size = combobox1.text
not working
ok I was wondering if its possible to get the line were setLSBCookie( is at . This is my code but didnt work out vb.net
i = RichTextBox1.Lines.IndexOf("setLSBCookie(") This is my error:
Overload resolution failed because no accessible 'IndexOf' accepts this number of arguments.
i want the richtextbox1.selectioncolor to be able to pickup and use the color in a label's text and not just the Color.LightBlue..the label1.text=Color.LightBlue
Dim labelcolor As Color
labelcolor = Label1.Text
RichTextBox1.SelectionColor = L
[code].....
My rtb to be resized with the form...like windows notepad!
Original Form Size - 809; 699
Original RTB Size - 791 to 556
dim none as none
Have been trying to scroll one line at a time on my Richtextbox1 for quite some time - Hit upon this code which doesnt seem to work.
Class RichTextBox1
Inherits RichTextBox
<DllImport("user32.dll", CharSet:=CharSet.Auto)> _
Private Shared Function SendMessage(ByVal hWnd As IntPtr, ByVal Msg As UInteger, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr
[code].....
I want to have syntax highlighting for Java in RichTextBox1.
When the user entres "//" (without quotes), i want the "//" to turn green, while the rest of the text stays black.
i've started with:
If RichTextBox1.Text.ToLower.Contains("//") Then
'do something
End If
My program automatically checks if a file exists when they go to save. If it doesn't, it automatically creates the directory and file. Then, after that, it should save the data in my RichTextBox1 form, but how do I get it to write the new number from RichTextBox1 into the XP file?I DON'T want a select file menu. I have my own path to the file.
View 14 RepliesI'm trying to make a program that can read .mp3 data (Such as Artist, Album, Year, Track number, etc), but I need to be able to do two things that I have no clue how to do:
1. Read starting from a specified string (E.G, On one line it states: [code]
2. Read until a specified string (E.G, On the previously stated line,I need to read starting from what I said, up until.
I am trying to move texts in a richtextbox from 1 place to another and I want to use a Move button.[code]
View 7 Repliesin my text file i have two part. Called bottom and top. So i need to read the Top part first then and match the line with bottom part. Its like this
[Code]...
I have a txt file that I need to read into a listview, but I need to read from a specific line in that file. Below is a sample of the txt file to read,
6400,3200,2,95.5,84,76.6,0
1,2,-20,15,0,0,0,"NO",0,0
TOTAL GPM= 6400 HWT= 95.5 CWT= 84.0 IWBT= 76.6 ALTITUDE= 0
CODE]...
I have one combobox, two buttons (Add and View) and listbox. When I click button Add text from combobox is added to text file. This is code for Add button:
[Code]...
I'm trying to make an application which will log me into a site and read the text of the site and display a certain part of that text in my form. I'm stuck at the login, its a .php page with 2 text boxes, 1 check box and 1 button.Is there any way to manipulate those objects by using controls in my form?
View 14 Replies