dcsimg
Results 1 to 5 of 5
  1. #1

    Thread Starter
    New Member IndicSoftware's Avatar
    Join Date
    Aug 2017
    Location
    India
    Posts
    13

    Renaming a Project with inline controls

    Hello,

    I am trying to modify the superb and feature rich PhotoDemon image editor written by Tanner Helland.

    This project has 52 inline controls.

    As I am planning to add a few features to it, I want to rename the project from PhotoDemon to PhotoDemonNewV.

    As soon as I change the project name in Project Properties dialog most of the inline controls get converted into picture box.

    Is there any reliable way to rename the project while keeping everything intact?

    Regards,
    --
    For,
    Indic Software

    Murphy's law: Logic is a way of coming to the wrong conclusion with confidence !!!

  2. #2
    Frenzied Member gibra's Avatar
    Join Date
    Oct 2009
    Location
    ITALY
    Posts
    1,537

    Re: Renaming a Project with inline controls

    First of all: make a copy of the original PhotoDemon project, then:
    - open (if close) the Project panel (F4) from View menu
    - open (if close) the Project manager panel (CTRL+R) from View menu
    - on Project manager panel select the name of project (should be the first item) , i.e.: PhotoDemon - PhotoDemon.vbp
    - on Project panel now you see only the project name PhotoDemon, then rename PhotoDemon to PhotoDemonNewV
    All user controls will be updated automatically.
    Save the project.

  3. #3

    Thread Starter
    New Member IndicSoftware's Avatar
    Join Date
    Aug 2017
    Location
    India
    Posts
    13

    Re: Renaming a Project with inline controls

    Hello,

    Thanks for the tip. I have already tried that and all possible ways but without success.
    Here is what error I am getting Name:  PhotoDemonRenameError.png
Views: 28
Size:  4.4 KB

    In this dialog if I click on Debug VB hangs and I am not even able to exit from it.

    But if click on End I will be presented another control name with the same or similar error.

    Regards,
    --
    For,
    Indic Software

    Murphy's law: Logic is a way of coming to the wrong conclusion with confidence !!!

  4. #4
    Frenzied Member gibra's Avatar
    Join Date
    Oct 2009
    Location
    ITALY
    Posts
    1,537

    Re: Renaming a Project with inline controls

    Right.
    This occur because VB6 make a ReadOnly copy of each file while change it.

    Alternatives:
    1) Copy the entire project to a different folder (i.e. PhotoDemoNew) ed use this folder. Of course, rename the VBP file to PhotoDemoNew.vbp
    2) use a text editor to change the project name within the FRM files (not recommended)

  5. #5
    Fanatic Member
    Join Date
    Feb 2017
    Posts
    881

    Re: Renaming a Project with inline controls

    Hello, when I need to do such changes, I do them by text editing all the files.

    I use the freeware program TexRep for mass text replace.

    Of course the project must be closed from the IDE before doing that and make a full project backup first.

    In your case, it would be to replace PhotoDemon with PhotoDemonNewV in all and every project file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width