about changing the fonts and font size in datagrid

G

Guest

Hi all, I am new to .net compact framework, I want to ask how can i change
the font size and fonts in datagrid as I found that the fonts in the default
datagrid is so bad and the size is too large. Thank you.
 
D

Dinesh Bajaj

Hi,

Try this:

With DataGrid1
.Font = New Font("FontName", .Font.Size - 2, .Font.Style)
End With

Replace FontName with any of the font in the \Windows\Fonts folder.
 

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