hello, is there a way to load port of tcplistener server when form loads?
example:
any sugestion?
example:
C#:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
namespace teste_server_tcp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
int port = //load int port content from textBox1.Text(already fill up by settings);
TcpListener server = new TcpListener(IPAddress.Any, port);
}
}
any sugestion?