i am creating a teleprompter software. i want the following things
1. scrolling text smoothly in a picturebox from bottom to top and vice versa from top to bottom.
2. the speed of scrolling text should be adjustable to the maximum and minimum.
the text is scrolling smoothly. but i have a problem. when i press the up arrow key it should scroll up and when i press the down arrow key it should scroll down from the current scrolling line. By default the text should start scrolling from bottom to top. i would of great help if u could solve this.i require it very urgently.
the up and down arrow keys are working perfectly. but why is the text bouncing back if it reaches the top and bottom of the picturebox. actaually i would be loading a large text file. So the text should keep scrolling from bottom to top till it reaches the last line of the text. i should not bounce back when it reaches the border of the picturebox. even while scrolling from top to bottom it is the same. i hope u would have understood. this is for news reading purpose. the reader should keep on reading the text as it scrolls from bottom to top.
Originally posted by ayesha16 i am creating a teleprompter software. i want the following things
1. scrolling text smoothly in a picturebox from bottom to top and vice versa from top to bottom.
2. the speed of scrolling text should be adjustable to the maximum and minimum.
You have mentioned vice versa..
Are you new to VB...?.... If not.. I guess you can change the code..
My exact requirements are as follows. Actually i am doing a teleprompter software for news reading purpose. This should be in the form of a text editor. I would be loading a Txt file in a picturebox.Once i press the space bar the text should scroll smoothly in the picturebox from bottom to top. this is done so that the news reader could read the scrolling text till the last line of text file. it is possible to stop the scrolling text in the middle. So in order to stop the scrolling text the space bar should be pressed. the space bar should be pressed again to continue scrolling. the up and down arrow keys should be used to either scroll text upwards or downwards from the current line which i alredy mentioned. the left and right arrow keys should be used to increase and decrese the speed. since this is a teleprompter software there would be mirror in front of the teleprompter machine. So the reader would not be able to read in the proper order in the mirror. i would be reversed. so there should be a method to reverse the scrolling text with a mirrored font as well. hope u would have understood what i want here. when i press F9 key the mirror image of the scrolling text should be visible which could be readable when it reflects on a mirror. When i press F8 key agin the original scrolling text should be seen. These are my requirements. Please help me out. Iam new to VB. i require this urgently.
the earlier coding which u sent was correct.it should scroll continously with the up and down arrow keys. But there is a problem here. when u load the text file all the contents of the file are loaded in a single line. how to word wrap the contents in a picturebox.
how to start and stop scrolling when i press space bar which i mentioned earlier.Once i press the space bar the text should scroll smoothly in the picturebox from bottom to top. this is done so that the news reader could read the scrolling text till the last line of text file. it is possible to stop the scrolling text in the middle. So in order to stop the scrolling text the space bar should be pressed. the space bar should be pressed again to continue scrolling.
the speed could be controlled. but the scrolling text is not scrolling smoothly there is a jerk. the coding which u had first sent had a very smooth scrolling also the speed was very fast. please check up the first coding and see the difference which i meant even if the speed is increased.
is it not possible to have a single picture box and obtain th mirror image of text in that picturebox. i had already mentioned that when the text is scrolling if i press F9 the mirror image of the text should appear and if i press F8 the original text should scroll.
but what about the speed in picture1. the speed in bg is correct if i remove drawinverse. now i want the same speed in picture1 by making bg.visible=false.
what happened to the question i asked u earlier.
but what about the speed in picture1. the speed in bg is correct if i remove drawinverse. now i want the same speed in picture1 by making bg.visible=false.
i have another problem. u have given a fixed statement for load a file. but it is not a fixed file name. when i say load text file My documents folder shuld open and i should be able to select a file for scrolling.this cannot be used.
'Open "C:\My Documents\unity.txt" For Input As #1
' While Not EOF(1)
' Line Input #1, st
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
don't get me wrong since i've been using these forums i've asked for a lot of help, sometimes several times per project. but i always post as a last resort, and i always make sure i understand the answers posted.
i certainly wouldn't do what this bloke has done on this thread and keep asking someone to write a program.
i can't believe pradeepkrao put up with it. i would have been tempted to put some file deletes into the code just to check if ayesha16 actually understand the code before blindly running it. (but then i can be vindictive).
by the way pradeepkrao i think your app is excellent.
thank u very much Mr.PradeepKRao for all the help. It is silly of me to keep on asking questions. But i cannot help it. B'coz i am new to VB i had to ask u. Actuallu i have various other features to be included in this software. What i asked u is only 25% of my project. Iam really sorry if i have hurt u by any means. But the code u had sent me was really helpful to a large extent. If u dont mind could u do a final favour for me.and i should be able to select a file for scrolling from the mydocuments folder instead of using a standard file.this cannot be used.
'Open "C:\My Documents\unity.txt" For Input As #1
' While Not EOF(1)
' Line Input #1, st
if it is possible please help me out with this alone and i would be very grareful to u.
thank u very much for the new code.but if command buttons are placed it is not possible to use the space bar,upand down arrow keys and right and left arrow keys. So i placed a menu bar and put the file select option in the menu bar. the run option i placed it in the enter key code. So this was working but the space bar was not working to stop and scroll again b'coz if i press the space bar the form gets unloaded. also i want the font size to be
48 and font name should be Arial Black. if i do this change then the scrolling text apears jumbled up with overlapping letters and it starts scrolling from middle of the text file. so could u please suggest a remedy for this.