VB Code:
Public Declare Function TextOut Lib "gdi32" Alias "TextOutA" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal lpString As String, ByVal nCount As Long) As Long Public Sub Text2Picture(ByVal sString As String, ByVal PicBox As PictureBox, Optional ByVal posX As Long = 0, Optional ByVal posY As Long = 0) TextOut(PicBox.hdc, posX, posY, sString, Len(sString)) End Sub
I use this code in vb6 to create an image from a string of text... when i try using it in .NET it tells me - " 'hdc' is not a member of system.windows.form.picturebox" - how do i go about this?
cheers
si




Reply With Quote