Click here to Skip to main content
15,913,361 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Is it possible to crate pictureboxes during run time? [modified] Pin
Tamimi - Code31-May-06 19:31
Tamimi - Code31-May-06 19:31 
GeneralRe: Is it possible to crate pictureboxes during run time? [modified] Pin
KaKa'1-Jun-06 18:30
KaKa'1-Jun-06 18:30 
Questionhow can i get empty fields from data ?? Pin
Mohammed Amine31-May-06 12:52
Mohammed Amine31-May-06 12:52 
AnswerRe: how can i get empty fields from data ?? Pin
Mekong River31-May-06 15:05
Mekong River31-May-06 15:05 
Questiondeployement Pin
Mohammed Amine31-May-06 12:48
Mohammed Amine31-May-06 12:48 
AnswerRe: deployement Pin
Socheat.Net31-May-06 22:13
Socheat.Net31-May-06 22:13 
QuestionHow do I check if a user is online? Pin
JackIsMe77731-May-06 9:18
JackIsMe77731-May-06 9:18 
AnswerRe: How do I check if a user is online? Pin
Leeland1-Jun-06 4:58
Leeland1-Jun-06 4:58 
I got the following code from http://www.devx.com/vb2themax/Tip/19159[^]

I haven't tested it, but it appears to be just a matter of making sure the wininet.dll is in the system directory and then calling IsConnectedToInternet function from your code. If it returns true you're connected, if false you're not. They you just change the location based on the response.


Private Declare Function InternetGetConnectedState Lib "wininet.dll" (ByRef _
lpSFlags As Long, ByVal dwReserved As Long) As Long
Const INTERNET_CONNECTION_MODEM = 1
Const INTERNET_CONNECTION_LAN = 2
Const INTERNET_CONNECTION_PROXY = 4
Const INTERNET_CONNECTION_MODEM_BUSY = 8

' return True if there is an active Internect connection
'
' optionally returns the connection mode through
' its argument (see INTERNET_CONNECTION_* constants)
' 1=modem, 2=Lan, 4=proxy
' 8=modem busy with a non-internet connection

Function IsConnectedToInternet(Optional connectMode As Integer) As Boolean
Dim flags As Long
' this ASPI function does it all
IsConnectedToInternet = InternetGetConnectedState(flags, 0)
' return the flag through the optional argument
connectMode = flags
End Function
GeneralRe: How do I check if a user is online? Pin
JackIsMe7771-Jun-06 16:03
JackIsMe7771-Jun-06 16:03 
QuestionAsync Socket Decode and Encode Stream with Special characters Pin
baja one31-May-06 8:55
baja one31-May-06 8:55 
QuestionI dont't want anyone close my process,what can I do? Pin
Billypon31-May-06 8:46
Billypon31-May-06 8:46 
AnswerRe: I dont't want anyone close my process,what can I do? Pin
Steve Pullan31-May-06 13:53
Steve Pullan31-May-06 13:53 
AnswerRe: I dont't want anyone close my process,what can I do? Pin
Mekong River31-May-06 15:08
Mekong River31-May-06 15:08 
QuestionHow to display a confirmation for one of the checkboxes if the user changed the status Pin
Tram8831-May-06 8:35
Tram8831-May-06 8:35 
AnswerRe: How to display a confirmation for one of the checkboxes if the user changed the status Pin
Kschuler31-May-06 10:30
Kschuler31-May-06 10:30 
GeneralRe: How to display a confirmation for one of the checkboxes if the user changed the status Pin
Tram8831-May-06 11:44
Tram8831-May-06 11:44 
GeneralRe: How to display a confirmation for one of the checkboxes if the user changed the status Pin
Kschuler1-Jun-06 2:46
Kschuler1-Jun-06 2:46 
GeneralRe: How to display a confirmation for one of the checkboxes if the user changed the status Pin
Tram881-Jun-06 4:49
Tram881-Jun-06 4:49 
GeneralRe: How to display a confirmation for one of the checkboxes if the user changed the status Pin
Kschuler1-Jun-06 5:19
Kschuler1-Jun-06 5:19 
GeneralRe: How to display a confirmation for one of the checkboxes if the user changed the status Pin
Tram882-Jun-06 4:45
Tram882-Jun-06 4:45 
QuestionScreen-Saver Preview Pin
D11131-May-06 7:57
D11131-May-06 7:57 
QuestionVisual Studio 2005 Basic for Pocket PC Pin
datacore UK31-May-06 7:13
datacore UK31-May-06 7:13 
QuestionCopy file Pin
Kosta Pereira31-May-06 7:04
Kosta Pereira31-May-06 7:04 
AnswerRe: Copy file Pin
Steve Pullan31-May-06 13:57
Steve Pullan31-May-06 13:57 
Questioncombobox-treeview Pin
SVb.net31-May-06 6:58
SVb.net31-May-06 6:58 

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.