Others

This section provides different options to upgrade other controls that are common in VB6 applications and that don’t fit in any of the other sections.

As with the previous options, all these components have two alternatives when upgrading them to .NET, one is to upgrade using COM Interop and the second one is to use .NET components.

1. Accusoft

1.1. To Accusoft .NET Version

General Description:

This solution converts the Accusoft VB6 library to the Accusoft.NET component.

Class

Maps to

AccusoftISISXpress7.ISISXpress

Accusoft.ISISXpressSdk.IsisXpress

AccusoftISISXpress7.ISX_SaveFileType

Accusoft.ISISXpressSdk.FileTypeInfo

AccusoftISISXpress7.ISX_ScanSetting

Accusoft.ISISXpressSdk.ScanSettingInfo

AccusoftISISXpress7.ISX_SetupOptions

Accusoft.ISISXpressSdk.SetupOptions

AccusoftImagXpress13.ImagXpress

Accusoft.ImagXpressSdk.ImageXView

AccusoftImagXpress13.enumAutoSize

Accusoft.ImagXpressSdk.AutoResizeType

AccusoftImagXpress13.enumZoomFit

Accusoft.ImagXpressSdk.ZoomToFitType

Original VB6 code:

Begin AccusoftImagXpress13Ctl.ImagXpress ImagXpress1 
...
End
Begin AccusoftISISXpress7Ctl.ISISXpress ISISXpress1 
...
End

Private Sub Command2_Click()
    Me.ISISXpress1.CreateDib = True
    Me.ISISXpress1.CreateFiles = True
    Dim driver As String
    Dim scanner As String
    Dim r As String
    r = Me.ISISXpress1.Root
    Me.ISISXpress1.Cancel
    Me.ISISXpress1.Cancel True
    Me.ISISXpress1.Cancel False
    Me.ISISXpress1.CancelImmediate
End Sub

Private Sub Form_Load()
    Me.ImagXpress1.FileName = "Tulips.jpg"
    Me.ImagXpress1.ZoomFactor = 1
    Me.ImagXpress1.ZoomToFit ZOOMFIT_BEST
    Me.ImagXpress1.DrawTextString 100, 100, "This is a sample", 0
    Dim n As Integer
    n = ImagXpress1.PageNbr
    MsgBox n
    n = ImagXpress1.Pages
    MsgBox n
    ImagXpress1.AutoSize = ISIZE_BestFit
    MsgBox ImagXpress1.FileName
    ImagXpress1.SaveFile
End Sub

Private Sub ISISXpress1_FeederEmpty(ByVal PageNumber As Long, StopScan As Boolean)
    MsgBox PageNumber
End Sub

C# code:

VB.NET code:

1.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

2. ActiveBarLibrary

2.1. To DevExpress.XtraBars

Convert ActiveBar2Library.ActiveBar2 classes to DevExpress.XtraBars.BarManager.

circle-info

By using this option the converted application will not have any reference to the COM Component.

Class

Maps to

ActiveBar2Library.ActiveBar2.BackColor

DevExpress.XtraBars.BarManager.GetBackColor

ActiveBar2Library.ActiveBar2.ForeColor

DevExpress.XtraBars.BarManager.GetForeColor

ActiveBar2Library.ActiveBar2.Font

DevExpress.XtraBars.BarManager.GetFont

ActiveBar2Library.ActiveBar2.DisplayKeysInToolTip

DevExpress.XtraBars.BarManager.ShowShorcutInScreenTips

ActiveBar2Library.ActiveBar2.DisplayToolTips

DevExpress.XtraBars.BarManager.ToolTipController

ActiveBar2Library.ActiveBar2.Enabled

DevExpress.XtraBars.BarManager.GetEnabled

ActiveBar2Library.ActiveBar2.Bands

DevExpress.XtraBars.BarManager.Bars

Original VB6 code:

C# code:

VB.NET code:

2.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

3. Component One Elastic

3.1. To System.Windows.Forms.Panel

