Home arrow Visual Basic arrow Page 6 - A Real-Time ActiveX News Control

A Real-Time ActiveX News Control

A while back, Mitchell wrote an article about MoreOver.com and their XML news sources (which are free for developers using them for non-profit purposes). Today, Mitchell takes that idea one step further and creates an ActiveX component that uses the MoreOver.com news feeds in a similar way. The component uses the XMLHTTP library and the MSXML parser to retrieve and process the news. This article also acts as a good introduction to ActiveX controls if you have never created one before.

Author Info:
By: Mitchell Harper
Rating: 5 stars5 stars5 stars5 stars5 stars / 10
December 22, 2001
  1. · A Real-Time ActiveX News Control
  2. · Creating the ActiveX control
  3. · Obtaining our news with XMLHTTP
  4. · Displaying the link
  5. · Compiling and using our new ActiveX control
  6. · Conclusion

print this article

A Real-Time ActiveX News Control - Conclusion
(Page 6 of 6 )

Well there you have it, a nifty little ActiveX control that uses the power of XML, the Internet, and Visual Basic. There are heaps of ways that you can improve on this control, and they will all give you some good programming practice. Here are some of them:
  • Create a publicly accessible function called "SetBGColour" that will accept three integer values, R, G, and B. Set the background colour of the control to the windows version of these RGB values, and return the old colour as an integer. The functions declaration would look like this: Public SetBGColor(R as integer, G as integer, B as integer) As integer
  • Create a "Next >>" link at the bottom of the control. Add some code to display the next five news headlines. When all of the twenty headlines have been displayed, display a "<< Previous" button link, to navigate back through the articles.
  • Use the news categories at http://w.moreover.com/categories/category_list_xml.html to add a drop down box and a command button to the top of our ActiveX control. Let the user choose a category, and retrieve the headlines for that category.
If you would like more information on the XMLHTTP library or ActiveX controls, please take a look at some of the links below.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus

- Developing an XML Web Service Using Visual S...
- Creating an HTML File List with VB
- Fun with Email: VB6, CDO, MAPI, and a Remote...
- Extranet/Intranet Dictionary Cracker in VB
- Finding Default App Icons With Visual Basic
- Registry Fever With Visual Basic
- Implementing An ADO Data Control With VB6
- Printing With Visual Basic
- MSMQ Part 1/2: Architecture and Simple Imple...
- Magnifying The Desktop With Visual Basic
- Sending Email With MAPI Components in Visual...
- Two Person Chat With The Winsock Control And...
- A Real-Time ActiveX News Control
- Accessing the Windows API in Visual Basic

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