Terça-feira, Junho 27, 2006

Microsoft Speech: How to use?

This sample use the Microsoft Speech Lib to Apply a voice to a Windows Form.
(It's possible to use to a ASP.NET file)

Sample Struture:



How to Add the Speech Lib:



VB.NET Sample:
Download

Segunda-feira, Junho 26, 2006

VB.NET: How to gets the Current Directory

Sample:

Dim strBaseFileLocation As String = CurDir()

VB.NET: Put a Image into Button

Dim imageAux As Image

imageAux = New Bitmap("C:\Picture1")
Me.Button1.BackgroundImage = imageAux

VB.NET: Random Numbers

Sample:

Randomize()
intRandomPos = Rnd(1) * 10

This will return Numbers from 0 to 1 and multiply by 10

Resume:

Gives numbers from 0 to 10