[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
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!
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!
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 

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...
*whispers to self* Can't believe I thought this was going to be hard to do...
GoodGuy17 wrote:Thanks! I just tested this, and it works great.Me too lol lmao;
*whispers to self* Can't believe I thought this was going to be hard to do...
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

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
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 

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 

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.
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 

I suggest you to use code tags... as you have been informed many times before
10 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023