?
Solved

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

Posted on 2003-10-23
4
Medium Priority
?
263 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 200 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

771 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