This option will port the legacy COM control into the resulting application as a System.Windows.Forms.Panel control.

circle-info

By using this option the converted application will not have any reference to the COM Component.

Original VB6 code:

C# code:

VB.NET code:

3.2. To ComponentOne controls

This option will port the legacy COM control into the resulting application as a System.Windows.Forms.Panel control, along with a C1SizerLight control attached to the resulting form which handles the proportional resizing of all the controls in the form, including the mapped panel.

circle-info

By using this option the converted application will not have any reference to the COM Component.

Original VB6 code:

C# code:

VB.NET code:

3.3. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

4. Component One Tab

4.1. To System.Windows.Forms.TabControl

This option will port the legacy COM control into the resulting application as a System.Windows.Forms.TabControl control.

circle-info

By using this option the converted application will not have any reference to the COM Component.

Original VB6 code:

C# code:

VB.NET code:

4.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

5. COMSVCSLib

5.1. To System.EnterpriseServices

Map COMSVCSLib classes and members to their .NET equivalents in System.EnterpriseServices

Class

Maps to

ObjectContext

System.EnterpriseServices.ContextUtil

SharedPropertyGroupManager

System.EnterpriseServices.SharedPropertyGroupManager

SecurityProperty

System.EnterpriseServices.SecurityCallContext

SharedProperty

System.EnterpriseServices.SharedProperty

SharedPropertyGroup

System.EnterpriseServices.SharedPropertyGroup

Original VB6 code:

C# code:

VB.NET code:

5.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

6. CRAXDRT_CRVIEWERLibCtl

6.1. To CrystalReports

circle-info

By using this option the converted application will not have any reference to the COM Component.

Map CRAXDRT and CRVIEWERLibCtl classes and enums to CrystalReports equivalents.

Class

Maps to

CRAXDRT.Report

CrystalDecisions.CrystalReports.Engine.ReportDocument

CRAXDRT.IFormulaFieldDefinitions

CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinition

CRAXDRT.Report.FormulaFields

CrystalDecisions.CrystalReports.Engine.ReportDocument.DateDefinition.FormulaFields

CRAXDRT.Report.DiscardSavedData

CrystalDecisions.CrystalReports.Engine.ReportDocument.Refresh

CRAXDRT.Report.PrinterDuplex

CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintOptions.PrinterDuplex

CRAXDRT.Report.PaperOrientation

CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintOptions.PaperOrientation

CRAXDRT.Report.ReportTitle

CrystalDecisions.CrystalReports.Engine.ReportDocument.SummaryInfo.ReportTitle

CRAXDRT.Report.Sections

CrystalDecisions.CrystalReports.Engine.ReportDocument.ReportDefinition.Sections

CRAXDRT.FormulaFields

CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinition

CRAXDRT.Section

CrystalDecisions.CrystalReports.Engine.Section

CRAXDRT.ReportObjects

CrystalDecisions.CrystalReports.Engine.ReportObjects

CRAXDRT.SubreportObject

CrystalDecisions.CrystalReports.Engine.SubreportObject

CRVIEWERLib.CRViewer

CrystalDecisions.Windows.Forms.CrystalReportViewer

Original VB6 code:

C# code:

VB.NET code:

6.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

7. CrystalReport

7.1. To CrystalReport.NET

Conversion of CrystalReport for Windows Forms using a helper class.

General Description:

CrystalReport is a business intelligence application, marketed to small and medium businesses. It allows the user to generate reports based on databases generated within Visual Basic.

Deployment Note:

The VBUC converts the CrystalReport OCX to a helper class.

Class

Maps to

Crystal.CrystalReport

UpgradeHelper.CrystalReport.CrystalReportHelper

Original VB6 code:

C# code:

VB.NET code:

7.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

8. CSTextLib

8.1. To System.Windows.Forms controls

circle-info

By using this option the converted application will not have any reference to the COM Component.

Map CSTextLib classes and enums to System.Windows.Forms equivalent.

Class

Maps to

CSTextLib.sicrEdit

