I used this way to fix it ,google UIautomation.dll fsx it will come up with many posts about and links ,this is the first i found for you
I can't say for sure that we have the same problem here is a potential fix.
I was also having a crash to desktop issue with FSX and Windows 7. It happened when I was into a flight and clicked on the menus. I did some searching and some users did have this problem. It appears the problem is the UIautomation.dll in your /windows/system32 folder.
The solution is to replace UIautomation.dll with the vista version.
You can download it from
http://www.mediafire.com/file/mik2ml...mationCore.zipNow the hardest part of this fix is replacing the windows 7 UIautomation.dll with the vista version. Windows 7 locks the system32 folder from the users.
You need to take ownership of the file.
Be warned - You can screw up your computer and don't blame me if you do...
Instructions:
1) Downlaod the file at
http://www.mediafire.com/file/mik2ml...mationCore.zip and unzip it - This file was uploaded by someone else.
2) BACKUP the current UIautomation.dll located in your windows/system32 folder. Usually located at c:\windows\system32
3) Click on your start menu and type cmd in your search menu.
4) Now a command prompt should pop up. Type takeown /f C:\Windows\System32\UIautomation.dll
5) Next type cacls C:\Windows\System32\UIAutomationCore.dll /G YOUR_USERNAME:F - replace YOUR_USERNAME with your windows 7 username.
6) You can now copy the UIautomation.dll into your windows 7 folder.
I did this a couple of days ago with no adverse effects.
Good luck![/quote]