0
我试图让用户在我的WinForms应用程序中使用GUI构建一个URL。我遇到了Urlbuilder.Buildurl。它似乎提供了我所需要的。无法在我的应用程序中调用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 is unknown member。
有没有人使用过,如果有的话,任何建议我失踪?
我应该创建自己的对话框并使用System.UriBuilder(...)吗?
- 编辑 - 这个是在窗体类。根据文档,我有做有System.Design引用。
this.Component不是Form类的成员。
- 编辑 -
这个小瑕疵是Visual Studio在您选择一个URL时使用的内部编辑器,例如您的项目中的超链接URL或图像URL。不是我想要的。有时间构建该对话框。