Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
[ Sorry for my bad English. Because i am weak in English. ]

I want to make a string replacing software.

which word have to replace it will save in a txt or xml file.

example: original=a replace=am replace+shift=all

it means when i will press 'a' it will type 'am' and when i will press 'a+shift' it will type 'all'.

there must be an enable and disable option for that in ComboBox.

How to do that???
Posted
Updated 27-Oct-13 19:01pm
v2
Comments
Ron Beyer 28-Oct-13 0:56am    
Ok... So what is your question?
Mr. Coder 007 28-Oct-13 1:02am    
How to do that???
_Maxxx_ 28-Oct-13 1:02am    
Your English isn't too bad - but your question is!
The folk here are generally happy to help you if you have a specific problem - have tried something and are stuck, or are getting an error you cannot figure out.
They generally aren't here to just write a program for you.
If you _have_ tried something then post the code & say what specific problems you are having - then people will be able to help you.
BillWoodruff 28-Oct-13 1:09am    
What happens when you want to type "a lazy dog" and your program is running, and what appears on screen is "am lamzy dog" ? Or, you wish to type "10:34AM," and what appears on screen is "10:34allM" ?
Mr. Coder 007 28-Oct-13 1:13am    
yes

1 solution

1. Choose an IDE
2. Create a Window or dialog-based application
3. Add a menu or control to select a file
4. Add code to the function that is triggered when calling that command: this code should open a file dialog box.
5. Add controls to enter the strings that should be found and replaced
6. Add a menu or control to start replacing strings within the selected file.
7. Add code to the function triggered by this menu or control: it should verify that you did select a file and enter find replace strings. If either entry is missing, pop up an error message. Else open the file and replace stuff.

That's about as detailed I am going to be at this point, since you failed to provide any information as to which of these steps you are having problems with, or whether you have even started on any of them!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900