Solved

Urgent Help Needed

Posted on 2004-09-29
4
612 Views
Last Modified: 2007-12-19
Is there anyway to solve this error?

Error msg: 'State' is a type in 'AxMSWinsockLib.AxWinsock' and cannot be used as an expression.

 Private Sub wsSend_ConnectionRequest(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_ConnectionRequestEvent) Handles wsSend.ConnectionRequest
        If wsSend.State <> MSWinsockLib.StateConstants.sckClosed Then
            wsSend.Close()
        End If

        wsSend.Accept(e.requestID)

        If wsSend.State = MSWinsockLib.StateConstants.sckConnected Then
            Call WsSendConnected()
        End If
    End Sub


thank you!
0
Comment
Question by:loverbear84
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
eozz_2000 earned 125 total points
ID: 12187101
Change your code to this:

Private Sub wsSend_ConnectionRequest(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_ConnectionRequestEvent) Handles wsSend.ConnectionRequest
        If wsSend.CtlState <> MSWinsockLib.StateConstants.sckClosed Then
            wsSend.Close()
        End If

        wsSend.Accept(e.requestID)

        If wsSend.CtlState = MSWinsockLib.StateConstants.sckConnected Then
            Call WsSendConnected()
        End If
    End Sub

I hope this could help you :)
0
 

Author Comment

by:loverbear84
ID: 12187194
thank for ur immediate response
the code work.
Do you have the code on how to send and recieve file from pda to pc and vice versa though gsm/gprs but not web based type. Do you have any example cos really need it urgently, i will increase the point if gd solution is given
thank alot

0
 
LVL 4

Expert Comment

by:eozz_2000
ID: 12187320
Well, is important to know that is an only question per discussion if not be at that way... all of us would do a lot of questions and don't giving any points...
0
 
LVL 4

Expert Comment

by:eozz_2000
ID: 12187326
sorry if this upset you but... the people like to receive points for their good answers :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
I need help making a collection from a class in VB.Net 3 42
vb.net help 4 34
Help with consolidating excel files using VB.net 2 29
VB.Net. Reading xml value 6 29
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question