Cor,Herfried,Ken Tucker - 这些问题没有答案? [英] Cor, Herfried, Ken Tucker - no answer to these questions?

查看:61
本文介绍了Cor,Herfried,Ken Tucker - 这些问题没有答案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我问了两个相当简单的问题,或者我认为,但是根本没有收到任何

的想法。


1.什么是控制权MS在Outlook Express中使用包含

附件?它似乎是一个多列列表框,但列数是

以某种方式固定,它包含图标和文本。


2.当我添加一个主菜单到mdi应用程序中的子窗体,并使用此代码,



菜单不合并(我不希望它与父代合并''菜单):

Dim i As Integer


For i = 0 To MainMenu1.MenuItems.Count - 1


MainMenu1.MenuItems(i).MergeType = MenuMerge.Remove


下一页


但我希望菜单显示在子表单上,它确实如此,只要我这不是真的让它成为一个孩子。如果我这样称呼:


Dim newmdichild作为新按钮测试


''newmdichild.MdiParent =我

newmdichild.Show()


这是一个快乐的露营者,但它不是一个儿童形式,它消失在

mdi后面父母,当它没有焦点。但当我取消注释

''newmdichild.mdiparent = me时,表单现在是一个子表单,但它没有

菜单!


我想要的是它有自己的菜单,并且在同一个

时间成为子表单。怎么办呢?


Tx任何帮助。


Bernie Yaeger

解决方案

嗨伯尼,


很抱歉听到您的问题已经过了一段时间没有回答但是你必须知道这里的每个人都禁止微软

员工完全自愿帮助,所以可能需要一段时间

才能回答你的问题。请耐心等待。

1. MS在Outlook Express中使用包含
附件的控件是什么?它似乎是一个多列列表框,但列#
以某种方式固定,它包含图标和文本。


AFAIK这是ListView控件。有很多可以应用的高级

扩展,它可能是框架中最可扩展的

控件。

2.当我在mdi应用程序中向子表单添加主菜单并使用此代码时,
菜单不会合并(我不希望它与父级菜单合并) ):
Dim i As Integer

对于i = 0到MainMenu1.MenuItems.Count - 1

MainMenu1.MenuItems(i).MergeType = MenuMerge.Remove

下一个


不要按代码合并项目,使用

菜单项可用的合并属性。如果您希望项目与其父项合并,则将合并

顺序设置为与父菜单中的项目相同的值。如何合并所有

取决于合并类型属性。

我想要的是它有自己的菜单并且是同一个子形式
时间。如何做到这一点?




不可能,菜单将始终附加。如果你不想要这个

功能,你将不得不实现自己的MDI接口。您可以

将表格添加到容器中,将其隐藏属性设置为

false,但要注意有* allot *涉及的工作!


尼克。


Nick,


伯尼和那些在这里回答很多的人在一起。他开始的时候我想到了你离开的那段时间。


他总是很友好,我发现他现在也以友好的方式做到了。

虽然没有必要直接在Herfried,Ken和我设置它,但是很多其他人在这里帮助了很多其他人。

伯尼在他之前的消息中曾为Outlook写过它没有写出什么样的前景

是的,我认为因此不是Outlook Express,在我看来

是还有比我好的答案。


我原本计划查看它可能是什么,之后我认为

控件是一个创建的用户组件列表视图中最重要的部分是

和一个按钮栏(我认为它看起来像powertools中的那个)

一些组合框,一些文本框和一个按钮。 br />

我还计划了解如何帮助他完成MDI。 Armin我们

MDI组专家已经有一段时间了。我已经完成了

。然而,从菜单'我发现总是很糟糕

要做。


所以我现在等待伯尼的回答,如果你的答案适合并且愿意什么时候

不合适的时候我有时间花一些时间来帮助他。


Cor


" Bernie Yaeger" <是***** @ cherwellinc.com> schrieb:

我问过两个相当简单的问题,或者我想过,但根本没有收到任何想法。




请避免向某些人发帖。相反,将它们解决为整个团队的