System.Windows.Forms.MaskedTextBox

CSTextLib.sicrEdit.BorderEffect

System.Windows.Forms.MaskedTextBox.BorderStyle

CSTextLib.sidbEdit

System.Windows.Forms.MaskedTextBox

CSTextLib.sidbEdit.SelLength

System.Windows.Forms.MaskedTextBox.SelectionLength

CSTextLib.sidbEdit.SelStart

System.Windows.Forms.MaskedTextBox.SelectionStart

CSTextLib.sidbEdit.Text

System.Windows.Forms.MaskedTextBox.Text

CSTextLib.sidtEdit

System.Windows.Forms.DateTimePicker

CSTextLib.sidtEdit.Justification

System.Windows.Forms.DateTimePicker.TextAlign

CSTextLib.silgEdit

System.Windows.Forms.MaskedTextBox

CSTextLib.silgEdit.Enabled

System.Windows.Forms.MaskedTextBox.Enabled

CSTextLib.sitmEdit

System.Windows.Forms.MaskedTextBox

CSTextLib.sitmEdit.Value

System.Windows.Forms.MaskedTextBox.Text

CSTextLib.sitxEdit

System.Windows.Forms.TextBox

CSTextLib.sitxEdit.Mask

System.Windows.Forms.TextBox.Mask

CSTextLib.enumBE

System.Windows.Forms.BorderStyle

CSTextLib.enumJU

System.Windows.Forms.HorizontalAlignment

Original VB6 code:

C# code:

VB.NET code:

8.2. To ComponentOne C1Input controls

circle-info

By using this option, the converted application will not have any reference to the COM Component.

This option maps:

  • CSTextLib classes to a Component One Winforms control equivalent.

  • CSTextLib enums to System.Windows.Forms enums.

Class

Maps to

CSTextLib.sicrEdit

C1.Win.C1Input.C1NumericEdit

CSTextLib.sicrEdit.BorderEffect

C1.Win.C1Input.C1NumericEdit.BorderStyle

CSTextLib.sidbEdit

C1.Win.C1Input.C1NumericEdit

CSTextLib.sidbEdit.SelLength

C1.Win.C1Input.C1NumericEdit.SelectionLength

CSTextLib.sidbEdit.SelStart

C1.Win.C1Input.C1NumericEdit.SelectionStart

CSTextLib.sidbEdit.Text

C1.Win.C1Input.C1NumericEdit.Text

CSTextLib.sidtEdit

C1.Win.C1Input.C1DateEdit

CSTextLib.sidtEdit.Justification

C1.Win.C1Input.C1DateEdit.TextAlign

CSTextLib.silgEdit

C1.Win.C1Input.C1NumericEdit

CSTextLib.silgEdit.Enabled

C1.Win.C1Input.C1NumericEdit.Enabled

CSTextLib.sitmEdit

C1.Win.C1Input.C1DateEdit

CSTextLib.sitmEdit.Value

C1.Win.C1Input.C1DateEdit.Value

CSTextLib.sitxEdit

C1.Win.C1Input.C1TextBox

CSTextLib.sitxEdit.Mask

C1.Win.C1Input.C1TextBox.EditMask

CSTextLib.enumBE

System.Windows.Forms.BorderStyle

CSTextLib.enumJU

System.Windows.Forms.HorizontalAlignment

Original VB6 code:

C# code:

VB.NET code:

8.3. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

9. CTTips

9.1. To System.Windows.Forms.ToolTip

Convert TipsLib.ctTips classes to System.Windows.Forms.ToolTip.

circle-info

By using this option, the converted application will not have any reference to the COM Component.

Class

Maps to

TipsLib.ctTips.Active

System.Windows.Forms.ToolTip.Active

TipsLib.ctTips.ShowText

System.Windows.Forms.ToolTip.Show

TipsLib.ctTips.HideTips

System.Windows.Forms.ToolTip.Hide

TipsLib.ctTips.Delay

System.Windows.Forms.ToolTip.Delay

TipsLib.ctTips.BackColor

