情境菜单鼠标左键单击 [英] contextmenu & left mouse click
问题描述
新闻组上写了这个解决方案......但是我丢失了笔记.....并且每个人都知道它有多难。
搜索newgroups(档案)....所以我在这里再问一次。
i有一个按钮:button1和contextmenu:contextmenu1。
点击
鼠标的左键按钮执行(打开)contextmenu1的代码是什么。
提前感谢!
*" Sender" <我们** @ domain.com> scripsit:有人在很多天前在这个
新闻组上写了这个解决方案....但是我丢失了笔记.....并且每个人都知道它有多难搜索新组(档案)....所以我在这里再问一次。
我有一个按钮:button1和一个contextmenu:contextmenu1。
什么'通过点击鼠标的左键来执行(打开)contextmenu1的代码。
\\\
Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs)Handles Button1.Click
Me.ContextMenu1.Show(Me.Button1,New Point(0,0))
结束子
///
-
Herfried K. Wagner >
MVP·VB Classic,VB.NET
< http://www.mvps.org/dotnet>
工作得很好。 thx。
" Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息中写道
news:bm ************ @ ID-208219.news.uni-berlin.de ...* "发件人" <我们** @ domain.com> scripsit:有人在很多天前在这个
新闻组上写了这个解决方案......但是我丢失了笔记.....每个人都知道它有多难$ b来搜索newgroups(档案)....所以我在这里再问一次。
我有一个按钮:button1和一个contextmenu:contextmenu1。
什么'通过单击鼠标左键
来执行(打开)contextmenu1的代码。
\\\
Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As
System.EventArgs)处理Button1.Click Me.ContextMenu1.Show(Me.Button1,New Point(0,0))
End Sub
// /
-
Herfried K. Wagner
MVP·VB Classic,VB.NET
< http://www.mvps.org/dotnet>
Dim position As System.Drawing.Point
position.X = Button1.Left
position .Y = Button1.Top + Button1.Height
ContextMenu1.Show(我,positi on)
此代码将显示菜单,其左边缘与左边缘对齐
按钮,其顶边与底边对齐按钮。
" Sender" <我们** @ domain.com>在消息中写道
news:或************** @ TK2MSFTNGP10.phx.gbl ...有人写了解决方案这很多天以前在这个
新闻组....但我丢失了笔记.....每个人都知道搜索新组(档案)是多么困难
....所以这里我再问一次。
我有一个按钮:button1和一个contextmenu:contextmenu1。
通过单击LEFT按钮执行(打开)contextmenu1的代码是什么
鼠标。
提前致谢!
somebody wrote the solution for this many many days ago on this
newsgroup....but I lost the notes..... and everyone knows how hard it is to
search on newgroups (archives).... so here I am asking again.
i have a button: button1 and a contextmenu: contextmenu1.
what''s the code to execute (open) contextmenu1 by clicking LEFT button of
the mouse.
thanks in advance!
* "Sender" <us**@domain.com> scripsit:somebody wrote the solution for this many many days ago on this
newsgroup....but I lost the notes..... and everyone knows how hard it is to
search on newgroups (archives).... so here I am asking again.
i have a button: button1 and a contextmenu: contextmenu1.
what''s the code to execute (open) contextmenu1 by clicking LEFT button of
the mouse.
\\\
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.ContextMenu1.Show(Me.Button1, New Point(0, 0))
End Sub
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
worked very well. thx.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bm************@ID-208219.news.uni-berlin.de...* "Sender" <us**@domain.com> scripsit:somebody wrote the solution for this many many days ago on this
newsgroup....but I lost the notes..... and everyone knows how hard it is to search on newgroups (archives).... so here I am asking again.
i have a button: button1 and a contextmenu: contextmenu1.
what''s the code to execute (open) contextmenu1 by clicking LEFT button of the mouse.
\\\
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click Me.ContextMenu1.Show(Me.Button1, New Point(0, 0))
End Sub
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Dim position As System.Drawing.Point
position.X = Button1.Left
position.Y = Button1.Top + Button1.Height
ContextMenu1.Show(Me, position)
This code will show the menu with its left edge aligned with the left edge
of the button, and its top edge aligned witht the bottom edge of the button.
"Sender" <us**@domain.com> wrote in message
news:Or**************@TK2MSFTNGP10.phx.gbl...somebody wrote the solution for this many many days ago on this
newsgroup....but I lost the notes..... and everyone knows how hard it is to search on newgroups (archives).... so here I am asking again.
i have a button: button1 and a contextmenu: contextmenu1.
what''s the code to execute (open) contextmenu1 by clicking LEFT button of
the mouse.
thanks in advance!
这篇关于情境菜单鼠标左键单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!