winforms in .Net use pixels
There are no twips anymore, but 1 twip is still 1/1440 inch
pixels / g.dpix * 1440
paste this in a form and it will work
Private Function fIntPixToTwips(ByVal intValInPix As Integer) As Integer
Dim g As Graphics = Me.CreateGraphics()
fIntPixToTwips = intValInPix / g.dpix * 1440
g.Dispose()
End Function
happy coding :-)
Michel Posseth
"Jeremy" <je****@ninprodata.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
The real reason I ask is, I want to compare the size of a winform label
with the size of a crystal field. Crystal uses twips. What units are used in
winforms? Pixels? Points?
Jeremy