Pls how do I write d code for find and replace in c# for a notepad program

Recommended Answers

All 2 Replies

What do you mean exactly? I dont understand your question.

You could use a modeless dialog (which is mostly just a new Form window) to fill in the kind of find and replace you want
Then use a combination of the IndexOf, Replace and Length methods from the String class and the Select method from the TextBox class. Success!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.