473,842 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4975
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("Ent ry", GetType(Integer )))

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

DS.Tables.Add(D T)

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.SetDataBindi ng(DS,"DataTabl e 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 GridColumnStyle s 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
5215
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 result. So, I cant have a normal form based on a table or query. I want to use something like the MSFlexgrid or Datagrid to display a dynamic result set.
4
6700
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 ( AxMSFlexGridLib.AxMSFlexGrid oGrid,
9
5569
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 with the code below but when I use a for loop to my flexgrid... it doesn't work. Also do you know any advance book for ado.net that you can recomend? Tks in advance JFB
6
6388
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 FlexGrid control but after moving it to the new machine that control is gone! I cannot remember how I set-up the flex control ... it is not a standard VB 2003 control. The program (on the old machine) has references to AxMSComCtl2, AxMSFlexGridLib,...
5
4349
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, sqldr("date1") & "q-" & sqldr("date2")) MSFlexGrid1PLSummary.Row = 1 MSFlexGrid1PLSummary.CellFontBold = True If Not IsNothing(sqldr("Total1")) Then
0
1831
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 opens so it is definitely a flexgrid related issue. This is using VC++ 6.0 I did not change any of the default FlexGrid properties yet. Thanks
5
2931
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 sample kind of thing last week with flexgrid which worked but i didn't write code! Itshowed me how to use this procedure but I have only gotten so far with this. So what I have so far in flexgrid is the start time, end time and total hurs which I just...
3
7832
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 put the same image (icon) into the flexgrid and onto a command button. The icon in the flexgrid has a Blue background - not transparent. The same icon on the command button has the correct areas transparent. I've messed with the TransparentColor...
3
5861
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 of the data from the flexgrid goes into the CSV file and so I have a couple of questions. 1, How do I make the application load the data from a specific CSV file? 2, How do I make it so that the user is able to add information to the data and...
0
10950
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10617
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10681
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10318
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7862
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7045
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5699
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4506
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3148
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.