private void pnlBase_Resize(object sender, EventArgs e) { lblCurrentUserName.Left = Width - lblCurrentUserName.Width - 20; cmdNext.Top = Height - cmdNext.Height - 10; cmdNext.Left = Width - cmdNext.Width - 25; cmdPrevious.Top = cmdNext.Top; cmdPrevious.Left = cmdNext.Left - cmdNext.Width - 10; }I then subclassed the panel into pnlQuery. In it's resize I have:
private void pnlQuery_Resize(object sender, EventArgs e) { if (txtQuantities != null) { txtQuantities.Left = Width - txtQuantities.Width - 15; txtSearchWords.Left = Width - txtQuantities.Width - 5; txtSearchWords.Height = Height - cmdNext.Top - 5; txtQuantities.Top = txtSearchWords.Top; } }When I run it it jumps back & forthe between the 2 events, and the controls don't end up where I want them. What's the right way to