上下文菜单帮助再次... [英] Context Menu Help again...

查看:74
本文介绍了上下文菜单帮助再次...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨天写了这篇文章......很多人都建议解决这个问题。但它没有工作
。让我再说一遍:


我有一个只有命令按钮的表单。然后我插入了一个上下文菜单

(contextmenu1)。现在,当我想运行表单时,我想显示这个

上下文菜单,当有人左键单击(不是右键单击)此命令按钮时。

很多人告诉我使用contextmenu1.show方法。


在button1的click事件中,我输入了以下代码:


contextmenu1.show()


但这不起作用。一旦我按下输入,该行变为蓝色(

意味着一些错误)。请帮忙。


谢谢。

I wrote about this yesterday...and many people advised the solution. But it
didn''t work. Let me put it again:

I have a form with just command button. Then I inserted a context menu
(contextmenu1). Now when I want to run the form I want to display this
context menu when someone LEFT click (not right click) this command button.
Many people told me to use contextmenu1.show method.

In the click event of the button1 I entered the following code:

contextmenu1.show()

But this doesn''t work. As soon as I press enter the line becomes blue (that
means some error). Please help .

Thanks.

推荐答案

原始建议非常接近。你需要用ContextMenu1.Show来指出两个参数

,控件(你的按钮名称将起作用)一个

点,你想要上下文菜单appaear 。在我的点击事件下我

刚试过(并且它有效)这个


昏暗作为新点

asd.X = 2


asd.Y = 3

ContextMenu1.Show(Button1,asd)


gabe



" Sender" <我们** @ domain.com>在留言中写道

新闻:#e ************** @ TK2MSFTNGP12.phx.gbl ...
the original advice was pretty close. you need to spec out two arguments
with ContextMenu1.Show, the control (your button by name will work) an the
point at which you want the context menu to appaear. under my click event i
just tried (and it worked) this

Dim asd As New Point
asd.X = 2

asd.Y = 3

ContextMenu1.Show(Button1, asd)

gabe



"Sender" <us**@domain.com> wrote in message
news:#e**************@TK2MSFTNGP12.phx.gbl...
我写了这个昨天......很多人都建议解决方案。但是
它没有用。让我再说一遍:

我有一个只有命令按钮的表单。然后我插入了一个上下文菜单
(contextmenu1)。现在当我想运行表单时,我想显示这个
上下文菜单,当有人左键单击(不是右键单击)这个命令
按钮。很多人告诉我使用contextmenu1.show方法。

在button1的click事件中,我输入了以下代码:

contextmenu1.show()
<但是这不起作用。一旦按下输入,该行变为蓝色
(这意味着一些错误)。请帮忙。

谢谢。
I wrote about this yesterday...and many people advised the solution. But it didn''t work. Let me put it again:

I have a form with just command button. Then I inserted a context menu
(contextmenu1). Now when I want to run the form I want to display this
context menu when someone LEFT click (not right click) this command button. Many people told me to use contextmenu1.show method.

In the click event of the button1 I entered the following code:

contextmenu1.show()

But this doesn''t work. As soon as I press enter the line becomes blue (that means some error). Please help .

Thanks.



" Sender" <我们** @ domain.com> schrieb
"Sender" <us**@domain.com> schrieb
我昨天写了这篇文章......很多人都建议解决这个问题。
但它没有用。让我再说一遍:

我有一个只有命令按钮的表单。然后我插入了一个上下文菜单(contextmenu1)。现在,当我想运行表单时,我想在有人左键单击(不是右键单击)
此命令按钮时显示此上下文菜单。很多人告诉我使用contextmenu1.show
方法。

在button1的click事件中,我输入了以下代码:

contextmenu1.show()

但这不起作用。一旦按下输入,该行变为蓝色
(这意味着一些错误)。请帮忙。
I wrote about this yesterday...and many people advised the solution.
But it didn''t work. Let me put it again:

I have a form with just command button. Then I inserted a context
menu (contextmenu1). Now when I want to run the form I want to
display this context menu when someone LEFT click (not right click)
this command button. Many people told me to use contextmenu1.show
method.

In the click event of the button1 I entered the following code:

contextmenu1.show()

But this doesn''t work. As soon as I press enter the line becomes blue
(that means some error). Please help .




哪个错误?

-

Armin



Which error?
--
Armin


谢谢..

" gabe" < gabe at rebelbase dot com>在留言中写道

新闻:uV ************** @ tk2msftngp13.phx.gbl ...
Thanks ..
"gabe" <gabe at rebelbase dot com> wrote in message
news:uV**************@tk2msftngp13.phx.gbl...
原来的建议很漂亮关。你需要用ContextMenu1.Show来指出两个参数
,控件(你的按钮名称将起作用)是你希望上下文菜单适应的点。在我的点击事件下,
i刚试过(并且有效)这个

昏暗的新点
asd.X = 2

asd.Y = 3

ContextMenu1.Show(Button1,asd)

gabe


发件人 <我们** @ domain.com>在消息中写道
新闻:#e ************** @ TK2MSFTNGP12.phx.gbl ...
the original advice was pretty close. you need to spec out two arguments
with ContextMenu1.Show, the control (your button by name will work) an the
point at which you want the context menu to appaear. under my click event i just tried (and it worked) this

Dim asd As New Point
asd.X = 2

asd.Y = 3

ContextMenu1.Show(Button1, asd)

gabe



"Sender" <us**@domain.com> wrote in message
news:#e**************@TK2MSFTNGP12.phx.gbl...
昨天我写了这篇文章...许多人建议解决方案。但是
I wrote about this yesterday...and many people advised the solution. But


没有用。让我再说一遍:

我有一个只有命令按钮的表单。然后我插入了一个上下文菜单
(contextmenu1)。现在,当我想运行表单时,我想显示这个
上下文菜单,当有人左键单击(不是右键单击)此命令
didn''t work. Let me put it again:

I have a form with just command button. Then I inserted a context menu
(contextmenu1). Now when I want to run the form I want to display this
context menu when someone LEFT click (not right click) this command


按钮。

很多人告诉我使用contextmenu1.show方法。

在button1的click事件中,我输入了以下代码:

contextmenu1.show()
但这不起作用。一旦按下输入,该行变为蓝色
Many people told me to use contextmenu1.show method.

In the click event of the button1 I entered the following code:

contextmenu1.show()

But this doesn''t work. As soon as I press enter the line becomes blue


表示有些错误)。请帮忙。

谢谢。
means some error). Please help .

Thanks.




这篇关于上下文菜单帮助再次...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