Obrzut, You don't need a webbrowser object in your VB application to accomplish this. You can have your application open a web browser in a new window. That's how I'm doing it in my Twitter client. Here's an example:
Dim webAddress As String = "http://www.google.com" Process.Start(webAddress) This will open Google in a web browser, using whatever browser is configured as the default. Get an authorization link from Twitter (AuthorizationLinkGet() in Shannon Whitley's OAuthTwitter class), and pass that link to Process.Start(). The user will be prompted to log in to Twitter and will receive the six-digit PIN. Your application should prompt the user to enter the PIN and pass it back to Twitter to complete the authentication process. Regards, Duane On Jun 30, 8:16 am, Obrzut <[email protected]> wrote: > Hi, > > Well, my experience of using a web browser in VB.Net is that you have > to keep to the same browser and cannot mix a HTTPWebRequest with a > WebBrowser1 object! > > What I tried was getting the pin number via a web browser object, then > sending that back via a HTTPWebRequest class. It failed miserably. > Perhaps it was my code? > > I too am writing a VB.NET program for Twitter! It is very exciting > work. I would have finished it last week but I had a whole week off > coding because of the flu. > > What I have left to do is parse all the XML into my program correctly. > Also, just a quick note - the XML.document.load in VB.NET does NOT > accept UTF-8 as an encoding method - so I suggest reformatting the XML > document as ASCII before trying to load it. ALSO - remove any white > space (there are about three spaces at the beginning of the document!) > otherwise VB.NET throws its toys out the pram. > > There are a few other issues too with XML documents and Twitter - such > as the '&' character being illegal. You have to replace every & with a > non-space if you want your document to load! Other than that - I > finally got my document into a VB.NET XML Document and now parsing the > XML is easy-peasy. This is because all you have to do is specify which > node name you want to retrieve - and VB.NEt does all the work! Haha. > > I am really tired today - but I might work on the VB.NET program some > more later on after I finish my nap :)