(我没有时间回复,因为我昨天买了一台新电脑而且我

仍在设置所有内容。)


-

MS Herfried K. Wagner

MVP< ; URL:http://dotnet.mvps.org/>

VB< URL:http://dotnet.mvps.org/dotnet/faqs/>


I asked two fairly simple questions, or so I thought, but have received no
ideas at all.

1. What is the control that MS uses in Outlook Express that contains
attachments? It appears to be a multicolumn listbox but the # of columns is
somehow fixed and it contains icons as well as text.

2. When I add a main menu to a child form in an mdi app, and use this code,
the
menu does not merge (I do not want it to merge with the parent''s menu):
Dim i As Integer

For i = 0 To MainMenu1.MenuItems.Count - 1

MainMenu1.MenuItems(i).MergeType = MenuMerge.Remove

Next

But I want the menu to appear on the child form, and it does, so long as I
don''t really make it a child. If I call it like this:

Dim newmdichild As New buttonstest

''newmdichild.MdiParent = Me

newmdichild.Show()

it''s a happy camper, but it is not a child form and it disappears behind the
mdi parent when it doesn''t have focus. But when I uncomment
''newmdichild.mdiparent = me, the form is now a child form but it has no
menu!

What I want is for it to have its own menu and be a child form at the same
time. How can this be done?

Tx for any help.

Bernie Yaeger

解决方案

Hi Bernie,

Sorry to hear that your questions are going some time without being
answered but you must be aware that everyone here bar the Microsoft
employees are helping completely voluntarily so it may take a little while
for your questions to be answered. Just have a little patience.

1. What is the control that MS uses in Outlook Express that contains
attachments? It appears to be a multicolumn listbox but the # of columns
is somehow fixed and it contains icons as well as text.
AFAIK this is the ListView control. There are plenty of advanced
extensions that can be applied to it, and it is probably the most extensible
control available in the framework.
2. When I add a main menu to a child form in an mdi app, and use this
code, the
menu does not merge (I do not want it to merge with the parent''s menu):
Dim i As Integer

For i = 0 To MainMenu1.MenuItems.Count - 1

MainMenu1.MenuItems(i).MergeType = MenuMerge.Remove

Next
Don''t merge items by code, use the merge properties available for the
menu item. If you want an item to merge with it''s parent you set the merge
order to the same value as an item in the parent menu. How it merges all
depends on the merge type property.
What I want is for it to have its own menu and be a child form at the same
time. How can this be done?



It can''t, the menu will always be attached. If you don''t want this
functionality you will have to implement your own MDI interface. You can
add forms to containers providing their hidden property toplevel is set to
false, but be warned there is *allot* of work involved!

Nick.


Nick,

Bernie is with the ones who answer a lot here. He started I thought in that
time you was away.

He is always friendly and I find he does it as well now in a friendly way.
Although there is no need to set it directly on Herfried, Ken and me, there
are a lot of others who helps as well here.

Bernie had for Outlook in his previous message not written what outlook it
was for and I thought it was therefore not Outlook express and in my opinion
are there better ones to answer that than me.

I had planned to check what it could be, after that I thought that the
control was a created usercomponent with as most important part the listview
and a buttonbar (I have the idea it looks as that one in the powertools)
some comboboxes, some textboxes and a button.

I also planned to find out how I could help him with the MDI. Armin our
group specialist in MDI is already a while gone. I have done as well
something with that. However that merging from menu''s I find always awfull
to do.

So I wait now on the answer on Bernie if your answer fit and will when it
does not fit when I have time other take some time in it to help him.

Cor


"Bernie Yaeger" <be*****@cherwellinc.com> schrieb:

I asked two fairly simple questions, or so I thought, but have received no
ideas at all.



Please avoid addressing posts to certain people. Instead, address them to
the whole group!

(I didn''t have time to reply because I got a new computer yesterday and I am
still setting everything up.)

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


这篇关于Cor,Herfried,Ken Tucker - 这些问题没有答案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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