System.Windows.Forms.ToolTip.BackColor

TipsLib.ctTips.ForeColor

System.Windows.Forms.ToolTip.ForeColor

TipsLib.ctTips.AddTips

System.Windows.Forms.ToolTip.SetToolTip

Original VB6 code:

C# code:

VB.NET code:

9.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

10. CWUIControlsLib

10.1. To NationalInstruments Library

General Description: This feature maps the "CWUIControlsLib" set of classes to their .NET equivalent in the "NationalInstruments" library. Both the VB6 and the .NET libraries are owned by the same company called National Instruments, so there is no better alternative when mapping the set of controls defined in the VB6 library to .NET. More information about the company can be found here: https://www.ni.com/en-us.htmlarrow-up-right

circle-info

This feature maps the "CWUIControlsLib" set of classes to their .NET equivalent in the "NationalInstruments" library.

Original VB6 code:

C# code:

VB.NET code:

10.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

11. fpBtnAtlLibCtl

11.1. To System.Windows.Forms.Button

circle-info

By using this option the converted application will not have any reference to the COM Component

This option maps:

  • The fpBtn class to the Windows Button control.

  • fpBtnAtlLibCtl constants to the DockStyle enum.

Class

Maps to

fpBtnAtlLib.fpBtn

System.Windows.Forms.Button

fpBtnAtlLib.fpBtn.Enabled

System.Windows.Forms.Button.Enabled

fpBtnAtlLib.fpBtn.Text

System.Windows.Forms.Button.Text

fpBtnAtlLib.fpBtn.Visible

System.Windows.Forms.Button.Visible

fpBtnAtlLib.fpBtn.BackColor

System.Windows.Forms.Button.BackColor

fpBtnAtlLib.fpBtn.TabIndex

System.Windows.Forms.Button.TabIndex

fpBtnAtlLib.fpBtn.TabStop

System.Windows.Forms.Button.TabStop

fpBtnAtlLib.AutoSizeConstants

System.Windows.Forms.DockStyle

fpBtnAtlLib.AutoSizeConstants.fpAutoSizeNone

System.Windows.Forms.DockStyle.fpAutoSizeNone

Original VB6 code:

C# code:

VB.NET code:

11.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

12. ListPro

12.1. To native and helper classes

ListPro allows you to display list items, display single records, or items on multiple rows. FarPoint's List Pro fpCombo control will be mapped to a helper class based on the .NET ComboBox called UpgradeHelpers.Gui.ComboBoxHelper. The List Pro fpList control will be mapped to a native System.Windows.Forms.ListBox.

The VB6 AI Migrator is supporting the ListPro 2.0 and ListPro 3.0 versions of the control.

Original VB6 code:

C# code:

VB.NET code:

12.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

13. MemoLibfpMemo

13.1. To System.Windows.Forms.TextBox

Convert MemoLib.fpMemo classes to System.Windows.Forms.TextBox.

circle-info

By using this option the converted application will not have any reference to the COM Component.

Class

Maps to

MemoLib.fpMemo.BackColor

System.Windows.Forms.TextBox.BackColor

MemoLib.fpMemo.Enabled

System.Windows.Forms.TextBox.Enabled

MemoLib.fpMemo.ForeColor

System.Windows.Forms.TextBox.ForeColor

MemoLib.fpMemo.HideSelection

System.Windows.Forms.TextBox.HideSelection

MemoLib.fpMemo.ScrollBars

System.Windows.Forms.TextBox.ScrollBars

MemoLib.fpMemo.TabIndex

System.Windows.Forms.TextBox.TabIndex

MemoLib.fpMemo.Text

System.Windows.Forms.TextBox.Text

MemoLib.fpMemo.WordWrap

System.Windows.Forms.TextBox.WordWrap

Original VB6 code:

C# code:

VB.NET code:

13.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

14. PictureBox

14.1. To System.Windows.Forms.PictureBox

Converts VB.PictureBox to a .NET native PictureBox control.

circle-info

