以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 请教窗体的呼出位置 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=75414) |
||||
-- 作者:ljh29206 -- 发布时间:2015/10/8 10:22:00 -- 请教窗体的呼出位置 我有一组 button 的案件
我想 按 一下 button 呼出一个窗口
窗口右上角的定位 跟 button 的 右上角对其。
请教如何写 这个代码?
还有 message.show 能否做到这个效果? [此贴子已经被作者于2015/10/8 10:23:41编辑过]
|
||||
-- 作者:大红袍 -- 发布时间:2015/10/8 10:42:00 -- 可参考
|
||||
-- 作者:ljh29206 -- 发布时间:2015/10/8 10:45:00 -- 好东西 嘿嘿 谢谢 老师 |
||||
-- 作者:ljh29206 -- 发布时间:2015/10/8 11:04:00 -- 老师 在问下
我窗口 在全局事件的 click 里面 设置的
先判断了 控件 为 button类型,
再运行以下代码 提示错误
If e.sender.Button = MouseButtons.Left Then ContextMenus("俺的菜单").Show(e.Sender,0,e.Sender.Height) \'则在鼠标位置显示快捷菜单 End If
未找到类型“Button”的公共成员“Button”。 |
||||
-- 作者:大红袍 -- 发布时间:2015/10/8 11:11:00 -- 不用判断,直接写
ContextMenus("俺的菜单").Show(e.Sender,0,e.Sender.Height) \'则在鼠标位置显示快捷菜单 |