Link to home
Start Free TrialLog in
Avatar of yaronusa
yaronusa

asked on

In c# csharp c sharp Can't rename a panel within a splitContainer??

I created a splitContainer, which automatically creates two panels divided by a splitter.

I can rename the splitContainer, but I can't rename the panels within it.

So if I renamed splitContainer1 to middleSection, its panels are still called splitContainer.panel1 and spiltContainer.panel2.

What the heck?
Avatar of zveljkovic
zveljkovic
Flag of Serbia image

This is probably a bug in VS 2005. But try this:
In solution explorer click + sign on the left of the form.
Open FormName.Designer.cs
add space or new line ( something that doesn't change code )
Save ( CTRL + S )
Go back to the Form Designer

See if it works :)
Avatar of yaronusa
yaronusa

ASKER

holy crap that worked! So now my splitContainer is called MiddleSection.

MiddleSection splitContainer has two panels, panel1 & panel2. I can't seem to rename them... any clue what else I could do? Thanks.
ASKER CERTIFIED SOLUTION
Avatar of zveljkovic
zveljkovic
Flag of Serbia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks!