Results 1 to 2 of 2

Thread: Removing Scroll Bar from List Box

  1. #1

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81
    I have 2 listboxes that are linked, I need to remove the scroll bar from one of them (more items then the list box can show). I can't make the listboxes bigger. So my only option is to remove the scroll bar.
    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

  2. #2
    Guest
    Use the ShowScrollBar API function.


    Code:
    Private Declare Function ShowScrollBar Lib "user32" _ 
    (ByVal hwnd As Long, ByVal wBar As Long, _ 
    ByVal bShow As Long) As Long 
    
    Private Const SB_BOTH = 3 
    Private Const SB_HORZ = 0 
    Private Const SB_VERT = 1 
    
    
    Private Sub Command1_Click() 
        ShowScrollBar List1.hwnd, 3, False 
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width