家长/孩子互动 [英] Parent / Child Interaction

查看:78
本文介绍了家长/孩子互动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我确定这很简单,但在表格之间传递命令

对我来说是一件全新的事情,我是什么想要

做的是当我加载我的孩子表格时我想要一个菜单​​项

对父母要启用所以我试过......


- \

Dim objParentForm作为新的MDIParentForm


objParentform.menuitem46.enabled = True

- /

in childs loading活动,没有成功

关于史蒂夫

解决方案

史蒂夫,也许我错过了一些东西,但在你的父表单代码中,当你创建孩子时,为什么不在那里启用菜单项。例如。

Private Sub createChild()

Dim f作为新表格

f.MdiParent =我

f 。显示()

MainMenu1.MenuItems.Item(无论如何).Enabled = True

End Sub

问候

Hexathioorthooxalate

Steven Smith <一个******* @ discussions.microsoft.com>在消息中写道

news:04 **************************** @ phx.gbl ... < blockquote class =post_quotes>大家好

我相信这很简单,但在表格之间传递命令对我来说是一件全新的事情,我想要的是什么?当我加载我的子窗体时,我想要启用父窗口上的菜单项,所以我尝试了...

- \
Dim objParentForm如新的MDIParentForm

objParentform.menuitem46.enabled = True
- /

in childs loading事件,没有成功

关于史蒂夫




史蒂夫,也许我在你父母的表格代码中遗漏了什么东西

创建孩子,为什么不在那里启用菜单项。例如。

Private Sub createChild()

Dim f作为新表格

f.MdiParent =我

f 。显示()

MainMenu1.MenuItems.Item(无论如何).Enabled = True

End Sub

问候

Hexathioorthooxalate

Steven Smith <一个******* @ discussions.microsoft.com>在消息中写道

news:04 **************************** @ phx.gbl ... < blockquote class =post_quotes>大家好

我相信这很简单,但在表格之间传递命令对我来说是一件全新的事情,我想要的是什么?当我加载我的子窗体时,我想要启用父窗口上的菜单项,所以我尝试了...

- \
Dim objParentForm如新的MDIParentForm

objParentform.menuitem46.enabled = True
- /

in childs loading事件,没有成功

关于史蒂夫




好的,这似乎是一个合理的想法,但我如何获得访问

到列表索引及其相关的菜单项名称


Hi guys

I''m sure this is really simple, but passing commands
between forms is a whole new thing to me, what I want to
do is when I load my child form I would like a menu item
on the parent to be enabled so I tried...

--\
Dim objParentForm As New MDIParentForm

objParentform.menuitem46.enabled = True
--/
in the childs loads event, with no success
regards steve

解决方案

Steve, maybe I''m missing something but in your parent form code when you
create the child, why don''t you enable the menu item there too. Eg.
Private Sub createChild()
Dim f As New Form
f.MdiParent = Me
f.Show()
MainMenu1.MenuItems.Item(whatever).Enabled = True
End Sub
Regards
Hexathioorthooxalate
"Steven Smith" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...

Hi guys

I''m sure this is really simple, but passing commands
between forms is a whole new thing to me, what I want to
do is when I load my child form I would like a menu item
on the parent to be enabled so I tried...

--\
Dim objParentForm As New MDIParentForm

objParentform.menuitem46.enabled = True
--/
in the childs loads event, with no success
regards steve




Steve, maybe I''m missing something but in your parent form code when you
create the child, why don''t you enable the menu item there too. Eg.
Private Sub createChild()
Dim f As New Form
f.MdiParent = Me
f.Show()
MainMenu1.MenuItems.Item(whatever).Enabled = True
End Sub
Regards
Hexathioorthooxalate
"Steven Smith" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...

Hi guys

I''m sure this is really simple, but passing commands
between forms is a whole new thing to me, what I want to
do is when I load my child form I would like a menu item
on the parent to be enabled so I tried...

--\
Dim objParentForm As New MDIParentForm

objParentform.menuitem46.enabled = True
--/
in the childs loads event, with no success
regards steve




Ok that seems like a sound idea but how do I get access
to a list of indexes with their associated menu item names


这篇关于家长/孩子互动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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