Home arrow VB.Net arrow Page 2 - Building a News Ticker Using VB.Net

Building a News Ticker Using VB.Net

In this latest article, Vikrant shows us how to create a news ticker using VB.Net and XML technologies.

Author Info:
By: R. Abhiram Vikrant
Rating: 4 stars4 stars4 stars4 stars4 stars / 161
October 31, 2003
  1. · Building a News Ticker Using VB.Net
  2. · Why XML?
  3. · Application Basics
  4. · Code
  5. · Conclusion

print this article

Building a News Ticker Using VB.Net - Why XML?
(Page 2 of 5 )

Yes, there are many ways to get the text and XML is one easy way (for lazy programmers like me) to obtain the text data. First, I considered introducing the string in the application itself but then one has to compile it each and every time they modify the data.
Then, I considered using a text file – in this case I’ve to use the stream reader – to detect the end of the file.  Adding to the problem, the text file would suffer from a lack of clarity if one uses more and more text to scroll.

To avoid these problems, I chose the XML file, which I call “the news file”.  I did not use any XML schema or XSL to avoid the complexity.  The structure of the XML file is given below:

<?xml version="1.0" encoding="utf-8" ?>
   <news>This article might  appear on w.devarticles.com</news>
   <news>This article was authored by Vikrant</news>
   <news>Hover the mouse over this app</news>
   <news>The timer just stopped</news>
   <news>Thanx to devarticle fans</news>
   <news>this ticker app is meant only for educational purpose</news>

The meaning of this file is self-evident.  The tag ticker is the root and news tags contain the text to be scrolled. That’s it!  Piece of cake, huh?  One can add the news tag at any time.

blog comments powered by Disqus

- MyClass - Implementing Polymorphism in VB.Net
- Building a News Ticker Using VB.Net
- Everything You Wanted to Know About Forms In...
- Building Assemblies with VB.Net
- Simple VB.NET Notify Icon with Panel Applica...
- Regular Expressions in .NET
- String Encryption With Visual Basic .NET
- Deploying Applications in VB.NET: Part 1/2
- Watching Folder Activity in VB.NET
- Creating A Windows Service in VB.NET
- Implementing The Google Web Service In VB.NET
- Migrating to Visual Basic.NET from Visual Ba...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials