1,105,395 Community Members

Code to Find Button for textbox character in VB.Net

Member Avatar
DM Galaxy
Junior Poster in Training
65 posts since Aug 2013
Reputation Points: -6 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 5 [?]
 
-1
 

I am creating the Notepad.exe app,
So I want to know Some Codes here.
Need Codes For:
• Find,
• Find Next,
• Replace with.,
• Replace all with.

Please Help me out by solving this thread.

Member Avatar
Reverend Jim
Noli mentula
5,440 posts since Aug 2010
Reputation Points: 746 [?]
Q&As Helped to Solve: 653 [?]
Skill Endorsements: 51 [?]
Moderator
Featured
 
1
 

You have to show some effort. We are not going to write this app for you. Even a minimal knowledge of vb is sufficient to write what you are asking. It's basic string manipulation.

Member Avatar
tinstaafl
Postaholic
2,012 posts since Jun 2010
Reputation Points: 559 [?]
Q&As Helped to Solve: 402 [?]
Skill Endorsements: 35 [?]
 
0
 

Here's one place to start

Member Avatar
DM Galaxy
Junior Poster in Training
65 posts since Aug 2013
Reputation Points: -6 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 5 [?]
 
0
 

@ Revered Jim,
Yeah,
I can understand...
But I tried to do it so before.
But it succedd half, and rest not work for me.

I Just make the find button. but it can find the first word that I type on the find box and the form1.textbox...

Error I cause:
• If a word is repeating 5 times then I have to find that word.
Then I get the 1st word only while I can't skip the 1st.
So That I need Help.

I am not saying that create application for me.
But help me to create my own application

Member Avatar
Reverend Jim
Noli mentula
5,440 posts since Aug 2010
Reputation Points: 746 [?]
Q&As Helped to Solve: 653 [?]
Skill Endorsements: 51 [?]
Moderator
Featured
 
0
 

You can specify the starting index in the Substring method. Let's say you are looking for the string "the" in the phrase "the quick brown fox jumped over the lazy white dog". Once you have found the index of the first "the" you can start looking at that index plus onbe to search for the next occurrence. Or you can start looking at that index plus the length of the string you are looking for.

Member Avatar
DM Galaxy
Junior Poster in Training
65 posts since Aug 2013
Reputation Points: -6 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 5 [?]
 
0
 

@tinstaafl:
You are right same way,
But I need some codingwith explanation.

If you could tell me that How can I make The Cursor position then I can make it. But i can't Understand it so please explain me the code

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article