This option converts the PictureBox control to .NET PictureBox control from Windows.Forms.

This optional feature maps PictureBox control to its .NET counterpart. It's a control used to display images in Windows Forms.

Class

Maps to

Vb.PictureBox

System.Windows.Forms.PictureBox

Vb.PictureBox.BorderStyle

System.Windows.Forms.PictureBox.BorderStyle

Vb.PictureBox.Picture

System.Windows.Forms.PictureBox.Image

Vb.PictureBox.AutoSize

System.Windows.Forms.PictureBox.SizeMode

Vb.PictureBox.Align

System.Windows.Forms.PictureBox.Dock

Vb.PictureBox.hDC

System.Windows.Forms.PictureBox.CreateGraphics.GetHdc

Original VB6 code:

C# code:

VB.NET code:

14.2. To System.Windows.Forms.Picture helper class

Converts VB.PictureBox to a PictureBoxExtended helper class.

circle-info

This option converts the PictureBox control by using a helper class, but with a high automation level.

This optional feature maps PictureBox control through a set of helper objects to provide equivalent behavior.

Class

Maps to

Vb.PictureBox

UpgradeHelpers.Gui.PictureBoxExtended

Vb.PictureBox.Picture

UpgradeHelpers.Gui.PictureBoxExtended.Image

Vb.PictureBox.CurrentX

UpgradeHelpers.Gui.PictureBoxExtended.CurrentX

Vb.PictureBox.CurrentY

UpgradeHelpers.Gui.PictureBoxExtended.CurrentY

Vb.PictureBox.ScaleHeight

UpgradeHelpers.Gui.PictureBoxExtended.ScaleHeight

Vb.PictureBox.ScaleLeft

UpgradeHelpers.Gui.PictureBoxExtended.ScaleLeft

Vb.PictureBox.FillStyle

UpgradeHelpers.Gui.PictureBoxExtended.FillStyle

Vb.PictureBox.FillColor

UpgradeHelpers.Gui.PictureBoxExtended.FillColor

Vb.PictureBox.Print

UpgradeHelpers.Gui.PictureBoxExtended.Print

Vb.PictureBox.Circle

UpgradeHelpers.Gui.PictureBoxExtended.Circle

Vb.PictureBox.Cls

UpgradeHelpers.Gui.PictureBoxExtended.Cls

VBRUN.DrawStyleConstants

System.Drawing.Drawing2D.DashStyle

VBRUN.FillStyleConstants.vbFsSolid

UpgradeHelpers.Gui.FillStyleConstants.vbFsSolid

VBRUN.FillStyleConstants.vbCross

UpgradeHelpers.Gui.FillStyleConstants.vbCross

Original VB6 code:

C# code:

VB.NET code:

15. Printer

15.1. To .NET Printer helper class

Converts VB.Global.Printer to a .NET native Printer helper class.

circle-info

This option converts the class Printer by using a .NET native Printer helper class.

This optional feature maps Printer to its .NET counterpart by using a helper.

Every mapping of VB.Global.Printer will be upgraded to PrinterHelper.Printer.

Original VB6 code:

C# code:

VB.NET code:

15.2. To PowerPacks helper class

Convert VB.Global.Printer to Helper using VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printer.

circle-info

This option converts the class Printer through helper using Printer from namespace Microsoft.VisualBasic.

This optional feature maps Printer to its .NET counterpart through a helper using Printer from Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 provided by Microsoft.

The PowerPacks provides a Printer object for use by upgraded VB6 code.

Class

Maps to

Vb.Printer.FontName

PowerPacksPrinterHelper.Instance.FontName

Vb.Printer.ColorMode

PowerPacksPrinterHelper.Instance.ColorMode

Vb.Printer.Copies

PowerPacksPrinterHelper.Instance.Copies

Vb.Printer.CurrentX

PowerPacksPrinterHelper.Instance.CurrentX

Vb.Printer.CurrentY

PowerPacksPrinterHelper.Instance.CurrentY

Vb.Printer.DeviceName

