How do I properly rename the WinForms SplitContainer control and its panels?

I have placed a splitter container on a form and want to rename it and its panels to something meaningful (since I'm going to add more SplitContainers to this form). But when I renamed splitContainer1 to mainSplitContainer, its panels are still named splitContainer1.Panel1 and splitContainer1.Panel2 (as long as I don't already have an object called splitContainer1) and I can't find a way to fix this. Do you know the way?

+2


a source to share


2 answers


You can use global search and replace. It is accessed with [Ctrl] + [Shift] + [H]



0


a source


You cannot rename panels because these are properties and not built-in controls.



0


a source







All Articles