I've seen a thousands of articles on converting twips to pixels in VB6 but I'm working with VB.Net. I'm trying to manipulate a control embedded within a legacy control (ocx/dll). The component (and all sub-controls within it) report their coordinates in twips rather than pixels.
Checking the MSDN library hasn't proved very helpful - the only reference to twips is the TwipsToChartPart method of the MSChart control (and I'm not working with one of those).
I know that on average it's about 15 twips per pixel but it's dependent upon the display device. I'd like to determine it at runtime and get the right numbers rather than hard-coding an arbitrary number.
Suggestions?
Checking the MSDN library hasn't proved very helpful - the only reference to twips is the TwipsToChartPart method of the MSChart control (and I'm not working with one of those).
I know that on average it's about 15 twips per pixel but it's dependent upon the display device. I'd like to determine it at runtime and get the right numbers rather than hard-coding an arbitrary number.
Suggestions?