How to create a table?

Posted on 2003-03-26
Medium Priority
Last Modified: 2010-05-01

I would like to know how to create a grid in VB and programme each cell in the grid is able to change color and had click event. Or any alternative way to had a table with cell itself able to change color and event handling.

Question by:pupuboo
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
LVL 53

Expert Comment

by:Ryan Chong
ID: 8209432
i will try use the MSFlexGrid or ListView control, based on the requirement and then decide which one should use.

Expert Comment

ID: 8209536
You can use MSFlexgrid Control Component to include Grid in your Application and you can format each cell.

Accepted Solution

jinijose earned 750 total points
ID: 8210849

you can use a msflexgrid control.  On the click event of the flex control just type this
msgbox MsFlexGrid.textmatrix(MsFlexgrid.Row,MsFlexgrid.Col)

this will give you the content of the clicked cell.


Expert Comment

ID: 8222193
Another option is to use third party control, which is True DBGrid(if i'm not mistaken).

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Suggested Courses

770 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