Blur a button in windows forms - c#

Can I blur a button in C# using windows forms?
I know it is possible using WPF, but I am using winforms for my current project.
If not, there's any way to put a WPF button in a winforms Form?

Related

c# zindex problem when using wpf and winform mixed

wpf_winform:
I am programming based on wpf and working to display winform window using winform host.
But I want to display the wpf control on top of the winform, but it doesn't show with zindex.
In case of Winform, shape file world map is displayed as EGIS.controls.SFMap.
I want to display the controls of wpf on the winform screen drawn through system.drawing.
Help... plz

Attach winform scrollbar to textbox

Just started develop an application in c# using winforms metro ui and I can't figure out how to use a metroscrollbar with a metro textbox. If i go under properties when selecting the textbox i can choose scrollbar but it shows the normal Windows form..
Please see the picture down below:
How can I use the Metro scrollbar instead of the normal scrollbar?

Trying to add a canvas to a WPF ElementHost in Windows Forms App?

I'm trying to get the ability to use the touch screen on a windows tablet in my application. All the examples I've seen use system.windows.Input and get touch points from a WPF canvas. My app is a winforms app and I don't have the time (deadline this week) to convert the app, so I thought to try the elementhost method, but I'm not sure how to go about this.
I've added an elementhost to my form, and then I wanted to create a canvas and add it...but it looks like the elementhost will only hold windows forms controls?!?
System.Windows.Controls.Canvas touchcanvas = new System.Windows.Controls.Canvas();
elementHost1.Controls.Add(touchcanvas);
It gives me an error on the controls.add because touchcanvas is not a valid windows forms control.
How can I add a WPF canvas to the elementhost and be able to raise it's events? such as touch events
I believe you need to use Child property of ElementHost.
elementHost1.Child = touchcanvas;

How to get the focused control in Windows 8?

How to get the focused control in Windows 8?
Now I am using OnLostFocus and OnGoFocus, using a variable to flag when the control has the focus. It works fine for a small number of controls, but I would need a general solution.
In Windows Forms, there is a function to get the focused control but I cannot find it in Windows 8.
Use FocusManager to get the currently focused control.

Spotify/iTunes Full window app

I'm currently working on an application using Visual studio 2010.. And was trying to create an interface like that of iTunes and Spotify, where it's a full window app, with custom window controls. Could anyone point me in the direction as how to do this?
https://www.dropbox.com/s/pszm4txuxt400tt/spotify.PNG
Try using WPF for a simple attractive set of controls which you can edit as required.
You can set you main windows mode on the On Load event to be fullscreen or maximised.
Google WPF tutorials if you want to learn more about using the controls available.

Categories