ListBox Problem 
Author Message
 ListBox Problem

The following VB6 API call draws a listbox with gray color on the
background.
Why, and how can i changed it ?

dim hWndList as long

Private Sub Form_Load()
    hWndList = CreateWindowEx(0&, "LISTBOX", "", _
           WS_CHILD Or WS_VISIBLE Or WS_BORDER Or WS_CAPTION, _
           50, 50, 200, 100, _
           hWnd, 0&, App.hInstance, 0&)
End Sub

Thanks Rami



Wed, 21 Mar 2001 03:00:00 GMT  
 ListBox Problem
Hi Rami --

Quote:
>The following VB6 API call draws a listbox with gray color on the
>background. Why, and how can i changed it ?

You asked for a listbox, so you got one.  What did you want -- a textbox? <bg>

Later...   Karl

PS -- Take a look at the WM_CTLCOLORLISTBOX message.



Wed, 21 Mar 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Load Chinese Char to VB listBox Problem

2. ListBox problem

3. Listbox Problem

4. access xp report listbox problems

5. Programmatically selecting items on ListBox problem

6. looping to load listboxes problem

7. Listbox problem

8. listbox problem

9. Sending data to ListBox problem

10. Listbox problem

11. ListBox problem ?

12. Multiselect Listbox problem

 

 
Powered by phpBB® Forum Software