怎么实现像QQ聊天窗口的发送按钮下拉菜单? 如图:请教高手这样的效果怎么样实现的? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void button4_Click(object sender, EventArgs e) { // Point p = new Point(this.button4.Location.X+this.Location .X , this.button4.Location.Y + this.Height+this.Location .Y ); this.button4.ContextMenuStrip .Show(this.button4 , MousePosition ); } private void button4_Click(object sender, EventArgs e) { // Point p = new Point(this.button4.Location.X+this.Location .X , this.button4.Location.Y + this.Height+this.Location .Y ); this.button4.ContextMenuStrip .Show( MousePosition ); }先用contextmenustrip控件设计好菜单然后为this.button4.ContextMenuStrip = this.contextMenuStrip1; this.contextMenuStrip1.Show(this.Left + e.X,this.Top + e.Y); 要实现有下拉菜单的按扭,就用dotnetbar第三方控件.但是你说的qq的发送按扭,至于显示菜单的位置,自己修改.我的代码,是左键显示, private void button4_Click(object sender, EventArgs e) { this.button4.ContextMenuStrip =null; Point p =this.button4 .Parent .PointToScreen (this.button4 .Location ); p.Y += this.button4.Height; this.contextMenuStrip1.Show(p); }其实,显示菜单this.contextMenuStrip1.Show(p);就可以了,不要为button设置ContextMenuStrip 无法将类型“bool”隐式转换为“string" C#窗口切换问题 急,c# web页面 在登陆页面怎么做实现 按"回车键"时等同于点击 "登陆"按纽?? ImageButton的onclick为什么不能调用脚本函数 vs2008 datagridview 刷新 三层架构中的数据校验怎么写到Model类中。net2.0环境。 这样的正则怎么写啊! 有谁对swf文件件结构有深入的了解。 不能创建工程 请问如何在程序中实现将一个库中的所有内容... 获得图形非透明部分的region后,怎么把这个区域显示出来? 汉字保存时 ORA-01461: 仅可以为插入 LONG 列的 LONG 值赋值 错误
private void button4_Click(object sender, EventArgs e)
{
// Point p = new Point(this.button4.Location.X+this.Location .X , this.button4.Location.Y + this.Height+this.Location .Y );
this.button4.ContextMenuStrip .Show(this.button4 , MousePosition );
}
private void button4_Click(object sender, EventArgs e)
{
// Point p = new Point(this.button4.Location.X+this.Location .X , this.button4.Location.Y + this.Height+this.Location .Y );
this.button4.ContextMenuStrip .Show( MousePosition );
}
先用contextmenustrip控件设计好菜单然后为this.button4.ContextMenuStrip = this.contextMenuStrip1;
private void button4_Click(object sender, EventArgs e)
{
this.button4.ContextMenuStrip =null;
Point p =this.button4 .Parent .PointToScreen (this.button4 .Location );
p.Y += this.button4.Height;
this.contextMenuStrip1.Show(p);
}其实,显示菜单this.contextMenuStrip1.Show(p);就可以了,
不要为button设置ContextMenuStrip