Is web page access possible?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've been playing with an idea in my head but don't actually know if it's
possible, so I thought I'd post the qustion here and see if anyone knows how?

Is it possible to type some text into a textbox then get your app to put
this text into a web based textbox, then get the text from the resulting
webpage and paste it into a richtextbox.

for example, I type "Surfing" into a textbox and click OK. "Surfing" would
then be dropped into Google's Seach Textbox. Google performs the search and
from the results the text of googles page is dropped back into my app in a
rich textbox.

Cheers for any advice
Niels
 
Niels

There are more ways,

A little example of one of them

Open a new windows application project

In the toolbox rightclick and select add/Remove items

In the customize toolbox select Com and in that Microsoft Webbrowser

When that is in the toolbox drag it to your form
Drag also a button to your form.

Then this code and you have a mini Webbrowser.

\\\
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("
http://www.google.dk/search?hl=da&q=surfing&btnG=Google-søgning&meta=
")
End Sub
///

I hope this helps a little bit?

Cor
 
Niels Jensen said:
I've been playing with an idea in my head but don't actually know if it's
possible, so I thought I'd post the qustion here and see if anyone knows
how?

Is it possible to type some text into a textbox then get your app to put
this text into a web based textbox, then get the text from the resulting
webpage and paste it into a richtextbox.

Take a look at the 'HttpWebRequest' class. You can use the HTTP 'POST'
command to send the query.
 
for example, I type "Surfing" into a textbox and click OK. "Surfing" would
then be dropped into Google's Seach Textbox. Google performs the search and
from the results the text of googles page is dropped back into my app in a
rich textbox.

In addition to the other comments, if you're specifically looking to query
Google, then you can use Google's web services for that purpose.

Here's the link:

http://www.google.com/apis/


--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
Niels. This sounds interesting. Were you able to do this to any extent. If
so could you post your solution or email it to me?

genojoe[AT]neo_lunchmeat_[DOT]rr[DOT]com

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
Hi,

Take a look at string.replace and regex.replace.

http://msdn.microsoft.com/library/d...f/html/frlrfsystemstringclassreplacetopic.asp

http://msdn.microsoft.com/library/d...tregularexpressionsregexclassreplacetopic.asp


Ken
----------------
Niels. This sounds interesting. Were you able to do this to any extent.
If
so could you post your solution or email it to me?

genojoe[AT]neo_lunchmeat_[DOT]rr[DOT]com

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
I think this might be the correct answer to a different question.

Ken Tucker said:
Hi,

Take a look at string.replace and regex.replace.

http://msdn.microsoft.com/library/d...f/html/frlrfsystemstringclassreplacetopic.asp

http://msdn.microsoft.com/library/d...tregularexpressionsregexclassreplacetopic.asp


Ken
----------------
Niels. This sounds interesting. Were you able to do this to any extent.
If
so could you post your solution or email it to me?

genojoe[AT]neo_lunchmeat_[DOT]rr[DOT]com

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.


Niels Jensen said:
Hi,

I've been playing with an idea in my head but don't actually know if it's
possible, so I thought I'd post the qustion here and see if anyone knows
how?

Is it possible to type some text into a textbox then get your app to put
this text into a web based textbox, then get the text from the resulting
webpage and paste it into a richtextbox.

for example, I type "Surfing" into a textbox and click OK. "Surfing"
would
then be dropped into Google's Seach Textbox. Google performs the search
and
from the results the text of googles page is dropped back into my app in a
rich textbox.

Cheers for any advice
Niels
 
Ken Tucker said:
so could you post your solution or email it to me?

genojoe[AT]neo_lunchmeat_[DOT]rr[DOT]com

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.

Take a look at string.replace and regex.replace.

LOL :-)!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top