If someone could please help me achieve this i would be very grateful.
If someone could please help me achieve this i would be very grateful.
Webbrowser element?
Zomfg. And no, don't ask. - Dombo did it.
First make a website page ex. YouSite.com/news.html then make a small layout, where your news are, Remember the news layout have to be a page only with news!
Then in VB make a form and add the webbrowser element, and set it to start up on http://www.YouSite.com/news.html or whatever you have you news.
Make sure you news layout are the same site as the webbrowser form.
Hopes that hep![]()
Do you ever wonder why we are here and not there ?
Put a news.txt on your server, each line holding a news item. Stream the news file, load the lines into an array, and you can use them however you like on your form. I know others have said HTML, but this way doesn't require internet explorer installed on the target machine.
Hmm good point, with my way you need IE...
Do you ever wonder why we are here and not there ?
or you can download the html without IE too:
to check its not IE:Code:Dim z As New System.Net.WebClient Dim whatnot As String whatnot = z.DownloadString("url")
it will change the title to nothing so i think its not IECode:Me.Text = z.Headers.Item(Net.HttpRequestHeader.UserAgent)
and in the whatnot variable you get the source code. (im using vs08 idk if its works in prev versions)
Last edited by visitor; 04-27-2009 at 11:43 PM.
Hey I just met you
viktor - you CAN do that, but it's a bitty harder to parse and display html than it is to parse/display plain text. It's the WebBrowser control that needs IE.
yes i know that, just said that it can be done that way too
Hey I just met you