Click here to Skip to main content
15,887,856 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Width and Height of a Character Pin
Dominick Marciano3-Feb-09 6:35
professionalDominick Marciano3-Feb-09 6:35 
GeneralRe: Width and Height of a Character Pin
Hari-Adarapu3-Feb-09 8:49
Hari-Adarapu3-Feb-09 8:49 
GeneralRe: Width and Height of a Character Pin
EliottA3-Feb-09 9:05
EliottA3-Feb-09 9:05 
GeneralRe: Width and Height of a Character Pin
Dominick Marciano3-Feb-09 9:19
professionalDominick Marciano3-Feb-09 9:19 
GeneralRe: Width and Height of a Character Pin
EliottA3-Feb-09 9:24
EliottA3-Feb-09 9:24 
GeneralRe: Width and Height of a Character Pin
0x3c03-Feb-09 9:31
0x3c03-Feb-09 9:31 
AnswerRe: Width and Height of a Character Pin
EliottA3-Feb-09 6:58
EliottA3-Feb-09 6:58 
GeneralRe: Width and Height of a Character Pin
Hari-Adarapu27-Feb-09 19:48
Hari-Adarapu27-Feb-09 19:48 
Hello All,

Thanks for the replies.. I really appreciate your effort.

I did some research and finally found out the way to find Height and Width of the character (any language). I am posting this because i could see only questions on this and i didn't find any reply with the exact solution.

1. Get the handle to the desktop.
2. Get the device context using this desktop handle.
3. Create the font using CreateFont for particular font type.
4. Use selectobject to assign this font type to the device context.
5. GetTextExtentPoint32 to get the height and width of the character you want.

I followed the above steps and was able to get the results as expected.

Please excuse me if i am wrong somewhere..

Thanks,
Hari krishna.
QuestionHow can I display international characters in a listview? Pin
JUNEYT3-Feb-09 5:40
JUNEYT3-Feb-09 5:40 
AnswerRe: How can I display international characters in a listview? Pin
Rupesh Kumar Swami3-Feb-09 9:26
Rupesh Kumar Swami3-Feb-09 9:26 
QuestionMS Access and VB.Net Pin
vijay24823-Feb-09 1:44
vijay24823-Feb-09 1:44 
AnswerRe: MS Access and VB.Net Pin
ketur patel3-Feb-09 2:03
professionalketur patel3-Feb-09 2:03 
GeneralRe: MS Access and VB.Net Pin
vijay24823-Feb-09 2:09
vijay24823-Feb-09 2:09 
AnswerRe: MS Access and VB.Net Pin
Dave Kreskowiak3-Feb-09 2:07
mveDave Kreskowiak3-Feb-09 2:07 
GeneralRe: MS Access and VB.Net Pin
Tom Deketelaere3-Feb-09 3:51
professionalTom Deketelaere3-Feb-09 3:51 
GeneralRe: MS Access and VB.Net Pin
Dave Kreskowiak3-Feb-09 4:03
mveDave Kreskowiak3-Feb-09 4:03 
GeneralRe: MS Access and VB.Net Pin
Tom Deketelaere3-Feb-09 4:10
professionalTom Deketelaere3-Feb-09 4:10 
GeneralRe: MS Access and VB.Net Pin
Wendelius3-Feb-09 10:03
mentorWendelius3-Feb-09 10:03 
GeneralRe: MS Access and VB.Net Pin
Tom Deketelaere3-Feb-09 11:01
professionalTom Deketelaere3-Feb-09 11:01 
GeneralRe: MS Access and VB.Net Pin
Wendelius3-Feb-09 11:13
mentorWendelius3-Feb-09 11:13 
GeneralRe: MS Access and VB.Net Pin
vijay24823-Feb-09 20:46
vijay24823-Feb-09 20:46 
GeneralRe: MS Access and VB.Net Pin
Tom Deketelaere3-Feb-09 20:57
professionalTom Deketelaere3-Feb-09 20:57 
GeneralRe: MS Access and VB.Net Pin
vijay24823-Feb-09 21:29
vijay24823-Feb-09 21:29 
GeneralRe: MS Access and VB.Net Pin
Tom Deketelaere3-Feb-09 21:46
professionalTom Deketelaere3-Feb-09 21:46 
GeneralRe: MS Access and VB.Net Pin
vijay24823-Feb-09 22:14
vijay24823-Feb-09 22:14 

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.