关于DropDownPanel [英] about DropDownPanel
问题描述
首先,感谢您分享您的知识.
我正在寻找要在C#项目中使用的树组合,并在codeproject中找到您的树,这是一个非常好的解决方案!但是实际上我在使用它时遇到一个问题:当我将控件包含在选项卡中时,在文件DropDownWindowHelper.cs上收到错误消息使用"new"创建对象的实例",代码为:
Hi,
first of all, thanks for sharing your knowledge.
i was searching for some tree combo to use in a C# project and found yours here in codeproject, it''s a very good solution!!! but actually i am having one issue using it: when i include the control inside a tab i receive the error message "Use ''new'' to create an instance of the object" on file DropDownWindowHelper.cs, the code is:
public void ShowDropDown(Form Owner, Form DropDown, Point Location)
_owner = Owner;
_dropDown = DropDown;
Application.AddMessageFilter(_filter);// Start checking for the
// popup being cancelled
DropDown.StartPosition = FormStartPosition.Manual; // Set the location
// of the popup form:
DropDown.Location = Location;
Owner.AddOwnedForm(DropDown); // Make it owned by the window that's
// displaying it:
正在报告以下错误:
the error is being reported for:
Owner.AddOwnedForm(DropDown);
其中Owner为null.
我注意到当组合不在选项卡控件中时,一切正常.您对此行为有任何提示吗?
最好的问候,
jkarlos
where Owner is null.
i had noticed that everithing works just fine when the combo is out of the tab control. do you have any cue about this behaviour?
best regards,
jkarlos
推荐答案
我们不知道您在说什么文章.
返回找到的文章,然后滚动到页面底部.那里有一个论坛,上面有一个链接,上面写着新消息".那是您要发布问题的地方.这是一个普通论坛.
We have no idea what article you''re talking about.
Go back to the article you found and scroll to the bottom of the page. There is a forum down there and a link that says "New Messsage". That is where you want to post your question. This is a general forum.
这篇关于关于DropDownPanel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!