Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

C# windows app simulate writting with delay function and background music

Posted on 2010-09-02
6
Medium Priority
?
488 Views
Last Modified: 2012-05-10
HEJ EXPERTS :),

I want to build something like the following:

-A windows app that has a string let say 30 lines (reading from a file)
-outputting strings  to screen with a picture (that i can have path saved in string so no issue)
.Question is how I can SIMULATE powerpoint like writting by printing out character by character OR if this is very complicated i can stick to ONE LINE per go but there should be a delay between lines. PLEASE Help how to achieve this.
-I want to have a background music (one file) throughout the execution of the application. (I think it is something to do with threading)
Please help in achieving the above. Thanks
0
Comment
Question by:hussainAbid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 9

Accepted Solution

by:
puru1981 earned 2000 total points
ID: 33584820
you can use a stream reader to read from the file using buffer
after each read you can make a delay using sleep(3000) fro 3 seconds and write the stream to the box area as per your choice(character by character or line by line).

For the playing of music you can use timer to reset when the music file ends.
0
 

Author Comment

by:hussainAbid
ID: 33584848
Thanks, puru 1981,
I realised you made it pretty simple for me i dint think it was this simple BUT can you also please help with music file thing. Do i need a thread and/or how to run that file in the background. Any example code/link will be a GREATTTTT help :)
 
0
 
LVL 9

Expert Comment

by:puru1981
ID: 33584924
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 9

Expert Comment

by:puru1981
ID: 33585038
you can use PlayLooping Method instead of Play no need to use timer.
0
 

Author Comment

by:hussainAbid
ID: 33585051
Puru You are a Champ man ..
0
 

Author Closing Comment

by:hussainAbid
ID: 33585055
EXCELLENT HELP
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question