1

I already have a folder that contains UserControls in my WinForms project. But now I need to rename those folders.

I have done it by right clicking on folder and rename it but I can't refer to the new name.

Old names:

enter image description here

New names:

enter image description here

0

Renaming the folders does not change the namespaces, which is what you posted. If you renamed them in solution explorer in Visuals Studio, you don't need to change anything. If you renamed it in Windows Explorer, click the "show all files" button, right click on the folder, and click "include in project".

(And next time, you should ask questions like this on Stack Overflow to get more responses.)

2
  • thanks for responding. But didn't work ,so I tried to create another folder (test) then copy all usercontrol in (client) to the new folder then delete the (client) folder, BUT cant find using ParcInfo.test and the old one using ParcInfo.Client is still working
    – driwand
    Apr 12 '19 at 13:13
  • it work by changing the name space using this i.imgur.com/OjR0mJo.png
    – driwand
    Apr 12 '19 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.