给按钮添加下拉菜单

//给专家介绍添加下拉按钮 Button btn = new Button(); btn.Size = new Size(18, 33); btn.Location = new Point(this.button3.Width - btn.Width, this.button3.Height - btn.Height); btn.Text = "▼"; btn.FlatStyle = FlatStyle.Standard; btn.Font = new Font("Marlett ", 9); btn.Click += new EventHandler(btn_Click); this.button3.Controls.Add(btn);

 

显示效果如下:

 

 

点击三角按钮后,出现一个新增专家的菜单,效果如下:

 

 

你可能感兴趣的:(button)