From iLab Cookbook

Toolkits: HowToUseTheConnectDialog

<< Back to the .Networking page

GroupLab.Networking has a built in dialog that will ask the user for the URL to connect to.

string url = "tcp://localhost:port";
if(DialogResult.OK == GroupLab.Networking.UrlPrompt.Show(ref url))
{
  // add your code here
  // it might look something like this

  this.SD.Url = url;
  this.SD.Opened += new EventHandler(SD_Opened);
  this.SD.Closed += new EventHandler(SD_Closed);
  this.SD.Open();
}
Retrieved from http://grouplab.cpsc.ucalgary.ca/cookbook/index.php/Toolkits/HowToUseTheConnectDialog
Page last modified on December 30, 2005, at 09:13 PM