473,326 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

FlexGrid Usage in .Net Program

I have replaced an older machine with a new one and have moved a VB .Net
program that I worte on the old machine to the new one. The program uses a
FlexGrid control for displaying some stuff in a tabular manner. After
transferring the program to the new machine it doesn't run because it cannot
find some references; specifically AxMSComCtl2, AxMSFlexGridLib, MSComCtl2
and MSFlexGridLib. These do not appear in the Projects > Add References
(.Net or COM tabs). Now in an earlier post to this group when I mentioned
this problem the response I got was (essentially) to use the DataGrid
control instead of the (VB 6) FlexGrid control. I am under a time crunch
and do not have time to learn the DataGrid control and would l;ike to
continue using the FlexGrid version of my program oin the new machine ... to
buy time so I can then learn the DataGrid control. Can someone tell me how I
can get hold of these controls/libraries so that I can run the program? Is
there some place where I can download them?

Thanks

Nov 21 '05 #1
4 4944
Fripper,

Be aware that you are consuming every time more time to by trying to use the
FlexFrid etc. and getting problem after proglem. The advices you got as you
wrote where not for nothing.

You are not the first one so most don't know anymore the problem, like me.
They switched to the datagrid.

Just my thought,

Cor
Nov 21 '05 #2
"fripper" <yo***@indiana.edu> schrieb:
I have replaced an older machine with a new one and have moved a VB .Net
program that I worte on the old machine to the new one. The program uses a
FlexGrid control for displaying some stuff in a tabular manner. After
transferring the program to the new machine it doesn't run because it
cannot find some references; specifically AxMSComCtl2, AxMSFlexGridLib,
MSComCtl2 and MSFlexGridLib. These do not appear in the Projects > Add
References (.Net or COM tabs).
[...]
Can someone tell me how I can get hold of these controls/libraries so that
I can run the program? Is there some place where I can download them?


You could install VB6 to get the components onto your machine.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

OK ... I got your message ... forget about using the VB 6 FlexGrid control
in .Net! I have spent the past couple of hours trying to get a handle on
the DataGrid control ... every now and then I see some stuff that makes me
think the DataGrid control is indeed better than the FlecGrid control but,
boy, getting my arms around this control is not easy. have set up a dataset
(DS), a datatable (DT) and a datagrid (DG) ... then I setup the (7) columns
in the datatable; eg.

DT.Add(New DataColumn("Entry", GetType(Integer)))

Then I add DT to the dataset ... i.e.

DS.Tables.Add(DT)

Then I put values into a datarow (DR); eg.

DR(0) = CStr(intTotal)

and add the row to the table:

DT.Rows.Add(DR)

Finally, I bind the datatable (DT) to the datagrid (DG):

DG.SetDataBinding(DS,"DataTable Name")

Whew! At last I have the datagrid established and populated ... and, by
gosh, it displays pretty well on my form. Two things I cannot figure out
how to do: (1) As I am adding rows there are certain criteria I use to
determine the color I want to use to display the row ... I cannot figure out
how to do this. (2) I don't want all of the columns of the grid to be the
same width. I found somehting called TableStyles that looks promising and
set up the column widths I want in the GridColumnStyles collection within
the TableStyles collection but I don't understand how to make them
effective.

I think that the DataGrid is an extremely flexible and useful control but it
so blasted complicated I fear I won't ever really unbderstand it.

Thanks for your help.
Nov 21 '05 #4
Fripper,

That was my first thought, have a look at our website and than the datagrid
part. Take some simple samples form that, than you see how extemeley simple
it is to use.

http://www.vb-tips.com/default.aspx?...f-587f730fa118

I hope this helps,

Cor
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: tombsy | last post by:
Hi gang... I want to have a form that can display data from a datasource that is not fixed. lets say a crosstab query that can change the number of colums and field headings depending on the...
4
by: VR | last post by:
I am trying to embed a check box into a FlexGrid's cell, but having a problem when I start scrolling the grid. Here is my MyCheckBox class... class MyCheckBox : CheckBox { void Init (...
9
by: JFB | last post by:
Hi All, I have a edit flexgrid, after to fill with different rows manually. How can I insert the rows of my flexgrid to my table (sql server) using ado.net? Any example? I can insert one row...
6
by: fripper | last post by:
I have just purchased a new system and am moving stuff off the old machine to the new ... including reinstalling VS .Net 2003 and several VB programs I had written. One of the programs uses a...
5
by: schapopa | last post by:
I have a flex grid and I am loading data to this flex grid in this way While sqldr.Read j = j + 1 MSFlexGrid1PLSummary.set_TextMatrix(MSFlexGrid1PLSummary.Row, MSFlexGrid1PLSummary.Col,...
0
by: alexh1000 | last post by:
When I insert the FlexGrid control in a dialog (using controls toolbar) the dialog fails to open on program execution(DoModal returns a -1). If I remove the FlexGrid from the dialog, the dialog...
5
by: brendanmcdonagh | last post by:
Hi, I have today completed my first ever program for a friend which displays total hours worked for each day then adds them up. Now I want to transfer this data to store in access. I did do a...
3
by: sweevil | last post by:
I'm converting a VB6 project to .Net2005. One of the items encountered was setting the cellpicture onto a flexgrid from an imagelist. The image background doesn't appear to render correctly. I...
3
by: ArmageddonAsh | last post by:
I'm trying to make an application that will allow the user to enter data into a flexgrid (that's done) and then save the data from that flexgrid into a CSV file but even though the file is made none...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.