Results 1 to 14 of 14

Thread: changing the name of a command button throughout a project

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    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.

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: changing the name of a command button throughout a project

    Quote 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.

  3. #3
    Frenzied Member
    Join Date
    Oct 2003
    Posts
    1,301

    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.

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: changing the name of a command button throughout a project

    Quote 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.

  5. #5
    Frenzied Member
    Join Date
    Oct 2003
    Posts
    1,301

    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.

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    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

  7. #7
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: changing the name of a command button throughout a project

    Quote 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.

  8. #8

  9. #9
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: changing the name of a command button throughout a project

    Quote 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.

  10. #10
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: changing the name of a command button throughout a project

    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?
    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.

  11. #11
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    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.

  12. #12

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    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

  13. #13
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  14. #14
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    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
  •  



Click Here to Expand Forum to Full Width