Click here to Skip to main content
15,915,093 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDetect connection to the Internet. Pin
dayWalker28-Dec-02 6:51
dayWalker28-Dec-02 6:51 
GeneralSetCursor Pin
UrbanBlues27-Dec-02 22:19
UrbanBlues27-Dec-02 22:19 
GeneralRe: SetCursor Pin
Jeremy Falcon31-Dec-02 12:07
professionalJeremy Falcon31-Dec-02 12:07 
GeneralRe: SetCursor Pin
MikeUofPhx6-Jan-03 14:58
MikeUofPhx6-Jan-03 14:58 
GeneralProject file and exe file Pin
Nick Seng27-Dec-02 16:37
Nick Seng27-Dec-02 16:37 
Generaldll access Pin
brieg100027-Dec-02 12:40
brieg100027-Dec-02 12:40 
GeneralRe: dll access Pin
mikasa8-Jan-03 6:40
mikasa8-Jan-03 6:40 
GeneralLoad at Start up ! Pin
dayWalker27-Dec-02 0:01
dayWalker27-Dec-02 0:01 
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 Big Grin | :-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) Roll eyes | :rolleyes: . Please reply A.S.A.P ... Big Grin | :-D

QuestionAdapter.Fill ? Pin
Nick Seng26-Dec-02 17:10
Nick Seng26-Dec-02 17:10 
QuestionUpgrade to Visual Studio 2003? Pin
James Williams26-Dec-02 7:24
James Williams26-Dec-02 7:24 
AnswerRe: Upgrade to Visual Studio 2003? Pin
Michael P Butler26-Dec-02 7:43
Michael P Butler26-Dec-02 7:43 
GeneralCould anybody help me in visual basic Pin
suresh_sathya25-Dec-02 23:27
suresh_sathya25-Dec-02 23:27 
QuestionHow can I bind data to Groupbox of radiobuttons Pin
intibnin24-Dec-02 22:57
intibnin24-Dec-02 22:57 
AnswerRe: How can I bind data to Groupbox of radiobuttons Pin
Tatham26-Dec-02 6:31
Tatham26-Dec-02 6:31 
GeneralRe: How can I bind data to Groupbox of radiobuttons Pin
intibnin26-Dec-02 20:45
intibnin26-Dec-02 20:45 
GeneralRe: How can I bind data to Groupbox of radiobuttons Pin
Tatham26-Dec-02 20:55
Tatham26-Dec-02 20:55 
QuestionHow Can i detect return key in datagridTextBoxColumn Pin
intibnin24-Dec-02 22:49
intibnin24-Dec-02 22:49 
AnswerRe: How Can i detect return key in datagridTextBoxColumn Pin
Tatham26-Dec-02 6:44
Tatham26-Dec-02 6:44 
GeneralRe: How Can i detect return key in datagridTextBoxColumn Pin
intibnin30-Dec-02 4:55
intibnin30-Dec-02 4:55 
GeneralRe: How Can i detect return key in datagridTextBoxColumn Pin
Tatham30-Dec-02 5:03
Tatham30-Dec-02 5:03 
Generaltoolbar_button click Pin
Anonymous24-Dec-02 10:30
Anonymous24-Dec-02 10:30 
GeneralRe: toolbar_button click Pin
Nick Seng25-Dec-02 15:48
Nick Seng25-Dec-02 15:48 
GeneralLabelArray and MenuItemArray Pin
Ilan Ehrenfeld23-Dec-02 23:34
Ilan Ehrenfeld23-Dec-02 23:34 
GeneralRe: LabelArray and MenuItemArray Pin
Nick Seng25-Dec-02 15:40
Nick Seng25-Dec-02 15:40 
GeneralLaunching executable file Pin
Desmond23-Dec-02 7:42
Desmond23-Dec-02 7:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.