|
-
Mar 17th, 2005, 02:03 PM
#1
Thread Starter
Frenzied Member
changing the name of a command button throughout a project
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.
-
Mar 17th, 2005, 02:05 PM
#2
Re: changing the name of a command button throughout a project
 Originally Posted by vb_student
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.
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
-
Mar 17th, 2005, 02:09 PM
#3
Frenzied Member
Re: changing the name of a command button throughout a project
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.
-
Mar 17th, 2005, 02:10 PM
#4
Re: changing the name of a command button throughout a project
 Originally Posted by jeroen79
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.
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
-
Mar 17th, 2005, 02:14 PM
#5
Frenzied Member
Re: changing the name of a command button throughout a project
Notepad also has find/replace under the Edit menu. 
But you are right, I misinterpreted the question.
-
Mar 18th, 2005, 10:58 AM
#6
Thread Starter
Frenzied Member
Re: changing the name of a command button throughout a project
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
-
Mar 18th, 2005, 11:16 AM
#7
Re: changing the name of a command button throughout a project
 Originally Posted by vb_student
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.
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
-
Mar 18th, 2005, 12:00 PM
#8
Re: changing the name of a command button throughout a project
 Originally Posted by Dave Sell
Ya, my bad! Open the .FRM in notepad. Sorry.
What's the matter with jeroen79's answer?
-
Mar 18th, 2005, 12:04 PM
#9
Re: changing the name of a command button throughout a project
 Originally Posted by MartinLiss
What's the matter with jeroen79's answer?
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?
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
-
Mar 18th, 2005, 01:02 PM
#10
Re: changing the name of a command button throughout a project
 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?
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.
-
Mar 18th, 2005, 03:32 PM
#11
Re: changing the name of a command button throughout a project
You're right, why didn't I think of that?
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
-
Mar 18th, 2005, 06:09 PM
#12
Thread Starter
Frenzied Member
Re: changing the name of a command button throughout a project
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
-
Mar 18th, 2005, 06:19 PM
#13
Re: changing the name of a command button throughout a project
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.
-
Mar 18th, 2005, 07:33 PM
#14
Re: changing the name of a command button throughout a project
what a great program!thanks for posting that dg!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|