PC Review


Reply
Thread Tools Rate Thread

Changing the ListView FontSize

 
 
Jin Kim
Guest
Posts: n/a
 
      7th Aug 2003
Hi all,
Is there any way to resize my font in a Listview without
changing the column header size? Currently when I change
the font size the column header resizes as well. I am
using Compact Framework with C#.

Thanks in advance.
 
Reply With Quote
 
 
 
 
Jacky Kwok
Guest
Posts: n/a
 
      8th Aug 2003
Jin Kim wrote:
> Hi all,
> Is there any way to resize my font in a Listview without
> changing the column header size? Currently when I change
> the font size the column header resizes as well. I am
> using Compact Framework with C#.
>
> Thanks in advance.



I think you said the "Detail" mode, right?

You can set the font of each individial ListViewItem. The ListViewItem
has its own font property.
You can even set different ListViewItems have different font size.

If you set in designer of VS, set the font of the itme in items collection.
If you set in program code, set the Font property of each ListViewItem.

--
Jacky Kwok
(E-Mail Removed)
(E-Mail Removed)

 
Reply With Quote
 
Jin Kim
Guest
Posts: n/a
 
      11th Aug 2003
Yes I am working in detail mode.
I tried your suggestion with the following line of code.
ListViewItem lvItem = new ListViewItem(jp);
lvItem.ListView.Font.Size = 16;

The complier returned:
(544): Property or indexer 'System.Drawing.Font.Size'
cannot be assigned to -- it is read only

I do believe in the full Framework this property is able
to be written to.

Thanks for the help!

>-----Original Message-----
>Jin Kim wrote:
>> Hi all,
>> Is there any way to resize my font in a Listview

without
>> changing the column header size? Currently when I

change
>> the font size the column header resizes as well. I am
>> using Compact Framework with C#.
>>
>> Thanks in advance.

>
>
>I think you said the "Detail" mode, right?
>
>You can set the font of each individial ListViewItem. The

ListViewItem
>has its own font property.
>You can even set different ListViewItems have different

font size.
>
>If you set in designer of VS, set the font of the itme in

items collection.
>If you set in program code, set the Font property of each

ListViewItem.
>
>--
>Jacky Kwok
>(E-Mail Removed)
>(E-Mail Removed)
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ListView item changing event Edward Diener Microsoft Dot NET Framework Forms 0 22nd Jan 2010 06:29 AM
Stop powerpoint from changing fontsize when I add/delete text? =?Utf-8?B?VHJlZXRvcA==?= Microsoft Powerpoint 1 17th Oct 2005 02:15 PM
ListView changing size Michael C Microsoft C# .NET 5 29th Dec 2004 06:40 AM
Changing colors of rows in listview =?Utf-8?B?RG9u?= Microsoft Access 0 8th Dec 2004 04:49 PM
How to change the fontname and fontsize of a listview Timo Meier Microsoft Dot NET Compact Framework 2 19th Mar 2004 09:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:59 PM.