code_junkie

MSV08-C#: How do I stop two groupboxes from auto-parenting themselves when dragged on top of one another?

Nov 12th, 2011
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. private void radioButton1_CheckedChanged(object sender, EventArgs e)
  2. {
  3. groupBox1.Location = new System.Drawing.Point(198, 234);
  4. groupBox2.Location = new System.Drawing.Point(660, 234);
  5. groupBox1.Visible = true;
  6. groupBox2.Visible = false;
  7.  
  8. }
  9.  
  10. private void radioButton2_CheckedChanged(object sender, EventArgs e)
  11. {
  12. groupBox1.Location = new System.Drawing.Point(660, 234);
  13. groupBox2.Location = new System.Drawing.Point(198, 234);
  14. groupBox1.Visible = false;
  15. groupBox2.Visible = true;
  16. }
Add Comment
Please, Sign In to add comment