473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Flying(scrolling) text in .NET 2.0 C#

hi,

What's the easiest way to make a text to fly inside of any control such
as textbox. Any ideas???
Apr 19 '06 #1
6 3260
Hmm. Back in the old days, a couple of tokes on the old Bong used to make
text fly everywhere. Which direction did you want your text to fly in from?

Have you tried Flash? There is no easy way, you are going to have to redraw
the text in some sort of timed method at different positions, or use GDI+ to
animate some sort of image that is overlaid on the textbox.

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Bosnewi" wrote:
hi,

What's the easiest way to make a text to fly inside of any control such
as textbox. Any ideas???

Apr 19 '06 #2
I tryed something in flash, but the problem remains because the text needs
to be loaded from a database. I know there is a way to communicate between
C# and Flash, but still the question is how to make dynamic text
flyyyyyyyyyyyyyyyyyyyy.

Thanks anyway.

On Wed, 19 Apr 2006 03:59:02 -0700, Peter Bromberg [C# MVP] wrote:
Hmm. Back in the old days, a couple of tokes on the old Bong used to make
text fly everywhere. Which direction did you want your text to fly in from?

Have you tried Flash? There is no easy way, you are going to have to redraw
the text in some sort of timed method at different positions, or use GDI+ to
animate some sort of image that is overlaid on the textbox.

Peter

Apr 19 '06 #3
Hi,

I would go with Flash , ( if you know how to program flash of course )
You can pass parameters to the flash player and use this parameter later to
achieve the flying effect.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"BisSoft" <bi******@newsgroups.nospam> wrote in message
news:1v*****************************@40tude.net...
I tryed something in flash, but the problem remains because the text needs
to be loaded from a database. I know there is a way to communicate
between
C# and Flash, but still the question is how to make dynamic text
flyyyyyyyyyyyyyyyyyyyy.

Thanks anyway.

On Wed, 19 Apr 2006 03:59:02 -0700, Peter Bromberg [C# MVP] wrote:
Hmm. Back in the old days, a couple of tokes on the old Bong used to make
text fly everywhere. Which direction did you want your text to fly in
from?

Have you tried Flash? There is no easy way, you are going to have to
redraw
the text in some sort of timed method at different positions, or use GDI+
to
animate some sort of image that is overlaid on the textbox.

Peter

Apr 19 '06 #4
Hi Bosnewi,

It'll be very hard to display such flying text in any kind of winform
controls. However, if you want to display such flying text on a form, you
can consider the following approachs:

1. Host a webbrowser component(activex or .net 2.0's managed webbrowser
wrapper class) and display a flash or animate GIF in it.

2. Create a custom winform UserControl and implement the flying text in the
usercontrol's drawing code logic

Thanks & Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 20 '06 #5
To do it inside of a textbox is very difficult, to do it in a control that
doesn't have a Win32 control underneath the covers is simpler.

For simple marquee implementations you can use a timer to update the
rendering origin of the window and repaint the text.

For marquees that don't bow to the nasty fifo nature of the message queue,
you can use threading and the hardware based timers.

For rock-solid but more difficult to manage stuff you can use a DirectX
surface to project your text onto. The update rate of that is truly
impressive.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Bosnewi" <bi******@newsgroups.nospam> wrote in message
news:et*************@TK2MSFTNGP03.phx.gbl...
hi,

What's the easiest way to make a text to fly inside of any control such as
textbox. Any ideas???

Apr 20 '06 #6
Hi,

This is finally some good answer. I did however find a way to do this. In
..NET 2.0 I put WebBrowser, in which I am loading marque made in flash. I
will have to thread it all since I am loading data from a database to
display. I did think of doing it through directX but I had no experience
with it, so maybe some time later.

Thanks for the answer
Apr 21 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Steve | last post by:
Hi all i am just starting to get back into VB and i need a little help. I am writing a program that asks a user to type in a set of numbers/letters (in this case shipping containers). Once the...
1
by: aler45dcom | last post by:
I write a flying text script,but it sinks at the bottom and it stays there forever. How to change it so that it flies in the webpage? <html> <head> <title>Flying text</title> <script...
6
by: bissatch | last post by:
Hi, I want to display text on screen with anti aliasing to make it appear smoother. Is it possible to do this in browsers by perhaps applying a style to it or is it entirely up the the browser?...
4
by: Jay | last post by:
This is a strange one that I can't seem to find a fix for. We have a Billing DB application (Access 2000 format) where we upload billing info in a comma delimited text file to our printer who...
5
by: ad | last post by:
I have a Textbox (Text) in a web form. I use this.SetFocus(Text1); to set the focus on Text1. How can I let the text in Text1 selected when the Text1 get focus?
3
by: ad | last post by:
I have a text file in the directory of my web application. How can I read this text file into a string vaiable?
0
by: JR123 | last post by:
Hi I am creating a form - the section below is if the person selects flight from the drop down list another field below drops down so they can enter flight details. how can i align the flight...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
31
by: yaaara | last post by:
Guys, I'm facing a wierd problem and don't exactly know where the glitch is. I have a form with Tab control in Access 2003. In each tab, I have a text box and two Datepicker controls. The wierd...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.