Hello
I was wondering if there was a way to change the name of say a command button or a text button throughout a project by doing something like a replace all.
Printable View
Hello
I was wondering if there was a way to change the name of say a command button or a text button throughout a project by doing something like a replace all.
Sure, just open up the .VBP file in noptepad, then do a search-replace in notepad.Quote:
Originally Posted by vb_student
Something like a replace all?
Why not just do a replace all?
It's in the Edit section of the menu.
You can set the scope of the find/replace with a radiobutton.
No, this is not going to let you change the name of any controls. You have to do what I said above.Quote:
Originally Posted by jeroen79
Notepad also has find/replace under the Edit menu. ;)
But you are right, I misinterpreted the question.
hey dave
i opened my .vbp file in notepad but can not seem any of the controls listed in there, it just seems to list the forms
Ya, my bad! Open the .FRM in notepad. Sorry.Quote:
Originally Posted by vb_student
What's the matter with jeroen79's answer?Quote:
Originally Posted by Dave Sell
You cant rename all the visual controls of a Form that way. You have to open up the .FRM in notepad to do it. Have you tried his way?Quote:
Originally Posted by MartinLiss
Well sure, but the normal way to do it is to change the name of the control in the IDE and then do a replace all.Quote:
Originally Posted by Dave Sell
You're right, why didn't I think of that?
yes, that sounds good
change the name of the control on the form and then do a replace thingie
i will check the .frm when i get back to work
thanks for all the tips
or get MZ Tools. When you change the name, it automatically changes the rest of them for you. It's an option that can be turned off.
what a great program!thanks for posting that dg!