Solved

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

Posted on 2003-10-23
4
256 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
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now