I'm using the chat program provided in the 101 examples kit, and have modified it a bit to suit an app i'm fooling around with. I have come across a problem...
When the client side crashes, the server side doesnt realize that the connection has been lost. Is there any way for the server to poll its clients table to figure out which streams are still open?
I'm writing a little application that needs to detect when a USB Mouse is Connected and Disconnected. I am running into a dead end when trying to determine the best way detect this. I have tried WMI and WmdProc but I think I am hitting a mental block trying to figure out the best option.best way to listen for the connection and disconnection of a USB mouse?
Searched quite a bit and am having trouble finding how to have the server catch the client has disconnected. When the server detects the disconmnect it goes bonkers. Would like to Try and Catch ex so I could gracefully handle it.
The following code works fine when it doesn't detect any dublicate patterns. Is it possible to somehow alter to to also work with dublicate patterns? (i.e. to color duplicate patterns as well and nto just unique ones) Any ideas? [code]
I'm using AsyncFileUpload for uploading files, before saving file on server, i rename the selected file. How can I get this new file name in the client side?
incorrect technical words used, I'm new to AJAX/Jquery.I have a function with AJAX in it. It is supossed to execute a serverside function, but it doesn't do anything. I have checked my code multiple times. I use similar code in a different location, and that one works fine.Here is the function with AJAX:
function pass_on() { hide_div("#outer_layout", 500); get_din();
I connect an OPC server, I can get Datas, But when i try to disconnect from server Opc server's clients size does not decrease until program closed.[code]It gives no error. It removes all items from GRP1 but cannot disconnect.
I'm viewing reports on a VB.net form using CrystalReportViewer. Once a report is opened, the Access database that is used within the report is locked (i.e., the Access MDB file can't be deleted). Even after the report is closed, the database stays locked until the VB.net app "ends". This is a problem because I want to be able to delete the MDB file at some point while running the app and can't. The VB.net app starts by opening a form named "Startup". No database connection occurs here. A button is pressed using this [code]I must not be properly closing the CrystalReportViewer or the Report form.How do I close the Crystal report and unlock/release the Access database?
I am currently working on a messenger client that connects to a server then back to the clients for full chat room support.I have it operational however when you close the client before connecting to server it closes normal, if you close the client after you have connected to the server then the client dissapears but it is still running in processes. To make it worse if you close the process it then kills the server.What I need is a disconect button code so it will stop crashing it.Here is my code Client:
Imports System.Net.Sockets Imports System.Text Public Class Form1[code]......
I Have created an application with MySQL as database server.everything goes fine.When i tested the application on multiple system at a time.When i monitored the database server (MySQL) I saw huge number of connection to the database. and all are in sleep mode.I used below code for connecting and closing connection after every query.
'Connection variable declaration Public conn As New MySqlConnection 'Connection Opening command[code]....
But i see huge number of connections in sleep mode at database server.
ok i got this from online source the only problem i found with it is it will not disconnect from the server on a regual basis, now i did some mods on it but nutting to change the way it works i am using vb2008 the server side i have no problem with it. here is the code for the client:
[code]...
i just can't get it to disconnect on a regular basis only maybe 50/50
For an answer to this questions I've been looking years from now, then I couldnt find it and now it's complicated. I am working on a project to fully manage a computer's connection, it can check IP, change it, etc. But, I really, really need a function to sucessfully connect/disconnect a PC from the ineternet without promps or other screens, IPCONFIG and DHCP command aren't useful!, im exploring RAS but couldnt come to anything yet
I have a PC with four LCD monitors attached, but often I leave it unattended and need only one monitor running. I've set up power strips so that I can flip one switch on a power strip to turn on or off the other three monitors. The problem is, when I turn off the other three monitors, the computer makes the disconnect sound every few seconds. you can go into Control Panel->Display->Change display settings, and under 'Multiple displays' disconnect the monitors you are not using, and them reconnect them when you need them again. However, this is time consuming to do manually.can I program this in VB .Net, i.e. is there a Class or some registry keys that I can use to connect or disconnect monitors the same way as through the Control Panel?
Lets assume that I have a game server in my computer.
I download a compiled game, server/client side.
The player starts the game and it keep sending and receiving data from the server. Lets assume now, that I think that the player is using some bug and winning all the rounds. How can i disconnect his IP from the server port? I have seen some people using some kind of DLL to do the job. Its something like iphlpapi.dll ... i dont remember well.
I access directory from local network in my application.[code]my application is continues running. but sometime network is disconnect for a second and then automatically reconnect. so execution of application is stop with error in message box that path could not found.
I'm trying to make a chat room that when the user connects hes added to a listview. Im having trouble on how would i remove that client when the user disconnects.
I understand that you can do ListView1.Item.RemoveAt(Sender) but that would not work because RemoveAt only accepts integers.
I'm trying to create a program that will disconnect/connect you from the internet.Example:When I press F10, I get disconnected from the internet. When I press F11 It connects me to the internet.
I am trying to create an IP disconnector. This is part from a template that I took that creates a TCPtable. I was trying to add a disconnecting function.[code]
I have a VPN connection set up on my computer. I am trying to make a button in my VB.NET program to connect/disconnect to/from the VPN connection. I have tried making a shortcut to the VPN on my desktop and calling it with the Shell method but I get an error saying file not found. I have also added the shortcut extension ".lnk" and still have the same error.
I am working on a code for a chat client/server and I have it all working, I can connect and chat locally and global. The problem I am having is that when someone just hits the X in the corner to exit it crashes my server as well as the fact that if someone wants to they can make their username the same as someone elses.
I am thinking about creating a program that when a browser (such as IE) opens it will turn my connection to the internet on, and when the browser is closed it will disable my connection. What type of things do I need read upon in order to accomplish something of this nature?
I am working on a chat client and server, and so far it works well, but when I close the client, the server throws an exception because it continues to try to do processes on the disconnected client. I have tried adding clientSocket.Close() in various places throughout the client and server with no luck. Does someone know how to add the disconnect code to either the server or client with this code?Server:
I'm fairly new to VB.NET and I'm looking to create a module that will contain all general SQL functionality like connect, disconnect and execute a sql query etc. I think I'm almost there but the code keeps bombing in one place. Can anyone see what is wrong with the following code?