473,387 Members | 1,722 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,387 software developers and data experts.

Moving of texts

19
Hi...

1.Can i move texts, pictures in the VB.6 interace? As in <Marquee > is used in html.
Jan 5 '07 #1
6 1268
Hi...

1.Can i move texts, pictures in the VB.6 interace? As in <Marquee > is used in html.
Yes you can do that, simply flow the below code

Dim int1 As Integer
Private Sub Timer1_Timer()
If int1 = Len(......some text.......) Then int1 = 1
TxtFlash = Mid(StrFlash, int1, Len(StrFlash)) & StrFlash
int1 = int1 + 1
End Sub
Jan 5 '07 #2
Killer42
8,435 Expert 8TB
Can i move texts, pictures in the VB.6 interace? As in <Marquee > is used in html.
I don't think VB has a scrolling textbox control, but you can do it yourself with a bit of code (see response from srikanthtenali for a sample). I think there is an animation control which will show an animated GIF file or a movie.
Jan 5 '07 #3
Zelalem
19
Yes you can do that, simply flow the below code

Dim int1 As Integer
Private Sub Timer1_Timer()
If int1 = Len(......some text.......) Then int1 = 1
TxtFlash = Mid(StrFlash, int1, Len(StrFlash)) & StrFlash
int1 = int1 + 1
End Sub

I tried it, but i faild to do so and come up with the following queston.
Can you say something why it does not work ?
Jan 17 '07 #4
I tried it, but i faild to do so and come up with the following queston.
Can you say something why it does not work ?
Dim _MoveLeft
Private Sub Timer1_Timer()
If Label1.Left < 0 Then _MoveLeft = False
If Label1.Left > Me.Width - Label1.Width Then _MoveLeft = True
If _MoveLeft Then
Label1.Left = Label1.Left - 10
Else
Label1.Left = Label1.Left + 10
End If
End Sub

Note : first you must set interval value and set true to enable property to timer1

hope this help,

<X>
Jan 17 '07 #5
Killer42
8,435 Expert 8TB
I tried it, but i faild to do so and come up with the following queston.
Can you say something why it does not work ?
I haven't tried that code myself, but one thing stands out. If you tried to use it exactly as it was shown here, the ......some text....... would cause an error because it needs quotes (") around it to make it a string literal. srikanthtenali just used it as a placeholder to show where you should place your text string.
Jan 17 '07 #6
Killer42
8,435 Expert 8TB
On further consideration, I think there are further problems with that code. Try snowwwolf's, and see how it goes. The difference is that the first method was trying to chop up a string and stick the parts of it together differently, while snowwwolf is simply moving a label on the form. Both techniques probably have their good and bad points.

I believe the best thing for you to do at this point would be to take the ideas that have been provided, and play with them. You'll learn much more that way than if we just hand you a solution.
Jan 17 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: daimler | last post by:
is there a way to enter texts into msaccess 2000 form from vba form codes? i am using dao automation ole to open the msaccess 2000 form but cannot seem to enter texts into the form's cell through...
2
by: bobbymusic | last post by:
Hey all, my problem is when I start to compare two texts with different lenght. The point is that the texts are loaded in two RTB and I don't know how to compare them. I found that I have to parse...
2
by: Jorgen Bodde | last post by:
Hi all, I want to make a small batch copy tool that scans for certain files, and copies them to a specified directory. Since the files are huge (AVI / DIVX) typical 300 to 700 Mb, I want to...
0
by: anupam roy | last post by:
Hi, I have created my own XML text editor and using XmlReader to read the xml files I have opened one xml file for editing in the text box editor( i have . Now before saving the file, i want to...
0
by: linkswanted | last post by:
World Moving & Storage Moving Companies and Movers We would like to take this opportunity to introduce "World Moving & Storage" to You. "World Moving & Storage" is well established, Fully...
0
by: linkswanted | last post by:
http://www.movingcompanies.co.il/supplies/boxes.html http://www.movingcompanies.co.il/residental/ http://www.movingcompanies.co.il/commercial/corporate-moves.html...
0
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in...
0
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in...
9
by: SuperNova | last post by:
Hello! I need to mark similar phrases in two different texts, for example to use <btag. Example: text 1: Google Chrome is a browser that combines a minimal design with sophisticated...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.