How to correctly rename a SplitContainer WinForms control and its panels?
I've placed a split container on a form and want to rename it and its panels开发者_C百科 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?
You can't rename panels, because these are properties not embedded controls.
You could use a global search and replace. This is accessed by [Ctrl] + [Shift] + [H]
精彩评论