Home All Groups Group Topic Archive Search About

i can't get number...

Author
7 Apr 2005 3:46 PM
Supra
i can't get number to displaying  in row..i got junk character ....

Dim sdBrush3 As SolidBrush = New SolidBrush(Color.Black)
        Dim myFont3 As Font = New Font(familyName:="Verdana",
emSize:=30, style:=FontStyle.Bold, unit:=GraphicsUnit.Pixel)
        For i = 1 To 10
            For j = 38 To 596 Step 62
                g.DrawString(i, myFont3, Brush:=sdBrush3, x:=j - i, y:=615)
            Next j
        Next i

i wanted number to ddiaplying from from 1 to 10 in row

Author
7 Apr 2005 5:40 PM
Herfried K. Wagner [MVP]
"Supra" <supr***@rogers.com> schrieb:
>i can't get number to displaying  in row..i got junk character ....
>[...]
>                g.DrawString(i, myFont3, Brush:=sdBrush3, x:=j - i, y:=615)

Replace 'i' with 'CStr(i)' or 'i.ToString()'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>