Programatically setting fonts

  • Thread starter Thread starter David Webb
  • Start date Start date
D

David Webb

Hi,

In code (vb.net cf), how can I set the font of a label? I am creating
controls at runtime, and want to set the font to courier new as I need
a proportional font so that I can calculate the size of the control
based on the text that I am putting into it.

Thanks in advance!

Regards,

David.
 
Thanks Alex! Much appreciated! Do you have any ideas how I can get the
equivalent of a recordcount when I'm using an SQLCE DataReader?

Kind Regards,

David.
 
You cannot obtain the record count other than by iterating through data
Reader or by modifying your query to return Count(*)
 
Back
Top