שתף באמצעות


msflexgrid on vb.net

Question

Thursday, February 14, 2008 1:12 PM

 

Has anybody successfully used the msflexgrid from vb6 in vb.net.

 

When added as a COM object it looks ok but dosn't appear in the toolbox.

 

You can define it on a "DIM xxx as msflexgrid" and see all the members but when you try and set anything you get an error ???

All replies (2)

Tuesday, February 19, 2008 6:38 AM ✅Answered

markdrury,

 

Based on your post, MSFlexGrid control is widely used in unmanaged VB 6 development. If you are developing in VB.NET, or upgrade the project from VB 6 to VB.NET, I recommend you to use the standard .NET controls such as DataGrid (.NET 1.1) and DataGridView (.NET 2.0) instead of the unmanaged MSFlexGrid control.

 

In the standard control development, you don't need to register the old unmanaged ocx controls since this may cause some registration and migration problems. Using the standard controls, you can easily change the properties and call the existing methods with the powerful .NET data access development.

 

Please take a look at the thread Replacing MSFlexGrid in Visual Studio 2005 with the answer by Richard_Wolf to make your .NET controls more like the traditional MSFlexGrid control.

 

Hope that can provide you some idea.


Tuesday, February 19, 2008 8:54 AM

Mark,

what is it you are actually after accomplishing?

 

if you inform the forum then we can better assist you

 

 

Regards

Dogs_Bollox