Select Text Between Two Characters?
Aug 22, 2010How do I have a RichTextBox text between two characters such as < and > select? [URL]
View 3 RepliesHow do I have a RichTextBox text between two characters such as < and > select? [URL]
View 3 RepliesI'm making a custom control suited for handling passwords. I have created a control that inherits from a text box and I have implemented a lot of things so far. But what i want to do now is create a system so that when a user types It will display his last character typed for a X amount of time.Is there a way to turn only selected characters into password characters and still be able to get the password text from the Text property ?
View 3 RepliesI know that the topic is kind of weird, but I will explain that here. I am reading text from a text box and inserting that into a listbox. I am wanting to read what the user inputs into the text box and add a character between each character they type. Here is what im wanting to do written out[code]...
View 4 RepliesThe following string could be: dsafk$asdlfdl or odldl$ldlkfjdsljfdslkjfdslkjf I need to do the following. Select everything to the rigt of the dollar sign, move it to the left of the dollar sign, and then put a second string that is coming into this function to the right of the dollar sign where the old string was.
View 2 RepliesI am trying to write a code that converts characters in string using a case select statements. For instance if I type the word "aeiou" the the word "<>[]/", also if I type "AEIOU" then <>[]/" should print but its not working here is a sample of my code so far.
[Code]...
I have a lot of really long strings that I want to test. Is it possible to use the CASE statement and compare it to the first 25 characters of the string to get a match?
View 14 RepliesI wrote a VB.Net application that displays HTML help files according to user's search results.A user types some keywords and receives a list of HTML help files containing these keywords.When a list item is selected the HTML file is displayed in WebBrowser control.The problem is that I cannot mark the keywords in the displayed HTML file. I need to highlight them like in a standard Help. I tried many options and nothing works.If I change HTML element style manually (background color for a specific string) all pictures attached to this page are not displayed. After "Refresh" operation the pictures are displayed but the text selection is not enabled.I hope there is a standard function for this operation but I cannot find it.
View 1 RepliesI am trying to auto tab to the next text box after my limit of characters has been reached in a text box. Visual Basic 2010 Can this be set in the properties? I have 7 boxes, each allowed to hold only one character.
View 5 Repliesis it possible to make first 60 characters in a rich text box a different color than the remaining text?
View 25 Repliesi trying "Removing the first 3 characters of text box's text".
i tried this
TextBox3.Text.Remove(3)
If TextBox1.Text.Length < 9 Then it have 1 charakter and it work i need that when the text is more then 9 charakters then it work.
View 6 RepliesFor example I only the second character in each line to be an x, while the 3nd to 10th character must be a hex digit.At the moment I use a Select Case, then check the position of the caret (using textbox.selectionstart) and see if the key being pressed is a "legal" character.Is there a better way of doing this as it slows down on large amounts of text.
This is the code I have at the moment:
Select Case TextBox1.SelectionStart
Case TextBox1.GetFirstCharIndexOfCurrentLine + 1
[code]......
I need a simple method of counting all characters in a text box and when a button is clicked a message must display if the amount of characters has exceeded 25.
View 4 RepliesPossibly a simple question, but I want to be able to "do nothing" if a value in a text box is less then 3 characters[code]...
View 5 Replieswrite a vb script which filtersout characters from a string
example input string is The.Quick.Red.Fox.Jumped.Over.The.Fence
and illegal characters are 'the' '.' 'Red' 'quick'
the output should be quick fox over fence
I am sending SNMP SystemName query to local host and in the output i m getting little square characters instead of the specific system name..
Imports System.Text
Class Form1
Dim commlength As Integer, miblength As Integer, datatype As Integer, datalength As Integer, datastart As Integer
[Code].....
I have a string of text i captured within AutoCAD (0.000000, 0.000000, 0.000000) wich is saved to a text based file named position.txt.as you probably have gatherd with a file name such as position.txt the text could be composed of any random number combination eg: (5.745379, 0.846290, 150.6459046).However for it to be of any use to me I need the captured string to exist without spaces or brackets how can i achiev this in VB.net?
View 2 Replieshow count textbox only this symbol # example:spider#spider#spider there is two hash symbols textbox count=2 like that i want to know code.
View 3 Repliesi wanted to restrict my text box to have only 10 characters.I have used the following code
[Code]...
I need to trim the last for characters off in a text box. These characters are either .jpg, .bmp, or .gif.
View 10 RepliesHow can i make a textbox so like when a button is pressed how can i make the textbox select a random text and put it in its text box.
View 7 RepliesIn VB.NET, I want to allow typing of non English Characters (For example, Russian, Turkish) in text box. How can I achieve this? Please let me know.
View 1 RepliesI need to delete some characters in a line from a text file.
How can do this using forms?
for example I have
1.pencil hbewe wqeqwe
2.pencil 2bq
wqweqeqw
3.eraser eqweqw eqweqw
I want to keep only the
1. pencil
2.pencil
3.eraser
in the file. How to do that?
I have a series of text boxes on my form, and my client wants me to filter out characters that aren't allowed, for example in the name field you cannot have symbols or numbers.
Now, he wants it so when you try and put in a special character it simply will not get entered into the text box. I know the logistics to this, but I'm not sure how I would go about coding it.
Basically what needs to happen is when the user types in characters like $, ^, 5, * etc, a function needs to recognise this and stop them from being entered into the textbox, whether it means deleting them as soon as they go in or interrupting the action altogether.
I can not find the proper way to verify characters only in a text box.I am having a hell of a time trying to understand all that.I have 3 errors in my code.One error is "Error-Reference to a non-shared member requires an object reference."the other two errors are in reference to an explicit conversion from string to double.strName is what I am using as my variable for the input of the name in txtName.text Below is my full code. "----" are used to separate the classes.Attached documents are in .PDF format and HAVE TO BE FOLLOWED to the letter.Pages 2 & 3 contains the UML diagram as well as how the project should look and the structure chart for the code. I am not truly sure if my DisplayReservation is what will work to use in the list box.Is there any other reference I could get to help me understand how to use a list box as the project requires.[code]
View 10 RepliesI am trying to automate the removal of lines in a text box with no characters or numbers. I have the following code, but it is not working.
Code:
Private Sub RemoveBlankToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RemoveBlankToolStripMenuItem.Click
Dim tmp() As String = RTB_01.Text.Split(CChar(vbNewLine))
[code]....
Removing the first 8 characters from a text string. How can I do it?
View 6 RepliesI have a requirement of storing the following lines in a text file using VB.Net
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "anup.dtd">
I am unable to add the entire line enclosing it between " and ". I have used the
[code].....
I which to use the text of a textbox to fill another text box. I only want to use the first 5characters of the text. I which not to change the original textbox text.
View 2 RepliesI want to check if text box has "?" character or specific numbers (ex "14"). How can I do that? It may have all kind of other letters too.
View 14 Replies