I'm making a C# windows application, in which I've embedded a Windows Media Player in my form.
Now, instead of using the player in a normal way, I want to access its buttons, for e.g I want to hide its "Play" & "Pause" button.
In short, I want to customize the player according to my needs.
How can I do so?
You will have to hook the creation of the app. Mainly the windows mesaage WM Create or WM Paint.
There You have to check which window names the corresponding controls have. There are several tools to examine such things during runtime, which all use the windows hooking mechanism. However, I think this will fail for metro apps. You must read about hooks . Check codeproject.com for that, because You also will need to create at least one dll. And there is a good example in c, which surely can be ported to c#.Can I give You furthrer info?
Related
I know it is somehow possible to implement a windows media player in a form with Visual C#.
The info for that is here: How to add the libraries and here How to code it.
But my project is in Visual C++ and I'm having a hard time finding how to do the same. It is a windows store application based on an example from a Hearth Rate Bluetooth monitor.
My goal is to play a video while the data acquisition occurs.
The answer is Windows Store App can't handle ActiveX controls. At least in a straightforward way.
The solution was to implement a MediaElement from the Toolbox into the XAML page. That element is easy to use with mediaElement.Play() and mediaElement.SetSource()
I've searched a lot these days to find a way to programmatically hide or disable the start button in Windows 8.1, but could not find any useful information
Is there any way to do this? Either with C# or with some registry-keys...
A short explanation why I need to hide the button:
We have a .NET Desktop Application which runs on WinXP, Vista and 7 in a self-made kiosk mode. Now we have to get it running in Win8 (8.1) but as expected, the new Start-Menu (Metro, Modern UI, whatever you call it) is always there.
I already managed to disable the Hot Corners, but the Start Button in the left corner still appears when you move you mouse over it, and it also starts the Metro - what we don't want.
Any help would be appreciated!
It seems that there is no such way...
But you could use a third party tool like one of these http://lifehacker.com/how-can-i-hide-the-start-button-in-windows-8-1-1478012124.
This question belongs on SuperUser, since it's not code related, but I'll have a go at it.. You should create a system account with an assigned access. Here, read these two articles: first second
According to these articles, it shouldn't take you more than 5 minutes to achieve what you want.
... find a way to programmatically hide or disable the start button in Windows 8.1...
See Registry Key Controlling Start Button in Windows 8.1? on SuperUser. According to one commentor, there is no simple fix like a registry key. Tools like 7+ Taskbar Tweaker inject a DLL into explorer hook/subclass/redirect some of its methods.
If you are going to write your own DLL and inject it into Explorer, then you might want to take a look at Microsoft's Detours Library. I've used it in the past and its actually easy to use. The description from the website: Detours intercepts Win32 functions by re-writing the in-memory code for target functions. The Detours package also contains utilities to attach arbitrary DLLs and data segments to any Win32 binary.
Having recently bought a Windows Phone I can say the one feature I sorely miss from my Android phone is Swype. This was a custom keyboard where you trace your finger over the keyboard to create words. Its very fast and basically I think its awesome.
Anyway! There is no Swype on WP7... The reason for this I hear is because it is impossible to change the keyboard programmatically in Windows phone. I would like to know from the community if things have changed or are likely to change in this area, or if there are any workarounds to programmatically inject a custom keyboard into the UI to allow input with any text field.
Disclosure - if it becomes possible I would like to develop a swype like app, however it would likely be because I miss it so much rather than as a commercial project!
Best regards,
There is no way to officially create a new keyboard that functions outside of your app. So, if you plan to release this in the marketplace, then it's not currently possible. You might be able to create a homebrew app that does this, but I don't think it would be very easy to replace the standard keyboard system wide. Of course, even if you did manage the homebrew version, it definitely wouldn't be allowed on the Marketplace.
You're limited by what Microsoft allows you to alter and they don't allow you to alter the keyboard. Furthermore Swype is a patented and very advanced technology that would be a humongous project for a single developer to work one. It's a good idea as lots of people like Swype but WP7 isn't Android.
I am building an itunes add on. One of the specification is to make sure that the add in starts up as itunes starts and re-size itunes in a way that the two applications will be visible to the user. This has already been implemented by the popular itunes add in called Music tune up (http://www.tuneupmedia.com/). Ideally, my application would mimic musicTuneUp and, when loaded, it would look like this image
Does any one knows how I could do this. I am implementing my application in C# windows form.
I would like to display text like my company name on the window media player. I use DrawString function on Form onPaint event but it is covered by the window media player.
I also use Label control but it display square block on the player control even i set the back color to transparent. I develop KTV system it has two monitor one has form controls and another has player. Please advice me how should I do.
If your talking about the windows built-in media player then your going to have to get down and dirty with the Win32 API's, windows hooks, HWND, etc. You can't just paint a control on the window. What your talking about is some very low level windows coding.
Take a look at Spy++ (http://msdn.microsoft.com/en-us/magazine/cc163617.aspx). It's a tool from Microsoft that let's you delve into the details of a running application. It has a component called ManagedSpyLib which wraps the C++ windows libraries in a managed library to make the windows hooks calls easier. Be ready to learn more about the OS than you ever wanted to know. :-)