Page 1 of 1

VB 2008 Tutorial - TypeWriter Text Effect

Posted: Mon Jan 18, 2010 10:26 am
by tvs praveen
Hi, Now i`m gonna show how to make TypeWritter text effect

its really too simple, First you insert 1 Label, And design your Label as you wish, I mean set Label`s Font style, Color e.t.c in Properties

Then inert this code under Public Class Form1
Code: Select all
Dim WithEvents b As New System.ComponentModel.BackgroundWorker
Dim Str As String = "Super Cool Type Writer Effect"
Dim GlobalString As String
Insert this code into Form1 Load Events
Code: Select all
b.WorkerReportsProgress = True
b.RunWorkerAsync()
And insert this code below Load Events code
Code: Select all
Sub work() Handles b.DoWork
Dim s As New System.Text.StringBuilder(Str)
While True
For i = 0 To str.length - 1
globalstring = globalstring & s(i)
b.reportprogress(0)
threading.thread.sleep(100)
If globalstring.length = s.length Then globalstring = Nothing
Next
End While
End Sub
Sub rpt() Handles b.ProgressChanged
Label1.text = GlobalString
End Sub
Note: Just remove "Super Cool Type Writer Effect" text in under Public Class Form1 code and insert your text whatever you wish!


*******************Thanks for reading my tutorial, I think this Tutorial will be most helpful to you!*******************

If you want any custom tutorial for you or you need any help in VS.NET, VB.NET, Software Coding, Designing and much more any help in Computer stuffs just ask me

Mostly i will help everyone in coding and design stuffs in on Computer

- Best regards hehaho;

- Tvs Praveen wahooo;

- Thanks CodeNStuff! for this amazing Website cooll;

Re: VB 2008 Tutorial - TypeWriter Text Effect

Posted: Tue Jan 19, 2010 7:44 pm
by Nery
Very nice Label effect, good job.

Re: VB 2008 Tutorial - TypeWriter Text Effect

Posted: Wed Jan 20, 2010 4:20 am
by tvs praveen
Nery wrote:
Very nice Label effect, good job.

Thanks Nery

Re: VB 2008 Tutorial - TypeWriter Text Effect

Posted: Wed Jan 20, 2010 4:01 pm
by Lewis
Nice code :D

Re: VB 2008 Tutorial - TypeWriter Text Effect

Posted: Wed Jan 20, 2010 6:32 pm
by tvs praveen
lewisfroom wrote:
Nice code :D
Thanks

Re: VB 2008 Tutorial - TypeWriter Text Effect

Posted: Wed Jan 20, 2010 9:02 pm
by Lewis
No Problem