Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Load at Start up !

Load at Start up !

Scheduled Pinned Locked Moved Visual Basic
databasecsharphelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dayWalker
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups