void CreateControls() { var buttonSize = new Vector2(100, 20); _lblName = new Label(this, Vector2.Zero); _btnJoinLeave = new Button(this, Vector2.Zero, buttonSize); _btnMembers = new Button(this, Vector2.Zero, buttonSize) { Text = "Members" }; _btnOnline = new Button(this, Vector2.Zero, buttonSize) { Text = "Online" }; _btnJoinLeave.Clicked += _btnJoinLeave_Clicked; _btnMembers.Clicked += btnMembers_Clicked; _btnOnline.Clicked += btnOnline_Clicked; var formSize = new Vector2(200, 200); _frmOnline = new GuildOnlineMembersForm(Parent, new Vector2(200, 200), formSize) { GuildInfo = GuildInfo, IsVisible = false }; _frmMembers = new GuildMembersForm(Parent, new Vector2(250, 250), formSize) { GuildInfo = GuildInfo, IsVisible = false }; RelocateControls(); }