E
Eric
For my program I use the following code:
Dim dr As DialogResult
Dim ofd As New OpenFileDialog
ofd.DefaultExt = "*.*"
ofd.Filter = "All files|*.*"
ofd.FilterIndex = 0
ofd.Multiselect = False
ofd.ReadOnlyChecked = True
ofd.Title = "Selecteer de file"
dr = ofd.ShowDialog()
If dr = Windows.Forms.DialogResult.Cancel Then Exit Sub
Dim fileName As String = ofd.FileName
At my computer this works fine and no errors.
At a users computer I get the following error:
************** Exception Text **************
System.MissingMethodException: Method not found: 'System.String
System.Windows.Forms.OpenFileDialog.get_SafeFileName()'.
at VDL_Stock.frmEditStuklijst.FileToevoegen()
at VDL_Stock.frmEditStuklijst.llToevoegen_LinkClicked(Object sender,
LinkLabelLinkClickedEventArgs e)
at
System.Windows.Forms.LinkLabel.OnLinkClicked(LinkLabelLinkClickedEventArgs e)
at System.Windows.Forms.LinkLabel.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Label.WndProc(Message& m)
at System.Windows.Forms.LinkLabel.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
This user is like me using Vista.
My program is set to use only .NET 2.0
I do not user SafeFileName, so why this error?
How can I make this error go away?
rg,
Eric
Dim dr As DialogResult
Dim ofd As New OpenFileDialog
ofd.DefaultExt = "*.*"
ofd.Filter = "All files|*.*"
ofd.FilterIndex = 0
ofd.Multiselect = False
ofd.ReadOnlyChecked = True
ofd.Title = "Selecteer de file"
dr = ofd.ShowDialog()
If dr = Windows.Forms.DialogResult.Cancel Then Exit Sub
Dim fileName As String = ofd.FileName
At my computer this works fine and no errors.
At a users computer I get the following error:
************** Exception Text **************
System.MissingMethodException: Method not found: 'System.String
System.Windows.Forms.OpenFileDialog.get_SafeFileName()'.
at VDL_Stock.frmEditStuklijst.FileToevoegen()
at VDL_Stock.frmEditStuklijst.llToevoegen_LinkClicked(Object sender,
LinkLabelLinkClickedEventArgs e)
at
System.Windows.Forms.LinkLabel.OnLinkClicked(LinkLabelLinkClickedEventArgs e)
at System.Windows.Forms.LinkLabel.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Label.WndProc(Message& m)
at System.Windows.Forms.LinkLabel.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
This user is like me using Vista.
My program is set to use only .NET 2.0
I do not user SafeFileName, so why this error?
How can I make this error go away?
rg,
Eric