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
  1. Home
  2. General Programming
  3. C#
  4. Few Questions

Few Questions

Scheduled Pinned Locked Moved C#
tutorial
3 Posts 3 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.
  • C Offline
    C Offline
    chito
    wrote on last edited by
    #1

    Hello, I have few questions, 1. How to know whether scrollbars appeared in a list control at run time or not. 2. How to restrict user changing listview columns widths. 3. How to know whether a user has changed list view columns or not. How to keep track of changed list view columns. 4. How to know the names of all tcp and serial ports in a computer. Chito

    B S 2 Replies Last reply
    0
    • C chito

      Hello, I have few questions, 1. How to know whether scrollbars appeared in a list control at run time or not. 2. How to restrict user changing listview columns widths. 3. How to know whether a user has changed list view columns or not. How to keep track of changed list view columns. 4. How to know the names of all tcp and serial ports in a computer. Chito

      B Offline
      B Offline
      Brian Olej
      wrote on last edited by
      #2

      chito wrote: 1. How to know whether scrollbars appeared in a list control at run time or not. You could figure out on your own how many items can appear in your list before the scroll bars apear and then in your App test if the amount of items has gone past the number you found. Of course this would only work if the listbox stayed the same size. "We will thrive in the new environment, leaping across space and time, everywhere and nowhere, like air or radiation, redundant, self-replicating, and always evolving." -unspecified individual

      1 Reply Last reply
      0
      • C chito

        Hello, I have few questions, 1. How to know whether scrollbars appeared in a list control at run time or not. 2. How to restrict user changing listview columns widths. 3. How to know whether a user has changed list view columns or not. How to keep track of changed list view columns. 4. How to know the names of all tcp and serial ports in a computer. Chito

        S Offline
        S Offline
        Stephane Rodriguez
        wrote on last edited by
        #3

        1. .VScroll returns true of false 2. and 3. : also you are probably not going to like it, the only way I can think of is to override the WndProc method and provide a handler for the WM_NOTIFY message (HDN_TRACK notification). Lookup MSDN for more info about this WIN32 header control notification.

        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