Click here to Skip to main content
15,881,757 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Retrieving value from an XML file Pin
Ben Senior20-May-17 4:28
Ben Senior20-May-17 4:28 
AnswerRe: Retrieving value from an XML file Pin
Meshack Musundi23-May-17 5:58
professionalMeshack Musundi23-May-17 5:58 
GeneralRe: Retrieving value from an XML file Pin
Ben Senior23-May-17 7:33
Ben Senior23-May-17 7:33 
QuestionCatching Control, Shift Key and Alt Key Presses and Releases Pin
Jalapeno Bob16-May-17 11:19
professionalJalapeno Bob16-May-17 11:19 
AnswerRe: Catching Control, Shift Key and Alt Key Presses and Releases Pin
Alex k (oShortyo)16-May-17 23:16
Alex k (oShortyo)16-May-17 23:16 
AnswerRe: Catching Control, Shift Key and Alt Key Presses and Releases Pin
Richard Deeming17-May-17 1:19
mveRichard Deeming17-May-17 1:19 
GeneralRe: Catching Control, Shift Key and Alt Key Presses and Releases Pin
Jalapeno Bob17-May-17 7:03
professionalJalapeno Bob17-May-17 7:03 
QuestionGET PC POSITION IN VISUAL BASIC Pin
Otekpo Emmanuel9-May-17 13:28
Otekpo Emmanuel9-May-17 13:28 
GOOD DAY FRIENDS! Please, is it possible to detect when the pc or laptop position changes using visual basic? Take for instance, if pc was initially located at position A and later moved to position B; then, the application should be able to get the position's changes.

In a simplified term, assuming pc was in Lat. 30 and Log. 40, if position changes, then the lat. and log. values should also change.

Finally found what I want but it is in javascript.
Can anyone convert this to a desktop application in vb.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript">
        window.onload = function () {
            var mapOptions = {
                center: new google.maps.LatLng(18.9300, 72.8200),
                zoom: 14,
                mapTypeId: google.maps.MapTypeId.ROADMAP
            };
            var infoWindow = new google.maps.InfoWindow();
            var latlngbounds = new google.maps.LatLngBounds();
            var map = new google.maps.Map(document.getElementById("dvMap"), mapOptions);
            google.maps.event.addListener(map, 'click', function (e) {
                alert("Latitude: " + e.latLng.lat() + "\r\nLongitude: " + e.latLng.lng());
            });
        }
    </script>
    <div id="dvMap" style="width: 500px; height: 500px">
    </div>
</body>
</html>

Thanks in advance!

modified 12-May-17 15:12pm.

AnswerRe: GET PC POSITION IN VISUAL BASIC Pin
Chris Quinn9-May-17 21:28
Chris Quinn9-May-17 21:28 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Otekpo Emmanuel10-May-17 6:12
Otekpo Emmanuel10-May-17 6:12 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Chris Quinn10-May-17 21:47
Chris Quinn10-May-17 21:47 
GeneralSolved: GET PC POSITION IN VISUAL BASIC Pin
Otekpo Emmanuel12-May-17 8:50
Otekpo Emmanuel12-May-17 8:50 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Richard MacCutchan12-May-17 13:18
mveRichard MacCutchan12-May-17 13:18 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Otekpo Emmanuel13-May-17 8:20
Otekpo Emmanuel13-May-17 8:20 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Dave Kreskowiak13-May-17 8:39
mveDave Kreskowiak13-May-17 8:39 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Otekpo Emmanuel3-Jul-17 19:20
Otekpo Emmanuel3-Jul-17 19:20 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Richard MacCutchan13-May-17 20:53
mveRichard MacCutchan13-May-17 20:53 
AnswerRe: GET PC POSITION IN VISUAL BASIC Pin
Afzaal Ahmad Zeeshan10-May-17 5:19
professionalAfzaal Ahmad Zeeshan10-May-17 5:19 
GeneralRe: GET PC POSITION IN VISUAL BASIC Pin
Otekpo Emmanuel3-Jul-17 19:23
Otekpo Emmanuel3-Jul-17 19:23 
QuestionHow to return a array of structure in the function? Pin
Member 130177309-May-17 3:55
Member 130177309-May-17 3:55 
AnswerRe: How to return a array of structure in the function? Pin
David Mujica9-May-17 4:42
David Mujica9-May-17 4:42 
GeneralRe: How to return a array of structure in the function? Pin
Member 130177309-May-17 4:54
Member 130177309-May-17 4:54 
AnswerRe: How to return a array of structure in the function? Pin
Richard MacCutchan9-May-17 4:55
mveRichard MacCutchan9-May-17 4:55 
GeneralRe: How to return a array of structure in the function? Pin
Member 130177309-May-17 5:11
Member 130177309-May-17 5:11 
GeneralRe: How to return a array of structure in the function? Pin
Richard MacCutchan9-May-17 5:20
mveRichard MacCutchan9-May-17 5:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.