T
thomasamillergoogle
I have a MainForm with a Panel1. My project also has a UserControl1.
When a nav button is clicked in the MainForm the Usercontrol1 is loaded
into the MainForm.Panel1. All that is working beautifully.
I went into the user controls and added a label1 and a button1. When
the button1 is clicked the I put a breakpoint on Label1 and the
Label1.Location property is set to {1,1} which is obviously wrong - it
should be {333,500}.
Is there something I can override so I can get the location of the
Label1 after the usercontrol has been added to the MainForm.Panel1 ?
What am I doing wrong?
P.S. I kind of over simplified things, I have a bunch of panels that
are being added dynamically to eacy other, it is hard to explain
neatly.
When a nav button is clicked in the MainForm the Usercontrol1 is loaded
into the MainForm.Panel1. All that is working beautifully.
I went into the user controls and added a label1 and a button1. When
the button1 is clicked the I put a breakpoint on Label1 and the
Label1.Location property is set to {1,1} which is obviously wrong - it
should be {333,500}.
Is there something I can override so I can get the location of the
Label1 after the usercontrol has been added to the MainForm.Panel1 ?
What am I doing wrong?
P.S. I kind of over simplified things, I have a bunch of panels that
are being added dynamically to eacy other, it is hard to explain
neatly.