Solved

Need a Table Control with Source Code

Posted on 2004-08-21
7
130 Views
Last Modified: 2010-05-02
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
0
Comment
Question by:plq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 22

Expert Comment

by:DarkoLord
ID: 11863208
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
0
 
LVL 8

Author Comment

by:plq
ID: 11864446
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.
0
 
LVL 22

Expert Comment

by:DarkoLord
ID: 11865747
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
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Author Comment

by:plq
ID: 11867571
Thanks, I'll wait to see if anyone else has the source code for a table control.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 11870058
0
 
LVL 2

Expert Comment

by:MrPan
ID: 11871401
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.
0
 
LVL 8

Author Comment

by:plq
ID: 11871467
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.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question