It's talking to a PBX. The PBX is set to listen on an assigned port, but it responds to the source port of the sender. It doesn't assign this port. It just reads it out of the UDP packet header.
If you're using sockets (or UDPClient AFAIK) you set the destination port, but VB or the .NET...
I think I've found a solution. I still can't set the outgoing source port, but I can query it once a connection has been made, and it seems to use the same source port for subsequent connections.
For posterity, here's the code I'm using:
Dim ServerIP As IPAddress = IPAddress.Parse("10.1.1.1")...
I'm attempting to communicate with an existing server system that uses UDP to receive commands and return responses.
The server listens on a single port. It expects to reply back to the sending IP on the UDP source port the packet was sent from.
I can easily send it data using something like...
Okay, I figured it out. It was obvious once I thought it through. I had another label on screen that was only displaying information, but it had the same tab order. Changed that, and all is well.
I have a data entry form I've created in VB.net. I've added labels with shortcut keys above each data field to allow the user to easily skip around the form. The problem is, one of the labels doesn't work. Pressing alt- and the underlined letter doesn't take you to the next textfield. It instead...
Oh, and if anyone knows a better way to do this in .net, that would be good as well. I don't want to rewrite this entire procedure, but I will if there's a better way.
I'm converting some VB6 code to VB.net. A section of the code uses the Windows API to read text from a label in another application. I use the FindWindow API call to get the handle of the form I want, then use GetWindow to iterate through the objects on the form. I use GetClassName to find the...
I have about 50 computers behind a PIX 515. We have about 30 NAT IP addresses shared by those 50 computers. A while back we had a problem where the first 30 users could connect to outside web resources, but anyone after that could not get out. Someone on this site told me how to setup the NAT...
I'm installing a VPN using Netgear's FVS318 on one end and the ProSafe VPN client on the other.
I can connect, and both ends seem happy with the connection. The client says Successfully Connected, and the router shows my remote IP as a connected endpoint.
But from the client end I can't ping...
Thanks for all the repsonses. I tried everything.
I found a solution that isn't great, but it works.
Instead of updating the textbox and switching the focus programmatically, I use SendKeys.sendWait(value & vbTab) followed by a SendKeys.Flush(). That solves my problem, but I don't understand...
Jubble,
Thanks for the response. Yes, cbType is enabled and able to receive focus.
There are no panels or group boxes on the form.
I do set the focus back to the textbox in some events. But I've commented all of these out. Still no go.
It does work when the user enters info and tabs out. It...
I'm having a strange little problem I can't figure out.
I have a Windows form with several controls on it. One control is a textbox where the user can enter a 10-digit code. This box may also be filled in programmatically in certain situations.
The problem is, if I fill the box in from code...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.