Click here to Skip to main content
15,905,590 members
Home / Discussions / C#
   

C#

 
GeneralReading TOC and text from Word 2002 Pin
Steven_T5-Jul-04 2:34
Steven_T5-Jul-04 2:34 
QuestionHow to add custom properties in PropertyGrid at Runtime Pin
ilmian5-Jul-04 1:34
ilmian5-Jul-04 1:34 
Questionhow to get my computer speed Pin
maro-gb5-Jul-04 1:10
maro-gb5-Jul-04 1:10 
AnswerRe: how to get my computer speed Pin
Heath Stewart5-Jul-04 5:29
protectorHeath Stewart5-Jul-04 5:29 
Generalgenerics Pin
noraguta5-Jul-04 0:21
noraguta5-Jul-04 0:21 
GeneralRe: generics Pin
noraguta5-Jul-04 1:52
noraguta5-Jul-04 1:52 
Questionhow to make a customized control box Pin
Imran Ahmed Khan5-Jul-04 0:11
Imran Ahmed Khan5-Jul-04 0:11 
AnswerRe: how to make a customized control box Pin
Heath Stewart5-Jul-04 5:17
protectorHeath Stewart5-Jul-04 5:17 
GeneralPrinting Pin
exhaulted5-Jul-04 0:06
exhaulted5-Jul-04 0:06 
GeneralRe: Printing Pin
exhaulted5-Jul-04 0:21
exhaulted5-Jul-04 0:21 
GeneralConverting Pixels to 100/Inch Pin
exhaulted5-Jul-04 0:59
exhaulted5-Jul-04 0:59 
GeneralRe: Converting Pixels to 100/Inch Pin
Pain_Elemental5-Jul-04 2:19
Pain_Elemental5-Jul-04 2:19 
GeneralRe: Converting Pixels to 100/Inch Pin
Pain_Elemental5-Jul-04 3:53
Pain_Elemental5-Jul-04 3:53 
GeneralRe: Converting Pixels to 100/Inch Pin
exhaulted5-Jul-04 4:21
exhaulted5-Jul-04 4:21 
GeneralRe: Converting Pixels to 100/Inch Pin
Heath Stewart5-Jul-04 5:38
protectorHeath Stewart5-Jul-04 5:38 
GeneralRe: Converting Pixels to 100/Inch Pin
exhaulted5-Jul-04 6:06
exhaulted5-Jul-04 6:06 
GeneralRe: Converting Pixels to 100/Inch Pin
Heath Stewart5-Jul-04 6:27
protectorHeath Stewart5-Jul-04 6:27 
I just told you how and my sample code can convert from pixels to twips and twips to pixels. As I said, a twip is 1/1440 of an inch, so simply divide the number of twips by 1440 to get the number of inches. Multiply the number of inches by 1440 to get the number of twips and convert to pixels.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Converting Pixels to 100/Inch Pin
exhaulted5-Jul-04 23:50
exhaulted5-Jul-04 23:50 
GeneralRe: Converting Pixels to 100/Inch Pin
Heath Stewart6-Jul-04 4:21
protectorHeath Stewart6-Jul-04 4:21 
GeneralRay Picking Pin
ghho5-Jul-04 0:04
ghho5-Jul-04 0:04 
Generalenum and inheritance Pin
Anonymous4-Jul-04 23:39
Anonymous4-Jul-04 23:39 
GeneralRe: enum and inheritance Pin
hatim_ali5-Jul-04 2:12
hatim_ali5-Jul-04 2:12 
GeneralRe: enum and inheritance Pin
Anonymous5-Jul-04 3:50
Anonymous5-Jul-04 3:50 
GeneralRe: enum and inheritance Pin
Heath Stewart5-Jul-04 5:40
protectorHeath Stewart5-Jul-04 5:40 
GeneralRe: enum and inheritance Pin
leppie5-Jul-04 7:16
leppie5-Jul-04 7:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.