I am a beginner in programming, here I want to create a window form with a scrolling text in it, or a marquee , how can I do It.
make scrolling text in window form
Collapse
X
-
Originally posted by Original PosterCan anybody send me code to [...]
Bytes is very much a "Give me a fish I eat for a day. Teach me to fish I eat for a lifetime" kind of place. Just giving you the code doesn't help you learn near as effectively as good old-fashioned trial and error.
Do a little reading up and experimenting then if your trials aren't doing what you expect, post the code and relevant messages/errors and we'll see what we can do to point you in the right direction for making it work.
Try hitting Google with terms of your programming language and primary terms of what you want to do. For example "C# custom events" or "VB datagrid Excel". I've found this to be a very effective tool.
May I suggest- First: Do some research. I heard about thing thing called Google, or books even.
- Second: Do some experiments yourself. You will learn so much from actually trying it before throwing up your hands in defeat before even starting.
- Third: Show the volunteers here the code that you created that was the closest to successful along with relevant errors.
-
Think about what a Marquee label does: at a regular interval the text moves.
Now, what do you need to implement this: a label control, a timer, and you need to draw the text youself, so that you can change the starting point.
The last item is a little difficult, what is involved: don't have the label draw the text, do it yourself. In programming lingo, you want to override the OnPaint event.
But this still doesn't cause the text to scroll! However, if you invalidate the control when the timer fires, then it will scroll.
Try to write some pseudocode that puts all of this together and post it back for us.
HTH --SamComment
Comment