PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Programatically setting fonts
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Programatically setting fonts
![]() |
Programatically setting fonts |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
label1.Font = new Font("Courier", 9, FontStyle.Regular)
"David Webb" <google@winbasic.com.au> wrote in message news:158dc356.0307071927.b01c54@posting.google.com... > 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. |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|
|
|
#4 |
|
Guest
Posts: n/a
|
You cannot obtain the record count other than by iterating through data
Reader or by modifying your query to return Count(*) "David Webb" <anonymous@devdex.com> wrote in message news:%232FJ8BRRDHA.1976@TK2MSFTNGP11.phx.gbl... > 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. > > > > > *** Sent via Developersdex http://www.developersdex.com *** > Don't just participate in USENET...get rewarded for it! |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

