Load at Start up !
-
I'm making this application in VB.NET. I call it netDemon, it monitors a users Connection time and creates a log. I'm facing few problems rite now. I'm listing them with detail. Firstly, I'm using Access as my database so that I can store the logs. The problem is that I cannot Insert a new tuple in my Database. I can update an existing tuple but fail to Insert. I'm using the following SQL query: INSERT into users values ('" & myUser & "','" & myPass & "'," & myPriv & ",'desc');" where myUser contains the value entered into the textfield and myPass is the password. Secondly, my application is designed in such a way that it will disconnect any connection that is not made through it. The problem is that even though I'm not connected to the Internet the application keeps showing me a message that I'm connected to the Internet. I'm using the Function 'InternetGetConnectedState'. According to what I read at 'AllAPI.net' this function returns ture when connected and false otherwise. Here's what I've written: myCheck = du.InternetGetConnectedState(lpdWFlags, 0) If (myCheck) Then If (isConnected = False) Then 'MsgBox("You cannot connect to the Internet, except through netDemon") MsgBox("You will now be disconnected") du.InternetAutodialHangup(0) End If Else 'If he is not Connected, then do nothing :D End If 'isConnected' is a Globlal variable of type boolean which is set to 'true' when the user logs onto my application. Lastly, I want my application to load when Window's loads. How do I do this. Using VB.NET @ WinXP Pro. This is very, very urgent cause I have to submit this project by Thursday (09-01-2003) :rolleyes: . Please reply A.S.A.P ... :D