Programatically setting fonts

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.
 
D

David Webb

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.
 
A

Alex Feinman [MVP]

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

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