DCSIMG
Win32,.NET - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

Browse by Tags

All Tags » Win32 » .NET (RSS)
WPF WebBrowser – How To Disable Sound
Tweet Today I’m working on a editor application for JavaScript and HTML5 using WPF WebBrowser, when working with the browser control I noticed that each time I reload the page or click some links there is an annoying sound. Because my application is reloading the page very frequently I had to disable the WebBrowser sound. In order to do that I used CoInternetSetFeatureEnabled   (Enables or disables a specified feature control.), I’ve made a simple test application to demonstrate this feature...
Extending Visual Studio Setup Project – Part 1
Extending Visual Studio Setup Project – Part 1 One of the thing I hear all the time when companies talks for building reliable Windows Installer (MSI) for their product is –> Visual Studio Setup Project is not enough and we need much much more, my first response is – Wait, VS Setup project is not like Advanced Installer , InstallShield but still can do a lot more outside the box. Setup projects are used to create Windows Installer (.msi) files, which are used to distribute your application for...
Window Hooks – Summary
Window Hooks – Summary A week ago I received a question through my blog " How can I create buttons on top all open applications? ", I didn't waste time and start writing about my solution to the question. So here is a series of posts regarding this question above: Add Your Control On Top Another Application – Part 1 (Win32) Add Your Control On Top Another Application – Part 2 (Win32) Add Your Control On Top Another Application – Part 3 (Win32) Add Your Control On Top Another Application...
Add Your Control On Top Another Application – Part 4 (Win32)
Add Your Control On Top Another Application – Part 4 (Win32) And here we are, the last part in this series – How to set Window Event using SetWinEventHook. In the previous posts we have found the Target window handle and his TitleBar position , we created a new Control(HoverControl) and placed him On Top the Target TitleBar , the only thing that left if to listen Target window events (Example: LocationChange ) so we can move our HoverControl accordingly. We going to use some more NativeMethods to...
Add Your Control On Top Another Application – Part 3 (Win32)
Add Your Control On Top Another Application – Part 3 (Win32) This is part 3 and we are almost done! The first post in this series Add Your Control On Top Another Application – Part 1 (Win32) we saw how to find window handle just by pointing the process, this was done by using Win32 native methods. In Add Your Control On Top Another Application – Part 2 (Win32) We used another native method that helped us to find target window position based on TitleBar info. This part will show how to use this information...
Add Your Control On Top Another Application – Part 2 (Win32)
Add Your Control On Top Another Application – Part 2 (Win32) In my previous post Add Your Control On Top Another Application – Part 1 (Win32) I’ve showed how to obtain window handle from process. Now I can assume that we have the window handle (If not read Part 1), now we need to get TitleBarInfo fro the TargetWindow, Using that data we can get the position of the window and more.   Download Project Step 1: Add GetTitleBarInfo and GetLastError Using GettitleBarInfo will allow us to get information...
Add Your Control On Top Another Application – Part 1 (Win32)
Add Your Control On Top Another Application – Part 1 (Win32) Couple of days ago I got an email asked me to help with creating a buttons on top all open applications, this has reminded me the CodedUI Recorder . As you can see from the picture when using CodedUI Testing you will see the “Currently Recording” notification on every active application you are recording. How? The design is to make the title bar window of the target application as the parent\owner window of the Control your want to add...