I hope this comes in handy:
private void Button1_Click(object sender, EventArgs e) {
TagSearch dialog = new TagSearch();
PointList results = dialog.showTagSearch(
new string[] { }, SearchOptions.SingleSelect);
if (results.Count > 0) {
object index = 1;
string serverTag =
string.Format(
CultureInfo.InvariantCulture,
@"\\{0}\{1}",
results.get_Item(ref index).Server.Name,
results.get_Item(ref index).Name);
}
}
source
share