【问题标题】:Trouble calling urlbuilder.Buildurl in my application在我的应用程序中调用 urlbuilder.Buildurl 时遇到问题
【发布时间】: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 使用的内部编辑器。不是我想要的。是时候构建该对话框了。

【问题讨论】:

    标签: c# winforms url


    【解决方案1】:

    为了编译它,你需要在表单类中调用它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-06
      • 2022-01-24
      • 1970-01-01
      • 2022-08-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多