Click here to Skip to main content
15,885,366 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionScanner Interface Pin
WinCrs3-Jan-10 18:42
WinCrs3-Jan-10 18:42 
AnswerRe: Scanner Interface Pin
DaveAuld3-Jan-10 19:41
professionalDaveAuld3-Jan-10 19:41 
AnswerRe: Scanner Interface Pin
tosch3-Jan-10 23:27
tosch3-Jan-10 23:27 
QuestionHow do i open an excel file in a Richtextbox in vb.net 2008? Pin
r_mohd2-Jan-10 15:36
r_mohd2-Jan-10 15:36 
AnswerRe: How do i open an excel file in a Richtextbox in vb.net 2008? Pin
Naji El Kotob2-Jan-10 17:28
Naji El Kotob2-Jan-10 17:28 
AnswerRe: How do i open an excel file in a Richtextbox in vb.net 2008? Pin
Rod Kemp2-Jan-10 17:35
Rod Kemp2-Jan-10 17:35 
QuestionHow to read/extract data from a web page? Pin
jadothebest2-Jan-10 15:06
jadothebest2-Jan-10 15:06 
AnswerRe: How to read/extract data from a web page? Pin
nlarson112-Jan-10 16:43
nlarson112-Jan-10 16:43 
This is an example of calling a webpage and getting the ip address from the source - i use it as part of my dynamic dns client that i made.


Dim Req As HttpWebRequest = WebRequest.Create("http://www.whatsmyip.us/")

*****************************************************************
** if you need to pass credentials then do this line **
Req.Credentials = New NetworkCredential("USERNAME", "PASSWORD")
*****************************************************************

Dim rs As New StreamReader(Req.GetResponse.GetResponseStream(), System.Text.Encoding.GetEncoding("utf-8"))
Dim s As String = rs.ReadToEnd 'you know now have the entire source in variable 's'

rs.Close()
rs.Dispose()
rs = Nothing

Req = Nothing

Dim IP As String = Regex.Match(s, "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}").Value

'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous

'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous


GeneralMessage Removed Pin
3-Jan-10 9:39
jadothebest3-Jan-10 9:39 
GeneralRe: How to read/extract data from a web page? Pin
Dave Kreskowiak3-Jan-10 15:12
mveDave Kreskowiak3-Jan-10 15:12 
GeneralMessage Removed Pin
3-Jan-10 15:17
jadothebest3-Jan-10 15:17 
GeneralRe: How to read/extract data from a web page? Pin
Dave Kreskowiak3-Jan-10 17:34
mveDave Kreskowiak3-Jan-10 17:34 
GeneralRe: How to read/extract data from a web page? Pin
jadothebest5-Jan-10 15:51
jadothebest5-Jan-10 15:51 
GeneralRe: How to read/extract data from a web page? Pin
Dave Kreskowiak5-Jan-10 17:24
mveDave Kreskowiak5-Jan-10 17:24 
QuestionImport XML into access db Pin
tessers2-Jan-10 1:52
tessers2-Jan-10 1:52 
AnswerRe: Import XML into access db Pin
Ebube4-Jan-10 0:28
Ebube4-Jan-10 0:28 
QuestionCreating Trial Version software Pin
Milind Panchal1-Jan-10 19:14
Milind Panchal1-Jan-10 19:14 
AnswerRe: Creating Trial Version software Pin
DaveAuld1-Jan-10 19:34
professionalDaveAuld1-Jan-10 19:34 
QuestionUse controls who are creating dynamically Pin
ivo751-Jan-10 8:01
ivo751-Jan-10 8:01 
AnswerRe: Use controls who are creating dynamically Pin
nlarson111-Jan-10 12:46
nlarson111-Jan-10 12:46 
GeneralRe: Use controls who are creating dynamically Pin
ivo751-Jan-10 23:21
ivo751-Jan-10 23:21 
AnswerRe: Use controls who are creating dynamically Pin
shravan raval2-Jan-10 4:20
shravan raval2-Jan-10 4:20 
Questionfont based text editor Pin
sarcino1-Jan-10 5:30
sarcino1-Jan-10 5:30 
AnswerRe: font based text editor Pin
sarcino1-Jan-10 8:01
sarcino1-Jan-10 8:01 
GeneralRe: font based text editor Pin
Smithers-Jones1-Jan-10 10:40
Smithers-Jones1-Jan-10 10:40 

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.