【发布时间】:2012-05-07 13:09:19
【问题描述】:
我试图让用户在我的 WinForms 应用程序中使用 GUI 构建 URL。我遇到了 Urlbuilder.Buildurl。它似乎提供了我需要的东西。
http://msdn.microsoft.com/en-us/library/ms154075%28v=vs.80%29.aspx
// Launch the Url Builder using the specified control
// parent, initial URL, empty relative base URL path,
// window caption, filter string and URLBuilderOptions value.
不幸的是,提供的示例甚至无法编译。
this.Component 是未知成员。
有没有人用过这个,如果用过,有什么建议吗?
我应该创建自己的对话框并使用 System.UriBuilder(...) 吗?
-- 编辑-- 这个是在一个表单类中。我确实根据文档引用了 System.Design。
this.Component 不是 Form 类的成员。
-- 编辑--
当您在项目中选择 URL(例如超链接 URL 或图像 URL)时,这个小虫子是 Visual Studio 使用的内部编辑器。不是我想要的。是时候构建该对话框了。
【问题讨论】: