469,150 Members | 1,949 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,150 developers. It's quick & easy.

View SQL Server 2000 db in VB6 listview

gud day...

please help me with my project...
how can i view the database from sql server 2000 in vb6 list view?
Jan 2 '08 #1
5 2328
daniel aristidou
491 256MB
gud day...

please help me with my project...
how can i view the database from sql server 2000 in vb6 list view?
You will have to use a loop and the list.additem methods

something like

Expand|Select|Wrap|Line Numbers
  1. Dataset.recorset.movefirst
  2. Do while not Dataset.recordset.eof
  3.  
  4. List.additem Dataset.recorset.<feild>
  5. Datset.recordset.movenext
  6. Loop
Thats wht you should base your code on
What project is this since there are rules as to what we can help you with.
Daniel(~_~)
Jan 3 '08 #2
debasisdas
8,127 Expert 4TB
1.Open the conection to sql server
2.Open the recordset as desired.
3.Follow as suggested in the previous post.
Jan 3 '08 #3
----->>>>>
yes i've done it but how can i modify/edit the listview like changing the font color,back color of every 2nd row,and others...?
Jan 7 '08 #4
debasisdas
8,127 Expert 4TB
----->>>>>
yes i've done it but how can i modify/edit the listview like changing the font color,back color of every 2nd row,and others...?
listview does not support all those properties directly.
You might need to use some 3rd party control for the same.
Jan 7 '08 #5
QVeen72
1,445 Expert 1GB
Hi,

To Alternate the Colours in ListView, You have to use API's (User32.dll, and Kernel32.dll). and loads of Codes in .bas module.
if you still Want, Check This

A Simple way out is to use a "FlexGrid" control, Changing any Property of this grid is quite simple..

Regards
Veena
Jan 7 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Tom | last post: by
5 posts views Thread by Praveen R | last post: by
4 posts views Thread by Dilip | last post: by
12 posts views Thread by Andrew Lias | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.