[VB.Net]Auto-Updating News

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
10 posts Page 1 of 1
Contributors
User avatar
ChaosOverLord
Member
Member
Posts: 36
Joined: Sun Mar 20, 2011 12:17 am

[VB.Net]Auto-Updating News
ChaosOverLord
ChaosOverLord's Tutorials Present....
Auto-Updating News In VB.Net
Have you just wanted to show your app users the important urgent
news but dont know how?Well again heres your tutorial!

Add 1 label to the form

Lets get to the coding!

Put you imports in like this

Imports System.Net

Then add this in your variables

Dim web As New WebClient
Dim news As String = "LINK TO THE TXT FILE"

Add the link to the text file where you will have your news.

Then in form load use this

Try
Me.Label2.Text = Web.downloadstring(news)
Catch ex As Exception


End Try

Thanks for supporting me guys!This is the 4th of my tutorials!
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: [VB.Net]Auto-Updating News
zachman61
Very nice but this should be a snippet
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

Re: [VB.Net]Auto-Updating News
GoodGuy17
Thanks! I just tested this, and it works great.

*whispers to self* Can't believe I thought this was going to be hard to do...
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: [VB.Net]Auto-Updating News
zachman61
GoodGuy17 wrote:
Thanks! I just tested this, and it works great.

*whispers to self* Can't believe I thought this was going to be hard to do...
Me too lol lmao;
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: [VB.Net]Auto-Updating News
zachman61
I keep getting an exception after about an hour after of putting the code in.
it says
Invalid Characters in path.
The url is
http://bigmoneygamerzx.com/z61/status.txt
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

http://www.megaapps.tk/
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: [VB.Net]Auto-Updating News
zachman61
Tried didnt help at all :(
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: [VB.Net]Auto-Updating News
mandai
If you are using your own URL then the problem is either being caused by that, or its your web host.
Last edited by mandai on Sun Mar 27, 2011 7:37 pm, edited 1 time in total.
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: [VB.Net]Auto-Updating News
zachman61
mandai wrote:
If you are using your own URL then it is either something in that or your web host that is causing the problem.
it was working before.
should i have it in the root directory?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: [VB.Net]Auto-Updating News
Agust1337
I suggest you to use code tags... as you have been informed many times before
Top-notch casual Dating
10 posts Page 1 of 1
Return to “Tutorials”