Search textbox.
Search textbox.
Can you rephrase that sentence please?
Do you just want to check if textbox2 contains textbox1, or do you want to highlight textbox2's text(if it matches with textbox1)...? Or do you want to know the line it is found?
Do you just want to check if textbox2 contains textbox1, or do you want to highlight textbox2's text(if it matches with textbox1)...? Or do you want to know the line it is found?
U mean this?
Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
If TextBox2.Text = ("Something") Then TextBox1.Text = ("Something")
End Sub
End Class
It's .NET pratically everything is easy. All he has to do is make a variable with whatever string the user has entered, and with the help of a ugly looking Syntax, and a if statement he can then match the string with whatever .NET component he's dealing with.
Does not get any bit easier than that.
Does not get any bit easier than that.
You want this?
Code:
If TextBox2.Text = ("Hello") Then TextBox1.Text = ("Welcome")
Code:
If textbox2.contains(textbox1.text) then
msgbox.show("OHHH")
@alvaritos like that butt highlight Textbox2's multiline word.
So textbox1[Hack] Textbox2["Hack"-Highlighted.]
So textbox1[Hack] Textbox2["Hack"-Highlighted.]
You will need a richtextbox as "multiline textbox" to make this work:
[highlight="VB.Net"]Private Sub Highlight(Byval SearchString as string,Byval SelectionColor as Color)
RichTextBox1.Select(RichTextBox1.Text.IndexOf(Sear chString), SearchString.Length)
RichTextbox1.SelectionColor = selectioncolor
End Sub[/highlight]
See if that works, didn't test it.
Usage:
[highlight="VB.Net"]Highlight(Textbox1.Text,Color.Blue)[/highlight]
@FWESFWSERGFwesg
[highlight="VB.Net"]Private Sub Highlight(Byval SearchString as string,Byval SelectionColor as Color)
RichTextBox1.Select(RichTextBox1.Text.IndexOf(Sear chString), SearchString.Length)
RichTextbox1.SelectionColor = selectioncolor
End Sub[/highlight]
See if that works, didn't test it.
Usage:
[highlight="VB.Net"]Highlight(Textbox1.Text,Color.Blue)[/highlight]
@FWESFWSERGFwesg
Blub thats a richtextbox 
if(InStr(etc...

if(InStr(etc...
