Sample Marquee Control in Windows application


This article explain about Marquee the text similar to HTML in Windows based application. In this sample Marquee text doesn't wrap to next line.

This article explain about Marquee the text similar to HTML in Windows based application.There is no marquee control or property is not available in windows application. If we want to apply the marquee style to the text, then we manually manipulate the text for each timer tick.

While implementing this functionality through substring method, I faced one issues, "If the text length is more than the control width then the text was automatically wrap to next line". So we can't see the full text.

Finally I got the solution by using graphics functions over that control. For that I created a new class called "ScrollingText" inherited from the control base class.

Here I made the sample application for Marquee the label text either Left to right or Right to left.

Please download the sample and send your response.


Reference: http://www.codeproject.com/KB/edit/dougscrollingtextctrl.aspx


Attachments

  • Sample Marquee Control in Windows application (39315-29044-MarqueeApplicationSamples.rar)
  • Comments

    No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: