I've placed a split container on a form and want to rename it and its panels to something meaningful (as I am going to add more SplitContainers on this form). Butwhen I rename splitContainer1 to mainSplitContainer, its panels are still named splitContainer1.Panel1 and splitContainer1.Panel2 (while i already have no object called splitContainer1) and I can't find a way to fix this. Do you know the way?
Asked
Active
Viewed 2,970 times
2
-
What version of VS are you running? In VS 2005 at least on my machine, the designer correctly renames all references, including the panel references. – Eric W May 04 '10 at 19:34
-
Visual Studio 2010 (not a beta) – Ivan May 05 '10 at 00:26
2 Answers
2
You can't rename panels, because these are properties not embedded controls.

Jonathan Applebaum
- 5,738
- 4
- 33
- 52
0
You could use a global search and replace. This is accessed by [Ctrl] + [Shift] + [H]

Hoppy
- 136
- 8
-
Seems a bit too brutal when working with visual designer. But yes, I know I can and I shall try if there is no more lawful way. – Ivan May 04 '10 at 19:21
-
Just a little warning: I've just tried a global search and replace and it's destroyed my project :-( I guess it must have duplicated a control name or something – FrinkTheBrave Feb 24 '13 at 08:06