Solved

Stating an Internet Connection from withing the application (Compact Framework).

Posted on 2003-10-23
4
262 Views
Last Modified: 2012-08-14
Im trying to find information on Stating an Internet Connection from withing the application.
I have looked all over the web for it, What I want to do is start an already existing Internet Connection from withing my application, like Internet Explorer does that when your not connected it pops up the Connection dialog.

I will be using the VisualBasic.Net/Compact Framework for this, if anybody has a link, code or even a hint it would be greatlly appreciated.

Thanks you!
Here are my 250 for this question.
0
Comment
Question by:mirizarry
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:iboutchkine
ID: 9609632
System.Diagnostics.Process.Start(sURL)

Is this what you are looking for?
0
 

Author Comment

by:mirizarry
ID: 9609679
Well let me give you a described scenario.

User Open Application.
User wants to synchronize their data but he is not connected to the internet at thea time.
Application Runs synchronization and detects its not connected to the Internet.
Application pops up Intenert Connection dialog for the user to connect.
User clicks con connect and then continues synchronization.
0
 
LVL 28

Accepted Solution

by:
iboutchkine earned 50 total points
ID: 9610091
It looks like you need to check if the user is connected to the internet.

Try this

Imports System.Runtime.InteropServices

<DllImport("wininet.dll")> _
    Public Function InternetGetConnectedState( _
        ByVal lpdwFlags As Integer, ByVal res As Integer) As Boolean
End Function

Public Function InternetConnectionExists() As Boolean
    ' Determines if there is a connection to the Internet.
    ' Note that InternetGetConnectedState cannot be considered
    ' 100% reliable. An issue can occur if an internet connection
    ' has never been configured, the function may return true, even
    ' though there is no internet connection.
    '

    Dim e As Integer = 0
    Dim ret As Boolean = InternetGetConnectedState(e, 0)

    Return ret

End Function


also check this site
http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b821770
0
 

Author Comment

by:mirizarry
ID: 9610238
Thank You

That it WinInet :P
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 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