Results 1 to 4 of 4

Thread: How to create .net cf listviewitem font

  1. #1
    Join Date
    Oct 2008
    Posts
    76

    How to create .net cf listviewitem font

    Is their any smooth way to add columns with comboboxes or text boxes to a
    ListView in Detail mode in 2.0.? because i came across the list of breaking changes in the .NETCF 3.5 runtime and therefor i have decided to go for list view of an combo boxes, I need your opinion.

  2. #2
    Join Date
    Oct 2008
    Posts
    167

    Re: How to create .net cf listviewitem font

    Type: System.Drawing..::.Font
    The Font to apply to the text displayed by the control. Drag and Drop operations in windows can be achieved using 3 simple events:.DragEnter, DragLeave, DragDrop. The default is the value of the DefaultFont property if the ListViewItem is not associated with a ListView control; otherwise, the font specified in the Font property for the ListView control is used.

    Move Up Section:
    tagCache = .Items(selIdx - 1).Tag
    .Items(selIdx - 1).Tag = .Items(selIdx).Tag
    .Items(selIdx).Tag = tagCache

  3. #3
    Join Date
    Dec 2008
    Posts
    202

    Re: How to create .net cf listviewitem font

    You also needed to handle the reflected notification message OCM_NOTIFY to perform my custom drawing. Read through the newly-converted-to-2.0 code and came up with a few things I'd like to work on. The original .NET 1.1 project consisted of a GPS Library that handled serial port IO and the NMEA Protocol

    ListViewItem lvi = new ListViewItem();

    lvi.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));

    lvi.Text = "MessageRead";

    listView1.Items.Add(lvi);

  4. #4
    Join Date
    Jan 2009
    Posts
    108

    Re: How to create .net cf listviewitem font

    A ListView.ColumnHeaderCollection class stores the column headers that are displayed in the ListView control, Fortunately .NET 2.0 includes the new System.IO.Ports, so I figured I'd be able to use these. I started by opening the 1.1 Solution. The EventListView.cs contains the ListView derived control and implements the ICustomDraw interface.

Similar Threads

  1. Replies: 4
    Last Post: 24-08-2011, 09:26 PM
  2. Veranda Poster SG Font: Is new Font?
    By Andrzej in forum Operating Systems
    Replies: 3
    Last Post: 21-11-2009, 08:35 AM
  3. Font & font size changed for menu box!!
    By got2balls in forum Customize Desktop
    Replies: 5
    Last Post: 20-03-2009, 06:35 PM
  4. Which font is this? I want this font
    By Thunder Chicken in forum Customize Desktop
    Replies: 4
    Last Post: 12-02-2009, 02:49 PM
  5. Far Cry 2 Font
    By 2muchreality in forum Customize Desktop
    Replies: 2
    Last Post: 27-10-2008, 02:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,275,519.11567 seconds with 16 queries