PowerPacksPrinterHelper.Instance.DeviceName

Vb.Printer.FontItalic

PowerPacksPrinterHelper.Instance.FontItalic

Vb.Printer.FontSize

PowerPacksPrinterHelper.Instance.FontSize

Original VB6 code:

C# code:

VB.NET code:

16. TDBDate6

16.1. To System.Windows.Forms.DateTimePicker

Convert TDBDate6.TDBDate classes to System.Windows.Forms.DateTimePicker.

circle-info

By using this option the converted application will not have any reference to the COM Component.

Class

Maps to

TDBDate6.TDBDate.Enabled

System.Windows.Forms.DateTimePicker.Enabled

TDBDate6.TDBDate.Font

System.Windows.Forms.DateTimePicker.Font

TDBDate6.TDBDate.Height

System.Windows.Forms.DateTimePicker.Height

TDBDate6.TDBDate.Left

System.Windows.Forms.DateTimePicker.Left

TDBDate6.TDBDate.Text

System.Windows.Forms.DateTimePicker.Text

TDBDate6.TDBDate.ValueIsNull

System.Windows.Forms.DateTimePicker.ValueIsNull

TDBDate6.TDBDate.Width

System.Windows.Forms.DateTimePicker.Width

TDBDate6.TDBDate.MaxDate

System.Windows.Forms.DateTimePicker.MaxDate

Original VB6 code:

C# code:

VB.NET code:

16.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

17. TDBTime6

17.1. To System.Windows.Forms.DateTimePicker

Convert TDBTime6.TDBTime classes to System.Windows.Forms.DateTimePicker.

circle-info

By using this option the converted application will not have any reference to the COM Component.

Class

Maps to

TDBTime6.TDBTime.Enabled

System.Windows.Forms.DateTimePicker.Enabled

TDBTime6.TDBTime.Top

System.Windows.Forms.DateTimePicker.Top

TDBTime6.TDBTime.Height

System.Windows.Forms.DateTimePicker.Height

TDBTime6.TDBTime.Left

System.Windows.Forms.DateTimePicker.Left

TDBTime6.TDBTime.Text

System.Windows.Forms.DateTimePicker.Text

TDBTime6.TDBTime.ValueIsNull

System.Windows.Forms.DateTimePicker.ValueIsNull

TDBTime6.TDBTime.Width

System.Windows.Forms.DateTimePicker.Width

TDBTime6.TDBTime.TabIndex

System.Windows.Forms.DateTimePicker.TabIndex

Original VB6 code:

C# code:

VB.NET code:

17.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

18. TeeChart

18.1. To Steema TeeChart for .NET v4

Convert Steema TeeChart to .NET Steema TeeChart.

circle-info

This option converts the TeeChart control to the .NET TeeChart control.

General Description:

This optional feature maps Steema TeeChart Pro Activex Control v5 to its .NET counterpart provided by the same company: Steema TeeChart for .NET v4.

Class

Maps to

TeeChart.TChart

Steema.TeeChart.TChart

TeeChart.ILegend

Steema.TeeChart.Legend

TeeChart.IExport

Steema.TeeChart.Export.Exports

TeeChart.ISeries

Steema.TeeChart.Styles.Series

TeeChart.IValueList

Steema.TeeChart.Styles.ValueList

TeeChart.EVerticalAxis

Steema.TeeChart.Styles.VerticalAxis

TeeChart.IGanttSeries

Steema.TeeChart.Styles.Gantt

TeeChart.IPointer

Steema.TeeChart.Styles.SeriesPointer

TeeChart.EPointerStyle

Steema.TeeChart.Styles.PointerStyles

TeeChart.ITitles

Steema.TeeChart.Header

TeeChart.IPanel

Steema.TeeChart.Panel

TeeChart.ESeriesClass

Steema.TeeChart.Styles.*, the migration depends on the context:

  • Steema.TeeChart.Styles.Bar

  • Steema.TeeChart.Styles.Gantt

  • Steema.TeeChart.Styles.Line

  • Steema.TeeChart.Styles.Points

