Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15628

Link Button 2 to webbrowser

$
0
0
Hello folks,

Need some help. I’m using Visual Studio 2010. I’m creating my own program to retrieve NOTAMs when flying, (specifically two key information: North Atlantic Track and Pacific Tracks), from the Advanced NOTAM Functions section from this website: https://www.notams.faa.gov/dinsQueryWeb/

I’ve created two buttons on my form.
Button 1 labeled = Atlantic Tracks
Button 2 labeled = Pacific Tracks

When I run the program, clicking Button 1, it does display the information as intended when I link that button using the WebBrowser1.Navigate code.

Button1
WebBrowser1.Navigate (“https://www.notams.faa.gov/common/nat.html?”)

Button 2 is where I have the trouble. I do the same as I did for Button 1,
WebBrowser1.Navigate(https://www.notams.faa.gov/dinsQuery...amMapAction.do")

however, it does not display the information. Upon further review when I look at website page source, I see that the link is shared with multiple options in the website Advanced NOTAM Functions section (see photo 1). Perhaps this is what's causing the confusion as Button1 doesn't know which information I seek.

Photo 1 = is the website when looking at the Advanced NOTAM Functions section. For example, when I click on Atlantic Tracks, in a new tab I see the website link for which I did for Button 1.
Photo 2 = After I click the Pacific Tracks button on the website, it opens a new tab and displays the info. I see the website link in the address bar however it is the same for when I click Presidential TFRs, ARTCC TFRs, etc. I then right click it to View Page Source (see photo 2).

How can I use the source code (in photo 2) to display, specifically, what I am trying to do for Button 2 on my program??
Attached Images
  

Viewing all articles
Browse latest Browse all 15628

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>