VB.Net
  Home arrow VB.Net arrow Page 2 - Building a News Ticker Using VB.Net
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VB.NET

Building a News Ticker Using VB.Net
By: R. Abhiram Vikrant
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 126
    2003-10-31

    Table of Contents:
  • Building a News Ticker Using VB.Net
  • Why XML?
  • Application Basics
  • Code
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    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" ?>
    <ticker>
       <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>
    </ticker>

    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.

    More VB.Net Articles
    More By R. Abhiram Vikrant


       · I'm trying to create the News Ticker as advised in this article but am unable to get...
       · Vikrant,I added couple of lines code. This stopped the flicker. May be there is a...
     

    VB.NET ARTICLES

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







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek