Link to home
Start Free TrialLog in
Avatar of plq
plqFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Need a Table Control with Source Code

Hi Folks

I need a grid or table control with source code so I can include it in a deployment program. It must have source code and must use simple VB controls with no compiled activex components because the deployment program cannot itself be installed

THanks
Avatar of DarkoLord
DarkoLord
Flag of Slovenia image

Hi, you can use a standard ListView from windows common controls' dll (instead of ocx), which is included in windows... Here are two pages with everything you need to use this in your project:

http://www.mvps.org/btmtz/vbexplorer/
http://www.mvps.org/btmtz/listview

However, you can still "include" all dependencies in you executable file using a tool like Thinstall (http://www.thinstall.com/)

Good luck!
Darko
Avatar of plq

ASKER

Thanks, I've been using listviews for years but there's still a couple of guids out there (=dll hell) and the exe can't put anything into the windows drive before it runs, so listview is not an option. Also comctl is not guaranteed to be there. Don't want anything complex or high risk like that  thinstall stuff. Just a simple table control with source code is all I need.
Common controls DLL is included in EVERY (win 95+) windows installation (windows explorer uses it :))... the links in my post above uses that dll so it works without any problems

Well as far as I know there is no "simple" independent table control, because there is quite a lot of code to draw the table and then handle all events and properties

Darko
Avatar of plq

ASKER

Thanks, I'll wait to see if anyone else has the source code for a table control.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MrPan
MrPan

What I have done in the past was to use side by side listboxs. Turn off the scroll bars for all but the last box. You will need to add code so that if any of them are either scrolled or clicked on that it highlight the rest of the rows.
Avatar of plq

ASKER

Thanks

I think emoreau has given me the solution I need, I just need to rip out some third party activex controls that that component uses.