private void ShowSubMenu(MaterialFlatButton btnSender, MaterialContextMenuStrip submenu) { Point ptLowerLeft = new Point(10, (btnSender.Height + 10)); ptLowerLeft = btnSender.PointToScreen(ptLowerLeft); submenu.Show(ptLowerLeft); }
private void leftSideMenu_Click(object sender, EventArgs e) { materialContextStrip.Items.Clear(); materialContextStrip.Items.Add("Profile Management"); materialContextStrip.Items.Add("User Setting"); materialContextStrip.Items.Add("User Help Menu"); materialContextStrip.Items.Add("User Sign Out"); materialContextStrip.ItemClicked += this.materialContextStrip_ItemClicked; materialContextStrip.Show(leftSideMenu, new Point(0, leftSideMenu.Height)); }