Ang619
❔ Next Steps
Just to get you started:
When you created a textbox for example with drag and drop, you can right click that textbox and go to properties. There, you should change its name to something useful like "FirstNameTextBox".
Then, you can acess it for example like that: "FirstNameTextBox.Text = "Michael";
12 replies
❔ Next Steps
Maybe jump into windows forms , there you can build your first graphical userface with drag and drop , and then use your learned c#skills to build cool stuff.
When you create a project, dont select console application, select windows forms app.
You will find the drag and drop elements under view - show toolbox.
Try to build a calculator with an User Interface there.
12 replies
❔ my socket changes his connected attribute to false right after i sucessfully received data :(
I just wonder if that would help me? Because once the socket changes his attribute to connected = false, i cant receive any more messages.
A heartbear would be cool to check if users are indeed still online, but i dont think that helps with my problem :/ Right now the server simply removes a client, when it cant send a message to him because the socket is not connected anymore or similar.
I already checked if the server removes the client, but thats not the case. I dont get why the socket suddenly disconnects at the client side.
11 replies
❔ Live USB/Wireless Video Access Help
I am a beginner myself, so take my answer with caution.
Basically a video are many frames (pictures) per second.
You could send this pictures through the Sockets via TCP Stream. Something like
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
You could then send it in a Loop something like
3 replies
❔ Multiple Read and write to an excel file simultaneously C#
I am no expert, but as far as i know when working with some "external" device (network adapter, USB, printer), then you need to work async. In your case you work with the network adapter, so you need to use async or your program will freeze. If multiple users exist, i also think you need threads or task on the network side, so it can handle multiple users
19 replies
Socket Exception when creating a UDP client, and i dont know why :(
I found the solution to my problem: I changed
_udpClient = new UdpClient(_discoveryPort);
to Then later i can use it like that await _udpClient.SendAsync(discoveryMessage, discoveryMessage.Length, new IPEndPoint(IPAddress.Broadcast, _discoveryPort));
24 replies
Socket Exception when creating a UDP client, and i dont know why :(
Cause once i dont start the server, my discovery code works as intended. I tried to open one instance by clicking the .exe in the windows folder, and start another instance from VS, but then the error still occurs. I need to further think about this.
24 replies
Socket Exception when creating a UDP client, and i dont know why :(
Your solution unfortunatly didnt solve my problem. But i think i found out what causes the problem: Both the client side and the server side are unfortunatly in the same project. When the server is running, the server EndPoint seems to reserve the port on which it listens for incoming clients.
24 replies