OpenFileDialog Migration Code HeLP!

  • Thread starter Thread starter CodeGenre
  • Start date Start date
C

CodeGenre

Guest
Hi there Everyone!

I am currently migrating A VB 6 system to VS 2012 and I am having a problem regarding the object flags.

I just want to ask if what is the equivalent of the Highlightened Line code below


UPGRADE_WARNING: The CommonDialog CancelError property is not supported in Visual Basic .NET. Click for more: ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="8B377936-3DF7-4745-AA26-DD00FA5B9BE1"
.Filter = "Excel File (*.xls) |*.xls"
.Title = "Add Unconstrained Work Programme from HDM-4"
.MaxFileSize = 2048
.flags = cdlOFNAllowMultiselect + cdlOFNExplorer + cdlOFNLongNames
UPGRADE_ISSUE: Constant cdlOFNExplorer was not upgraded. Click for more: ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="55B59875-9A95-4B71-9D6A-7C294BF7139D"
UPGRADE_ISSUE: MSComDlg.CommonDialog property cdlg.flags was not upgraded. Click for more: ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="CC4C7EC0-C903-48FC-ACCC-81861D12DA4A"
.flags = MSComDlg.FileOpenConstants.cdlOFNExplorer
ß----- Help me with this
UPGRADE_ISSUE: Constant cdlOFNLongNames was not upgraded. Click for more: ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="55B59875-9A95-4B71-9D6A-7C294BF7139D"
UPGRADE_ISSUE: MSComDlg.CommonDialog property cdlg.flags was not upgraded. Click for more: ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="CC4C7EC0-C903-48FC-ACCC-81861D12DA4A"
.flags = MSComDlg.FileOpenConstants.cdlOFNLongNames
ß----Help me with this
.ShowDialog()
If DialogResult.Cancel = True Then
Me.Hide()
End If
End With



Any comment and suggestion that would help to fixed my problem would be greatly appreciated.. Thanks in Advance. :)


Jonel

Continue reading...
 
Back
Top