Bonjour,

Le programme sur lequel je travail ne se lance pas sur le Windows 7 pour lequel il est destiné ni sur mon Windows 10 personnel.

Par contre il semble fonctionner parfaitement sur le Windows 7 sur lequel je programme.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
 
namespace Planche
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
 
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
 
            Application.Current.MainWindow = new MainWindow();
        }
 
        public static void ChangeCulture(CultureInfo newCulture)
        {
            Thread.CurrentThread.CurrentCulture = newCulture;
            Thread.CurrentThread.CurrentUICulture = newCulture;
 
            var oldWindow = Application.Current.MainWindow;
 
            Application.Current.MainWindow = new MainWindow();
            Application.Current.MainWindow.Show();
 
            oldWindow.Close();
        }
 
         public String MainPath 
         {
             get
             {
                 return System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath);
             }
         }
    }
}
Quelqu'un aurait-il des solutions à me proposer ? Je suis preneur de tout ce que vous avez à me proposer.

Merci pour votre aide.