PDA

View Full Version : .NET - TextControl.images.add problem [TX .NET prerelease]


Unregistered
December 9, 2002, 11:45:57
Hello,

have problem to load specific file from a pre-define image gallery. Image doesnt show up in the textcontrol.

below is how my code look like.
Dim imgGalery As New frmImageGalery()

If imgGalery.ShowDialog() = DialogResult.OK Then

Dim Tximg As New TXTextControl.Image(imgGalery.Imagename, 5)
Tximg.HorizontalScaling = imgGalery.SizePara
Tximg.VerticalScaling = imgGalery.SizePara

Try
TextControl1.Images.Add(Tximg, -1)

Catch ex As Exception
MsgBox("Cannot Insert image: " & imgGalery.Imagename & " " & ex.ToString)

End Try
End if
any clue?


This message was originally posted by Alex Cheong in the old TX Text Control Support Forum.