TeeChart.ICanvas

Steema.TeeChart.Drawing.Graphics3D

TeeChart.IPen

The migration depends on the context, the following classes are used:

  • Steema.TeeChart.Drawing.ChartPen

  • Steema.TeeChart.Axis.GridPen

  • Steema.TeeChart.Axis.TicksPen

TeeChart.EChartPenStyle

System.Drawing.Drawing2D.DashStyle

TeeChart.IBrush

Steema.TeeChart.Drawing.ChartBrush

TeeChart.IAxes

Steema.TeeChart.Axes

TeeChart.IAxis

Steema.TeeChart.Axis

TeeChart.IAxisTitle

Steema.TeeChart.AxisTitle

TeeChart.IAxisLabels

Steema.TeeChart.AxisLabels

TeeChart.EAxisLabelStyle

Steema.TeeChart.AxisLabelStyle

TeeChart.IChartFont

Steema.TeeChart.Drawing.ChartFont

Original VB6 code:

C# code:

VB.NET code:

18.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

19. VsPrinter

19.1. To ComponentOne C1PrintPreviewControl helper class

Conversion of ComponentOne VSPrinter using a C1Report helper class.

General Description:

The VSPrinter control makes it easy to create documents and reports for printing and print previewing from your applications. It only takes one statement to print plain text or RTF files, and a little more work to print graphics, tables, and formatted text. You have complete control over the printing device and document layout, including paper size and orientation, number of columns, headers and footers, page borders, shading, fonts, and so on.

Deployment Note:

The VBUC converts the Component One VSPrinter to a C1Report helper class.

Class

Maps to

ComponentOne.VSPrinter

UpgradeHelper.C1Report.C1PrintPreviewControlExtension

Original VB6 code:

C# code:

VB.NET code:

19.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

20. WshRuntimeLib

20.1. To Microsoft.Win32.RegistryKey helper class

Convert the registry operations of IWshRuntimeLib to Microsoft.Win32.RegistryKey by using some helpers.

Original VB6 code:

C# code:

VB.NET code:

20.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

21. XArray

21.1. To System.Array

Convert Apex XArrayObject to .NET as a System.Array.

circle-info
  • This option converts XArray objects to .NET as a System.Array.

  • The VBUC supports APEX Control version 1.0.007

General Description:

The XArray object allows users to create arrays with any bounds that you want. For instance, an XArray can be declared with its lower bound starting at 5 or 1000. This kind of array declaration is not supported because .NET arrays are always zero-based.

Original VB6 code:

C# code:

VB.NET code:

21.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

22. XArrayDB

22.1. To System.Data.DataTable helper class

circle-info

The migrated code may change depending on the use in Visual Basic 6.

General Description:

The XArrayDB object implements a two-dimensional array of arbitrary variants. XArrayDB objects automatically shift their contents when rows (or columns) are inserted or deleted. Also, the XArrayDB object is used as a data source for a ComponentOne True DBGrid control in storage mode. You can even use XArrayDB outside the context of True DBGrid, as it is packaged as a separate file, XADB8.OCX, which is not dependent on any of the grid .OCX files.

The XArray object can be upgraded to .NET as a System.Array. However, if this object is used to populate an ActiveX TrueDBGrid control, this approach does not work when the TrueDBGrid is converted to a .NET equivalent, because bindable .NET controls must be linked to controls that implement the IListSource interface such as DataSets or DataTables.

The VB6 AI Migrator assumes XArrayDbObjects are used for managing a two dimensions array. XArrayDBObjects are converted to a Support class that inherits from System.Data.DataTable class.

Original VB6 code:

C# code:

VB.NET code:

22.2. To COM Interop

This feature will take the legacy COM control and create an interoperability code wrapper to make it visible from the managed code. This means the control's functionality will remain the same since it will use the same binary, but the resulting application will depend on the legacy control.

Original VB6 code:

C# code:

VB.NET code:

Last updated

Was this helpful?