Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. ListView

ListView

Scheduled Pinned Locked Moved C#
graphicshelptutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shamsteady
    wrote on last edited by
    #1

    Can anyone tell me how to use this control? Help me please... public ListViewItem ( string[] items , System.Int32 imageIndex , System.Drawing.Color foreColor , System.Drawing.Color backColor , System.Drawing.Font font )

    E 1 Reply Last reply
    0
    • S shamsteady

      Can anyone tell me how to use this control? Help me please... public ListViewItem ( string[] items , System.Int32 imageIndex , System.Drawing.Color foreColor , System.Drawing.Color backColor , System.Drawing.Font font )

      E Offline
      E Offline
      Edmundisme
      wrote on last edited by
      #2

      You'll really need to ask a more specific question. The ListView control can be used lots of ways. What exactly are you trying to do? Also, have you tried reading the ? documentation on MSDN[^]

      S 1 Reply Last reply
      0
      • E Edmundisme

        You'll really need to ask a more specific question. The ListView control can be used lots of ways. What exactly are you trying to do? Also, have you tried reading the ? documentation on MSDN[^]

        S Offline
        S Offline
        shamsteady
        wrote on last edited by
        #3

        I want to do drag and drop in list view.But from what i seen, drag and drop can be done for string only. Can we do drag and drop other than string?

        E 1 Reply Last reply
        0
        • S shamsteady

          I want to do drag and drop in list view.But from what i seen, drag and drop can be done for string only. Can we do drag and drop other than string?

          E Offline
          E Offline
          Edmundisme
          wrote on last edited by
          #4

          shamsteady wrote:

          from what i seen, drag and drop can be done for string only

          I'm not sure what you mean. ListView controls don't contain strings, they contain ListViewItem objects. It is fairly simple to implement Drag/Drop behavior in a ListView. You'll need to create a new control that inherits from ListView, then override the drag/drop event handlers. This article[^]appears to explain it (I didn't read it myself...). Good luck.

          S 1 Reply Last reply
          0
          • E Edmundisme

            shamsteady wrote:

            from what i seen, drag and drop can be done for string only

            I'm not sure what you mean. ListView controls don't contain strings, they contain ListViewItem objects. It is fairly simple to implement Drag/Drop behavior in a ListView. You'll need to create a new control that inherits from ListView, then override the drag/drop event handlers. This article[^]appears to explain it (I didn't read it myself...). Good luck.

            S Offline
            S Offline
            shamsteady
            wrote on last edited by
            #5

            Ok thanks

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups