Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Check If Website Is Down Using Winsock


im making a program that visits a site using winsock. how would i know if the website im visiting is down using the winsock control?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Winsock Syntax? (To Request A Website With The Winsock Control)
Ok, I don't know very much about Winsock and am just now starting to use it. I'm making an anonymity program that modifies referer and user agent data. I managed to find an example of how its done on planetsourcecode.com but there's a few things that aren't working.

Anyway, when this string is sent, it sends the headers and a request for index.html from the connected host (winsock1.connect domain.com 80).

GET index.html HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-comet, */*
Accept-Language: en
Accept-Encoding: gzip , deflate
Cache-Control: no-cache
Proxy-Connection: Keep-Alive
User-Agent: Whatever
Referer: www.whatever.com

But when I used the website http://ipid.shat.net/ as the domain to see if code mdified the headers or not, it directed me instead to just www.shat.net. How would a browser request information to ipid.shat.net?

Also, I noticed that by sending just that information, cookies don't work properly. What other tags do I have to add onto that for it to recieve my session information? Thanks a lot.

Check Out My Website!
This is for the game I am making:

Http://members.tripod.com/akitalegend/

Check Out My New Website!
Please check out and comment my new website!!!!! : o )
I haven't finished the site yet, because of my study but I'm working on it!

Private Sub VisitWebSite_Click()
If You ="Want to visit my website" then
http://www.cybercarsten.dk
else
GoTo http://www.micro$oft.com
End If
End Sub

Check Out My Website For My Game!
http://www10.brinkster.com/akitalegend/

It's the site for my Online RPG I'm making. I need some people to atleast use the forums cuz noone really knows about it existing. Check it out!

How To Check If Website Exists? (Or Is Up?)
I'm using the web browser control. Using this, can I someone see if a website is accessible or not? I can't figure out how if it is.

Check A Data Of File On A Website
Hey guys I have file on my website, but how would VB be able to find out the date it was last modified? Then put that date into a labelwebdate caption.

Thanks!

Check If File Has Been Updated On Website
Is there a function that retrieves a file's date posted? I need it to automatically check if a file/site has been updated. Thanks in advance.

-Matthew

Check Date Of File On My Website
I don't want to update, but rather just check the date of an exe file on my website. What would the VB6 code look like to just go to my website and check the date of a file.

My current code already checks the date of the exe of the app that is running and if the date on the website is newer I will be able to 'suggest' that the user visit the site and upgrade.

Thanks.

Prof Weissman

Winsock, Website Data
I have a scenario, where:

1. I can get the login information sent via get method in the url – But im not that keen on that because it shows up in history.

2. I can make VB enter the information into the website, but I am really clueless about winsock, any help would be helpful


Scenario 1 - I would like to know if it is possible to delete that certain url from history (Or even clear it all)

Scenario 2 – I really am unsure how to enter data into a online form (post)

But even after that I need to be able to read the html, then display certain parts of the information, I know in other information/scripts you are able to slect the line, then char that you want to read, I just cant seem to grab the html.

Any help would be useful.

Thanks.

(Winsock) Logging Into A Website
hey guys, im not really sure how to code this. how can i make a program login to this website? www.buzzen.com using winsock.

How To Know When Winsock Is Done Getting Data?[tcp-website]
Im connecting with a website and recieving data through the winsock control[TCP]. On my getdata, I will get sometimes 2-3 dataarival events because the winsock cannot fit as many chars as the website contains. Is there any way to know when the end of the website comes?

Send Website Informations Via Winsock To Someone Else
I'm playing a massive-multiplayer-online-game. that means i have go online 5 times aday for about 3min. the game is programmed by a friend of mine. Now the computer-manager in school forced my friend to programm a IP lock, so we can't game from school.
I now want to programm 2 programms. a server and a client. the server would run 24/7 at my home PC and have to go and get the homepage and send the informations to the client. and the server has to click on a button in the website, but i want to say where to click, while working on the client.

How to get all the informations form the website, that I can send them with Winsock?

And how to make a click on the website at the server application, while sitting behind the client?

Just tell me how and what commands to use, I can try out and programming Winsock is no problem.

Winsock And Multi-Host Website, Where Is The Problem ?
Hi

I'm trying to make a program to work as an internet browser using winsock, I made some kind of success at the beginning with some famous sites (such as Yahoo!) but I failed to load some other sites, the server is replying with a page that tell me it is a multi-host website, while it can be opened normally using Internet Explorer, Where is the problem ? I'm using winsock command: "GET / HTTP1.1", but is there any other command can fix the problem ?

thanks

Loggin To A Website POST Method And DOM Or Inet Or Winsock HELP!!
Hi well what im trying to accomplish is succesfully load to a site that to login requires POST Method here's a little bit of the souce
-------------------------------------------------------------------------------
<form method="POST" action="membersarea.php">
<tr>
<td width="100%" colspan="2"><font color="#FFFFFF"><b><font size="1" face="Verdana">
EMAIL:</font></b><br>
<input type="text" size="17" name="email"></font></td>
</tr>
<tr>
<td width="100%" colspan="2"><font color="#FFFFFF"><b><font face="Verdana" size="1">
PASSWORD:</font></b><br>
<input type="password" size="17" name="password"></font></td>
</tr>
<tr>
<td width="100%" colspan="2">
<input type="checkbox" value="1" name="remember" CHECKED><font size="1"><b>Remember
Me</b></font>
</td>
</tr>
<tr>
<td><font size="1" face="Arial Narrow"><a href="lostpass.php">
Forgot Password?</a></font></td>
<td><input type="submit" value="Login" name="submit">
<input type="hidden" value="1" name="login_submit"></td>
</tr>
</form>
------------------------------------------------------------------------------

ok i need to login i have tried to do it with the DOM and this is what i got so far


VB Code:
Private Sub Command1_Click()With WB.Document.getElementById("email").Value = Text1.Text.getElementById("password").Value = Text2.Text.getElementById("remember").Value = "1".getElementById("submit").Value = "Login".getElementById("login_submit").Value = "1".Forms(0).Login.ClickEnd With End Sub Private Sub Form_Load()    WB.Navigate "http://www.domain.com"    Do While WB.ReadyState <> READYSTATE_COMPLETE        DoEvents    LoopEnd Sub


ok i get an error 'object doesnt support this method'
highlights this line

.Forms(0).Login.Click

anyway i can succesfully login to the page Thanks ALOT!!!

P.S. also there's anyway i can do it with INET control and winsock i would like to learn all of them 3 using POST method... thanks

regards,

EJ

Winsock With Database [help Me Check]
Hi,

I am developing computer lab manager, using network technology. This system will record the usage of every computer on lab use by students.
Development of system is using two module; Server.vbp and Client.vbp
It uses winsock for client-server communication.

I am having problem with disconnectiog the client from server. I want to make it automatically update the database for "Time_Out" and "Time_Consumed"., but fail.

The signin time, student id, machine network name working fine. Only for UPDATE portion didi not working the way it suppose to.

These are how connection work"

Client.vbp==============================================
Private Sub Form_Load()
'change IP address for new environment or change server

'Winsock1.Connect "127.0.0.1", "4500" 'for own test
Winsock1.Connect "192.168.30.44", "4500" 'for my lab
End Sub

Private Sub Form_Unload(Cancel As Integer)

If Winsock1.State = 7 Then
Winsock1.SendData "disconnect||" & tmpMatrik & "||" & Winsock1.LocalHostName
Winsock1.Close
End If

End Sub

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim vntArray As Variant
Dim strText As String
Dim nItems As Integer
Dim n As Integer

Winsock1.GetData Data, vbString

vntArray = Split(Data, "||")

' how many items were parsed?
nItems = UBound(vntArray)

Select Case vntArray(0)
Case "connect1"
If vntArray(1) = "logonyes" Then

client.WindowState = 1
Unload scr_block
Winsock1.SendData "register||" & tmpMatrik & "||" & Winsock1.LocalHostName
Else:
MsgBox "Login Incorrect!, Enter valid User ID and password", vbCritical, "Login error"
scr_block.txtMatrik.Text = ""
scr_block.txtPassword.Text = ""
scr_block.txtMatrik.SetFocus

End If
Case "SHUTDOWN"
Winsock1.SendData "disconnect||" & tmpMatrik & "||" & Winsock1.LocalHostName
ShutdownSystem EWX_POWEROFF
Unload Me
'Unload scr_block

'scr_block Unload
'Winsock1.Close

End Select

'If UCase(Data) = "SHUTDOWN" Then ShutdownSystem EWX_POWEROFF
'Winsock1.Close
======================================================


for the server.vbp=======================================

Case "disconnect"
Matrik1 = vntArray(1)
Machine1 = vntArray(2)
date2 = Format(Now, "dd/mm/yyyy")

'----------I only want this protion to be update in database
timeout = Format(Now, "long time")
consume = timeout - timein
'------------------------------------------------------

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''
Set db = OpenDatabase(App.Path & "dbProject.mdb")
sSQL = "update TRANSACTION set Time_Out = #" & timeout & "#, Time_Consumed = #" & consume & "# where Date = #" & date1 & "# and Matrik_No = '" & Matrik & "' and Machine_Id = '" & Machine & "'"

Debug.Print sSQL

db.Execute (sSQL)
' Set rs = db.OpenRecordset("Select * from TRANSACTION where Date = '" & date2 & "' and Matrik_No = '" & Matrik1 & "' and Machine_ID = '" & Machine1 & "'")

'db.Execute ("Update TRANSACTION set Time_Out = #" & timeout & "#, Time_Consumed = #" & consume & "# where Date = #" & date1 & "# and Matrik_No ='" & Matrik1 & "' and Machine_Id ='" & Machine1 & "'")

rs.Close
db.Close
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''
End Select
=========================================

only this portion of srever is not working. I wonder why. Previously I sent on forum in Database and reporting, Shurik coeerected my SQL code, but I am having same problem.

I really dun know can it be done like that or not?
Please have a look on my client.vbp. I really dont knopw a lot of things yet. I hope some1 must have done for what I am doing now.
Please help me..

Azae -

Winsock Tcp Connection Check
Hello everybody.
I have written in VB6 a server-client chat-like application based on the winsock component.
I establsh a TCP connection to each client using an array of Winsock controls.
Every time a user connects to the server, it sends to every connected user the updated list of the connected clients.
The only thing i can't figure out is how to check whether my clients are still connected (if somebody shuts down the applicatio properly there's no problem since the client sends a packet telling the server it is shutting down, but if the application freezes or the computer is resetted this doesn't work, obviously). Is there anyway I can check if the other host is "still there"?
Thanks in advance
NeT

Check If Winsock Is Ready
how to check if winsock finished send/recieving information and is ready?
the problem is I am recieving big information and I want to send the reply as soon as the info is completely recived.

Check Winsock Not Active
I have a program that updates on the splash screen, well if its in the updates and you want to skip the updates, there's a button you can click to skip the updates.

Well one issue im having is the winsock control will be connected to the server, but not active. So my checks in the Close and DataArrival procedures wont do anything.

What im trying to do is have another check, and check the winsock controls to see if they are connected, but not doing anything... And if they are, then close them but if not, then let them continue so my checks inside winsocks procedures will catch it and close it when the current file is finished (this is all to prevent truncated files).

Anybody know how to do this?

VB6 - Winsock - Check Connection
Hello:

I have a VB6 client/server app using Winsock features and am having some problems with it.

On the client side, I have a series of commands like the following:

If Winsock1.State = sckConnected Then
Winsock1.SendData ("Ad1Break")
TotalSent = TotalSent + 1
Label2.Caption = "Total Script Commands Sent to Server: " & TotalSent
End If
End Sub

However, after the client has been running for a long period (anywhere between 30 and 1 1/2 hours) without sending any commands to the server, even though it reports its status as CONNECTED, it does not successfully transmit the command to the server.

Is there any other way to test the connection before sending over the command to ensure that the connection is still active and the server is listening and will receive the command.

Connection is made in the following script:

If ConnectToServer1 = 1 Then
If Winsock1.State <> sckClosed And _
Winsock1.State <> sckConnected Then
Winsock1.Close
End If
If Winsock1.State = sckClosed Then
Winsock1.Connect
End If
'Report connection status
If Winsock1.State = sckConnected Then
Label1.Caption = "Connected to " & EncoderHost1 & ":" & EncoderPort1
Else
Label1.Caption = "Attempting to connect to Script Command Server: " _
& EncoderHost1 & ":" & EncoderPort1
End If
Else
Label1.Caption = "Not connected to Script Command Server: Running in stand-alone mode"
End If

Thanks so much for your help.

David

Check If Winsock Is Done Loading?
is it possible to check when winsock is completely done loading? I want to display a msgbox saying "completed" when the WHOLE data is retrieved in the dataarrival.

here's what i would usually do:

---get data from dataarrival
---then
---if instr(text1.text, "done loading") ' "done loading" is the text at the end of the page
---msgbox "completed"


but it wont work this time, it's a bit hard to explain why, but is there another way of doing this?

Check When Winsock Is Done Loading?
using winsock, how would i check when the winsock is not in use anymore(meaning the data has already been sent)

Winsock - Check Email?
Hi All

I would like to access a mailbox on a POP server and check messages on the server. I would like to be able to select certain messages to be downloaded and disregard others.

Any1??

Check This Code Out... Its Winsock...
Why wont this code let me SEND some data back...

Where would I put some winsock.senddata that can actually send some data back after recieving some...

I have this..both as code and as ZIP file..
'----------------------------------------------------

Private Sub Command1_Click()
DoEvents
Winsock1.Close
Winsock1.LocalPort = 80
Winsock1.Listen
End Sub

Private Sub Command2_Click()
Dim wsh
Set wsh = CreateObject("WScript.Shell")
wsh.run ("iexplore.exe http://127.0.0.1")
End Sub

Private Sub Form_Load()
Winsock1.Close
Winsock1.LocalPort = 80
Winsock1.Listen
End Sub

'************************************
'*********Connect - Recieve *********

Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
Winsock1.Close
Winsock1.Accept requestID

If Winsock1.State = sckconnect Then
MsgBox "It IS connected in ConnectionRequest", vbSystemModal, "#"
Winsock1.SendData "<body><h1><center>ConReq OK..</center></h1></body>"
ElseWinsock1.SendData "<body><h1><center>ConReq OK..</center></h1></body>"

MsgBox "Its NOT connected in ConnectionRequest", vbSystemModal, "!"
End If

End Sub

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim data As String
Winsock1.GetData data
MsgBox data, vbSystemModal, "Data Recieved:"

If Winsock1.State = sckconnect Then
MsgBox "It is connected in DataArrival", vbSystemModal, "#"
Winsock1.SendData "<body><h1><center>ConReq OK..</center></h1></body>"
Else
MsgBox "Its NOT connected in DataArrival", vbSystemModal, "!"
End If

Winsock1.Close
End Sub

'----------------------------------------------

How Can I Check The Winsock Array Is Nothing Or Not?
Hi all,

My program use the server computer to control over 40 client computers. So I use winsock to connect to the client computer. But I get a problem is when someone client computer is switch off then my winsock array will broken. So when I run the command again will get "runtime error 340" the array is not exist.

I tried to use "IsNothing" to test the winsock array connection is connected or not, but the answer is always TRUE.

So please help me how can I test the winsock array when it is nothing then I can pass it and continue to run my command with other computers?

Thank you very much.

CCNC13

I Want To Check How Much It Takes To WINSOCK...
i want to do a progres bar that will show me the status of connection to sime host with winsock...or status of loading some site with INET.....
how can i?

Check Server Is Active Or Not Using Winsock
how can i check whether the server is online(active) or offline using a winsock object?
I have a program to login to the server by provising a username. I have to check the server bcoz otherwise it will send an error.

Winsock Sending Complete Check
Is there any way to determine if winsock is finished sending data?I believe that if you have to lines sending data one after the other


VB Code:
Winsock1.SendData "test1"Winsock1.SendData "test2"


the other computer that you are connected to will not recieve both packs of data. If I add a few DoEvents in between then it usually gets both. I have noticed that there is SendComplete event but how can I use it if this is what I need? In other words how can I "DoEvents" until the data sending is complete?

Thanks

Check User/pass Tru Winsock
Does anyone has an example for me how to do that?
Would be great!

Winsock : Check If Another Form Is Loaded
I've recently been playing around with the winsock control making games that can be played over two computers and im starting to get good at it. well anyway, i usually have a load form that gets the name and ip address for the client to join to the host and they could join that way and even if there was no host game it would join. I'd like the program to check if the host form is up before the load form loads the game for the client. If i am not clear on what i need feel free to ask questions . Thanks a bunch.

           All your base are belong to me
               ( º)> ~ <(º.º)> ~ <(º )

Winsock Check Connection Problem
i'm using vb6

i'm doing a chat program and i have made two project, "Host" and "Client".

The "Host" can connect and disconnect from the "Client" under normal condition.
But when the computer, which have the "Client" program, power trip, the "Host" is still detect as connected.
When the computer resume, the "Client" cannot connect back.

I would like to ask, how to check a connection ? Then if the connection is lose, close the winsock. Just like the computer power tirp, the other party closes the winsock.

Below is the code i tried but is still detect as connected, even one party is gone.
Code:Private Sub Timer1_Timer()
Dim index As Integer
If Winsock1(index).State <> sckConnected Then
Me.Caption = "Not Connected"
Winsock1(index).Close
Winsock1(index).Listen
Else
Me.Caption = "Connected"
End If
End Sub

Thanks for helping me.

An Array To Check For Winsock State?
Hey, I'm running a program that uses four Winsock controls (each on a different port). What I want to do is, during Form_Unload, I want to check if any of them have a .State = 7 (meaning it's an open connection). If there is an open connection, then I want THAT specific Winsock to send a message "999" (which is my code for telling the client computer to disconnect itself). This is how I am doing it right now.

Code:
Private Sub Form_Unload(Cancel As Integer)

    If Winsock1.State = 7 Then
        Winsock1.SendData "999"
        Winsock1.Close
    End If

    If Winsock2.State = 7 Then
        Winsock2.SendData "999"
        Winsock2.Close
    End If

    If Winsock3.State = 7 Then
        Winsock3.SendData "999"
        Winsock3.Close
    End If

    If Winsock4.State = 7 Then
        Winsock4.SendData "999"
        Winsock4.Close
    End If

End Sub


However, I thought it would be a lot cleaner (and easier to maintain if I should increase the number of Winsocks in my program) to do this as an array. I do NOT know a lot about arrays (actually, I know almost nothing about them). I found this code and tried to implement it but am running into a problem.

Here's the code for the array that I tried using:

Code:
Private Sub Form_Unload(Cancel As Integer)

    Dim i As Integer
    For i = 1 To 4
        If Winsock(i).State = 7 Then
            Winsock(i).SendData "999"
                DoEvents
            Winsock(i).Close
        End If
    Next i

End Sub


However, when I run this code, I get this error:

Quote:Compile error:

Sub or Function not defined


And in VB it highlights the "Winsock" part of this line of code: "If Winsock(i).State = 7 Then"

Can anyone tell me what I am doing wrong in this array? As I said, I am very new to arrays (and the VB in general). I'm not sure if the problem is in how I tried doing this or in my array or in the winsock statement.

Any help would be GREATLY appreciated. Thanks in advance.

DTFan

More Winsock Issues: Check If Connected.
Well.. As some might have noticed I'm putting togheter a chat. However I've come to a place where I feel I need to add a box telling the user if he is connected or not.. This is what I came up with, but it's not quite working. I have tried some variations of this but I just can't seem to find the right one:
Code:
Do Until Winsock1.State <> 6
DoEvents: DoEvents: DoEvents
Loop
If Winsock1.State <> 6 And ip.Text <> "" And txtNick.Text <> "" Then
Winsock1.connect
connect.Enabled = False
disconnect.Enabled = True
ip.Enabled = False
txtNick.Enabled = False
txtMsg.Enabled = True
List1.AddItem "<UllChat v. 1.1> Connected to " + ip.Text
ElseIf Winsock1.State <> 7 Then
MsgBox "Server not available. Please check IP and try again"
Winsock1.Close
txtMsg.Enabled = False
disconnect.Enabled = False
End If


Thanks.

Winsock Control: Check Web Server
I would try to use Winsock control to check if an adress is valid or not. I try to connect to an adress and depending of the return code (404,403...) I know if the site is working or not.
I wrote this code:

Winsock1.RemotePort = 80
for Each element In arrayAddresse
connectToAddr (element)
While Winsock1.State &lt;&gt; sckConnected
DoEvents: DoEvents: DoEvents: DoEvents
Wend
Winsock1.Close
next element



The function connectToAddr is :

private Sub connectToAddr(Adresse as string)
Winsock1.RemoteHost = Adresse
Winsock1.Connect Winsock1.RemoteHost, Winsock1.RemotePort
End Sub




However I never had a response, the state stay &lt;&gt; connected. Did I missed something?

PS: I'm behind a proxy and can access to a restricted list of site, maybe a reason?

Checkbox..... Check Check Check Check Check...oops Stack Error
I have three check boxes one on each of my SSTab tabs. If one is checked the other two needs to be unchecked.... and so on. I use this to determine which is the default website. Ok....here is the code I used....

Select Case Index
Case 0
chkDefaultWebsite(1).Value = vbUnchecked
chkDefaultWebsite(2).Value = vbUnchecked
' Case 1
chkDefaultWebsite(0).Value = vbUnchecked
chkDefaultWebsite(2).Value = vbUnchecked
Case 2
chkDefaultWebsite(0).Value = vbUnchecked
chkDefaultWebsite(1).Value = vbUnchecked
End Select

Simple enough right? Well the first time I click on the check box, my box isn't checked but my others are unchecked....so when I click again it checks it..... so I did this....

Select Case Index
Case 0
chkDefaultWebsite(0).Value = vbChecked
chkDefaultWebsite(1).Value = vbUnchecked
chkDefaultWebsite(2).Value = vbUnchecked
Case 1
chkDefaultWebsite(0).Value = vbUnchecked
chkDefaultWebsite(1).Value = vbChecked
chkDefaultWebsite(2).Value = vbUnchecked
Case 2
chkDefaultWebsite(0).Value = vbUnchecked
chkDefaultWebsite(1).Value = vbUnchecked
chkDefaultWebsite(2).Value = vbChecked
End Select

And of course I get a stack error of endless days err...I mean looping on the check box.....

How can I get that to check the first time I click on it and also uncheck the others ???

Thanks again !

Quick Way To Check If A Winsock Connection Is Open?
first off, im using a control array of winsock controls. they are all listening on the same port.

now, the problem is, whena new person logs on, a new isntance of the control i created. this is fine, untill 5000 logins later your server is out of ram. i need an effective way of unloading the winsock controls after they lose their connection.

POP3 Check Unread Emails With Winsock
Can anyone point me in the direction of a really simple sample to connect to a POP3 server and then check how many unread emails their are? I'm assuming winsock is the easiest way?

Ideally with a bit of error checking such as a failed connection.

I want to acheive the following

every fixed interval of time e.g. 1 minute :
   check POP account 1 return unread as integer
   check POP account 2 return unread as integer
   check POP account 3 return unread as integer
   etc....

Check If Winsock(X) Control Array Is Loaded??
Im creating a small file sharing program and i am using 2 winsock controls. One for Uploads, and One for downloads. Now my question is...

Is it possible to determine whether a socket(Winsock Control) has been loaded without keeping some array to find this out?

e.g:

Load SocketIn(x)
SocketIn(x).RemoteHost = "XXX.XXX.XXX.XXX"
SocketIn(x).RemotePort = "1008"
SocketIn(x).Connect

After doing this and doing a few other things, can I now find out if SocketIn(x) has been loaded without getting some error?

*****Remember, I dont want to use some array to store if this socket has been loaded already!!!!

Thanks

How Can I Change The Timeout Check For TCP_IP Winsock Control As The Connection Is Disconnected?
Hi! Everybody!
I want to know how i can change the timeout check for the TCPIP winsock control as the connection is disconnected. Now i find when i connect two computers through TCPIP and if the connection is disconnected, one computer know the connection is cut at least 60seconds later and another cannot know the connection cut. I want to change the timeout to a smaller value. How can i achieve this?
Thank you very much!

Check Script Needed (Powerpoint: Check For Active Presentation}
I have a small problem with my powerpoint addin.
I want to have a optionbutton that is enabled as soon as powerpoint have an active window. (else the optionbutton is disables)

But i don't know how to make that.

plz help, thnx

Check If Combobox Has No Values Inside It And Check If Listview Is Empty
Hi, i need to do a check like this

If Nothing is in the combobox then
function
else
lala
end if

and

if nothing is in the listview then
function
else
lala
end if


(when i said in the combobox, i mean in the list. not the value of combobox.text)



thanks!!

Check If Data Is Correct. I Have A Password Check Problem .
Hi,
I have this program that users have to login. using a database.
the problem is i don't know how to make the program to see if the password matches the username or even if the username and password exist.
you know what i mean.........
can you please help me out with this. is there a simple sample code you can give me so i could play around with it.
thankyou very very much.
I hope you can help.

How To Check Connection To DB Is Connected And How To Check Record Set Really Have Result?
Code:Set DB = New ADODB.Connection
DB.ConnectionString = "Provider=" & DB_PROVIDER & ";" & _
           "Network Library=DBMSSOCN;" & _
           "Data Source=" & strSQLServer & _
           "; Initial Catalog = " & strDatabaseName & _
           "; User ID = " & strUserID & _
           "; Password = " & strPassWord
DB.Open
debug.print DB.state


Question : How can I check is the DB connection really connected (active)?
i use DB.state
and the result show 1
is it ok, if not please give suggestion?

Code:
sSQL = "Select * from table1"
  Set RS = New ADODB.Recordset
  RS.ActiveConnection = DB
  RS.Source = sSQL
  RS.Open

debug.print rs.recordCount


Question : I want to know how many record were find from the query. When I use debug.print rs.recordCount, it show -1. is it mean there is no record found? Should I use rs.properties.count instead?

I am confussing how to get record set and why there is no result from the query... something wrong?

Winsock State 8 - Peer Closes The Connection Leaving Winsock High And Dry
I am debugging some web/proxy-serving code. I am stumped.

I get Winsock state 8 - Peer is closing the connection
Then Winsock error message wrong protocol or connection state.

It seems to me that Winsock closes before it can finish sending all of its data.

How can I keep Winsock in state 7 - Connected?


Thanks...

Winsock Error (System Lockup Upon Winsock Execution)
Has anyone encountered an issue when running the winsock command and either a .listen or .connect locks up your VB Studio? This is occurring on my system and I'm not sure if its a problem with my current DLL or if I'm just not doing something correctly.

Please help.

Chris, Baltimore.

Winsock - Send PictureBox Contents Thrue Winsock?
Hey all, is it possible to send the contents of a PictureBox thrue a Winsock?

I know i can save the contents first to file and then send as file, but wondering this is possible, the purpose is in my chat project i have a webcam capture feature wich works fine, but i can't figure out how i can send this stream, did some searches but not found any results about it.

=============================================
aka Red2048.

Please What Kind Of Control That Displays Multiple Records And Has A Check Boxes So That I Can Check The Selected Records And Save Them In VB6.0?
Please what kind of control that displays multiple records and has a check boxes so that I can check the selected records and save them in VB6.0? ...?

How To Check All Check Boxes In Listview?
How do i check all check boxes in listview?

How To Check DDE Check Box In Files Type
I'm trying to register the new key or resetting the key with its associated application name. such as all txt file extension associated with Notepad.

My code is working fine up to setting/ modifying key with its associated application for printing by simply using /p "%1"

but for microsoft office file... I want to check "use DDE" checkbox and access DDE's feathers.

I want to add some new command to the
DDE Messages: .. etc.
Can anyone tell me how can I do that programmmatically.

thank you

Copyright © 2005-08 www.BigResource.com, All rights reserved