I am working on my next ambitious project “MouseTouch” which is multi touch simulator application for windows 8 platform and intended to increase the productivity if you are running windows 8 on non-touch device.
This will bring the touch feature of windows 8 to life even if you are using mouse pad.
The first challenge is how to render something on top of metro start menu items?
So if you want to create a true topmost window which can float even on top of windows 8 metro apps here are the simple steps..
- Create WPF visual studio application (or any other window app )
- Set TopMost=True for MainWindow
- Right-click on your project in the Solution Explorer
- Select “Add New Item” from the context menu.
- Choose “Application Manifest File” from the list of options in the dialog box that appears.
- Right-click on your project in the Solution Explorer and click “Properties” (or double-click on the “Properties” item under your project).
- Under the first tab (“Application”),select your app.manifest file from the drop-down box labeled “Manifest”.
- Set the, <requestedExecutionLevel level=”asInvoker” uiAccess=”true” />
The next part is to create a certificate and install it in trusted root authorities.
- Create certificate
- makecert -r -pe -ss PrivateCertStore-n “CN=TopMost.com” topmost.cer
- Import certificate to (Local Machine) trusted root certification authorities using mmc.exe.
Now sign your executable using the certificate, either by using the command, or using visual studio (check the delay sign flag).
- Signtool sign /v /s PrivateCertStore /n TopMost.com /t http://timestamp.verisign.com/scripts/timestamp.dll TopMost.exe
Now copy the TopMost.exe to trusted location like c:Windows or program files and execute the TopMost.exe..
Still struggling ..
Ok if , executable is not signed or certificate is not installed properly, you see following exception
To avoid this exception, open mmc.exe, add certificates snap-in>Select Computer account>Local Computer>
Go to trusted root certification authorities>certificates>right click > tasks and import the certificate ..
Great tutorial, the only one available on-line actually as far as i can tell.
I get “A referral was returned from server” error when trying to run the application from trusted location(s)though.
LikeLike
Your certificate should be properly installed in appropriate store and the program should be executed from trusted location (after it is signed) over wise you will see “A referral was returned from..” message.
To further ensure that manifest is embedded in the executable, simple open the executable with visual studio and expend the RT_manifest node..
Regards
Rajnish
LikeLike
Great tutorial, the only one available on-line actually as far as i can tell.
I get “A referral was returned from server” error when trying to run the application from trusted location(s)though.
LikeLike
Your certificate should be properly installed in appropriate store and the program should be executed from trusted location (after it is signed) over wise you will see “A referral was returned from..” message.
To further ensure that manifest is embedded in the executable, simple open the executable with visual studio and expend the RT_manifest node..
Regards
Rajnish
LikeLike
Thank you very much for sharing your knowlegde. This is just what I was looking for the past week.
It would be nice, to hear something about your “MouseTouch” project.
I am working by myself on a “in air touch” for the windows 8 plattform for non touch devices.
Regards
Sylvia
LikeLike
Thank you very much for sharing your knowlegde. This is just what I was looking for the past week.
It would be nice, to hear something about your “MouseTouch” project.
I am working by myself on a “in air touch” for the windows 8 plattform for non touch devices.
Regards
Sylvia
LikeLike
This method does not work for windows8.1,do you have any work around?
LikeLike
This method does not work for windows8.1,do you have any work around?
LikeLike
This method does not work for windows8.1,do you have any work around?
LikeLike
oh, I tried this method again, it works this time, maybe I made some mistake when I first try.
LikeLike
oh, I tried this method again, it works this time, maybe I made some mistake when I first try.
LikeLike
I am so wondering between lifecycle of classic app & metro app when i am try with classic app it work so well,but for metro i don’t found someone that talk about that.
I know Metro application is run base on Topmost Window,if we try to make it top most all of window and transparency. Is that possible to do this ??
Thank you for any idea :).
LikeLike
I am so wondering between lifecycle of classic app & metro app when i am try with classic app it work so well,but for metro i don’t found someone that talk about that.
I know Metro application is run base on Topmost Window,if we try to make it top most all of window and transparency. Is that possible to do this ??
Thank you for any idea :).
LikeLike
I am so wondering between lifecycle of classic app & metro app when i am try with classic app it work so well,but for metro i don’t found someone that talk about that.
I know Metro application is run base on Topmost Window,if we try to make it top most all of window and transparency. Is that possible to do this ??
Thank you for any idea :).
LikeLike
I fail on this step .Could you tell more detail on this step ?
Is that need Microsoft developer account to do this??
LikeLike
I fail on this step .Could you tell more detail on this step ?
Is that need Microsoft developer account to do this??
LikeLike