How To Use The Connect Dialog

<< 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);