If Command$() <> "" Then 'Commande MsgBox 'MsgBox("Vous avez ouvert le fichier " & Command$()) 'Load Picture PictureBox1.Image = Image.FromFile(Command$) 'PictureBox1.Load(url:=Command$()) End If
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionConsultez la fin de ce message pour plus de détails sur l'appel du débogage juste-à-temps (JIT) à la place de cette boîte de dialogue. ************** Texte de l'exception ************** System.ArgumentException: Caractères non conformes dans le chemin d'accès. à System.IO.Path.CheckInvalidPathChars(String path) à System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength) à System.IO.Path.GetFullPathInternal(String path) à System.IO.Path.GetFullPath(String path) à System.Drawing.IntSecurity.UnsafeGetFullPath(String fileName) à System.Drawing.IntSecurity.DemandReadFileIO(String fileName) à System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) à System.Drawing.Image.FromFile(String filename) à Images.Form1.Form1_Load(Object sender, EventArgs e) à System.EventHandler.Invoke(Object sender, EventArgs e) à System.Windows.Forms.Form.OnLoad(EventArgs e) à System.Windows.Forms.Form.OnCreateControl() à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) à System.Windows.Forms.Control.CreateControl() à System.Windows.Forms.Control.WmShowWindow(Message& m) à System.Windows.Forms.Control.WndProc(Message& m) à System.Windows.Forms.ScrollableControl.WndProc(Message& m) à System.Windows.Forms.Form.WmShowWindow(Message& m) à System.Windows.Forms.Form.WndProc(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Assemblys chargés ************** mscorlib Version de l'assembly : 4.0.0.0 Version Win32 : 4.0.30319.1 (RTMRel.030319-0100) CodeBase : file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- Clemax Version de l'assembly : 1.1.0.20 Version Win32 : 1.1.0.20 CodeBase : file:///C:/Program%20Files/clemax/images%20Viewer/Clemax.exe ---------------------------------------- Microsoft.VisualBasic Version de l'assembly : 10.0.0.0 Version Win32 : 10.0.30319.1 built by: RTMRel CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- System Version de l'assembly : 4.0.0.0 Version Win32 : 4.0.30319.1 built by: RTMRel CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Core Version de l'assembly : 4.0.0.0 Version Win32 : 4.0.30319.1 built by: RTMRel CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System.Windows.Forms Version de l'assembly : 4.0.0.0 Version Win32 : 4.0.30319.1 built by: RTMRel CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Version de l'assembly : 4.0.0.0 Version Win32 : 4.0.30319.1 built by: RTMRel CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Configuration Version de l'assembly : 4.0.0.0 Version Win32 : 4.0.30319.1 (RTMRel.030319-0100) CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Xml Version de l'assembly : 4.0.0.0 Version Win32 : 4.0.30319.1 built by: RTMRel CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Runtime.Remoting Version de l'assembly : 4.0.0.0 Version Win32 : 4.0.30319.1 (RTMRel.030319-0100) CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll ---------------------------------------- System.Windows.Forms.resources Version de l'assembly : 4.0.0.0 Version Win32 : 4.0.30319.1 built by: RTMRel CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll ---------------------------------------- mscorlib.resources Version de l'assembly : 4.0.0.0 Version Win32 : 4.0.30319.1 (RTMRel.030319-0100) CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/mscorlib.resources.dll ---------------------------------------- ************** Débogage JIT ************** Pour activer le débogage juste-à-temps (JIT), le fichier de configuration pour cette application ou cet ordinateur (machine.config) doit avoir la valeur jitDebugging définie dans la section system.windows.forms. L'application doit également être compilée avec le débogage activé. Par exemple : <configuration> <system.windows.forms jitDebugging="true" /> </configuration> Lorsque le débogage juste-à-temps est activé, les exceptions non gérées seront envoyées au débogueur JIT inscrit sur l'ordinateur plutôt que d'être gérées par cette boîte de dialogue.
Dim Fichier As String Fichier = Environment.GetCommandLineArgs() MsgBox ("Chargement de " & Fichier) Image.FromFile(Fichier)