i can't get number...

S

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
 
H

Herfried K. Wagner [MVP]

Supra said:
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()'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top