MS Word doesn't show on screen - windows

My PCs OS are windows 11 and windows 7. I am writing an app that opens a MS Word document by clicking on a file name on a grid (see the screenshot below).
I use the commands:
aWordApplication.Visible = True
aWordApplication.Documents.Open(aFileName)
aWordApplication.Activate
Doing this, MS Word application runs (see the Word icon on the taskbar on the screenshot).
The problem is that I have to click the word icon to see the actual document. This problem happens on windows 7 and windows 11. But it doesn't happen when I test the app from IDE. I run the App as administrator, it doesn't help either.
Would you please help me to fix the problem, let a document straightly opens on top of windows? Thanks.

Related

How to make thumbnail and preview work for shortcut file on Win 7/8

I am learning to write a Windows shell thumbnail handler (IThumbnailProvider implementation), according to the sample project from Microsoft (https://code.msdn.microsoft.com/windowsapps/CppShellExtThumbnailHandler-32399b35).
Everything works just fine until I noticed there is one problem with this thumbnail handler: for a shortcut file that links to the file type registered by the sample DLL, it simply cannot show the thumbnail and preview on Windows 7/8/8.1, it only works on Windows 10. A screenshot might better demonstrate the issue.
On Windows 7:
From the screenshot, you can clearly see that the shortcut links to a .recipe file cannot show the thumbnail and the preview.
I also tried Sumatra and Adobe Acrobat Reader, neither of them work.
However, PowerPoint 2016 (.pptx) somehow works without a problem.
Here's a screenshot that was taken on Windows 10:
Any idea how to make the thumbnail/preview work on Windows 7/8?

Integrate Windows 8 program with windows search

I want to know if it is possible to have data from my Windows 8 program be able to show up in windows search. For instance, the user could search for "myprogramdata1" in windows and then an item would show up that when clicked would open up my program and I'd be able know that "myprogramdata1" was selected.
EDIT:
I know that it is possible for windows 10. For the program DisplayFusion, if I search settings, there is a result for DisplayFusion settings that can be clicked on and will bring me to the settings page for the program. Does anyone know how this is done?
First of see if you say the command that you typed in using cortana and if it opens settings. If yes, You can absolutely do it.
I did it for one of my app too( Well this was not my intention but it works )
UWP Samples-CortanaVoiceCommand
The key here is once Voice Commands are installed, you can type the text in cortana search (instead of actual voice command) and it works the same. You can still use patterns of voice commands and still type in Cortana search and open your app.

Unidentified UI portion windows phone 8

http://developer.nokia.com/community/wiki/images/thumb/9/9c/One.png/360px-One.png
http://developer.nokia.com/community/wiki/images/thumb/9/9c/One.png/360px-One.png
The image in this link shows some unidentified UI portion on the top right of the screen. Can someone please describe why it keeps on showing ?
I am unable to identify and correct it.
These framerate counters only shows up in development when the debugger is attached. You'll notice if you run your app when Visual Studio isn't connected and running this UI will disappear.
Here's some more info about it:
http://msdn.microsoft.com/library/windows/apps/gg588380(v=vs.105).aspx
And how to hide it if your really want to:
https://stackoverflow.com/a/5393504/250254
http://www.jeff.wilcox.name/2010/07/counters/

Windows 8 - Start screen icon for IE launches desktop version of IE

When I first installed Windows 8 (64 bit, Pro version, with Media Player), the IE icon on the Start screen launched the Metro / Modern / Windows Store / whatever version of IE.
But somewhere along the line, it no longer does so. It launches the traditional IE desktop version.
Any suggestions how to get things back to normal?
Side questions: I haven't done any spelunking on Windows 8. Any tips for the following questions would be appreciated...
What are the relevant file locations for various "Metro" apps (both Microsoft and 3rd party)? I know about C:\Windows\SysWOW64\WinMetadata for .winmd files. C:\Windows\WinStore seems almost useless. What else is worthwhile looking at?
Ditto for registry entries
What's hidden where? I assume that apps have NTFS permissions set so that, even as an Administrator (and with doing a Takeown) I can't even see certain system/app-related things.
Where is the Start Screen located? Suppose I wanted to write a program that lists the Start Screen icons, their captions, etc
And any other internals info of this ilk would be appreciated.
Thanks.
Go to Internet Options, Programs tab and in the Opening Internet Explorer section disable the ckeckbox Open Internet Explorer Tiles on the desktop.
Greetings.

Why is the system tray icon for my program not visible in Windows 7?

I'm unable to find system tray icon for my program after the installation . I could see that In Windows XP, it works just fine: the user can launch a program by clicking on the same.
However, in Windows 7 (both Home and Ultimate editions), the icon is not shown in system tray , but it works after I reboot my machine.
I have tried putting the code to refresh shell icons in the installer script, but this does not seem to have fixed the problem.
Can anyone help me on this??
PS: I use NSIS script for my installer.
Is it simply hidden in the pop-up that opens when you click the little arrow?
If not, is your program actually running at all?
If your program is running, use Process Explorer to check its integrity level (the Integrity column in Process Explorer). After you reboot and the icon appears, does the process have the same integrity level as when it didn't appear?

Resources