How can I change the icons used in Windows Explorer? [duplicate] - c#

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Shell Icon Overlay (C#)
Tortoise changes the icons so you know what files have been changed locally. That's what I want to do.
I want to write an app that changes the icon for an app under certain conditions.

It's called shell extensions, and Microsoft recommends against writing them in managed code.
Here is official MSDN documentation on how to create icon overlays.

Also look at:
How to change the icon for a shortcut on the desktop in C# 2.0?
Programmatically change the icon of the executable

Related

Why everything in the C# form becomes blurred when running? [duplicate]

This question already has answers here:
How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?
(6 answers)
Closed 7 years ago.
Here is a screenshot to get a clearer understanding to my problem:
.
As you can see that the program is not sharp while the one in the visual studio is sharp and clear. Please help me out as i couldn't find solution to this online.
It's due to re-sizing of your windows form. So more you enlarge the window the images becomes blurred. you can embed this resource in your project and correct few properties for that image.

Is it possible to run a python file from within Visual Studio? [duplicate]

This question already has answers here:
How do I run a Python script from C#?
(9 answers)
Closed 7 years ago.
I am completely new to Visual Studio and C#, so I apologize in advance if this sounds like a dumb question. I am trying to develop a Windows Forms Application such that when I click a button, a Python script is run, performing data analysis on some files, with the eventual goal of displaying that data as a graph on the Windows Forms Application after the button is clicked.
My question is: how do I get the python script to run when the button is clicked from the Windows Forms Application?
Yes, it is possible.
You can create a process that runs python shell.
Pyton Tools for Visual Studio will help with debugging python from within VS
https://pytools.codeplex.com/
For more details and how to look at this video
http://www.youtube.com/watch?v=JNNAOypc6Ek&hd=1
Yes, it is possible there is Microsoft approved extension for VS to yse Python.
You can downloaded it from here:
https://visualstudiogallery.msdn.microsoft.com/9ea113de-a009-46cd-99f5-65ef0595f937
For more details and how to look at this video
http://www.youtube.com/watch?v=JNNAOypc6Ek&hd=1

Use style from wpf for a windows form app [duplicate]

This question already has answers here:
Windows Forms Application C# Style
(2 answers)
Closed 9 years ago.
I'd like to add a style to the items I have in some forms, here's the link of my preview question.
This app is developed in Visual C#, a WPF app, I have an .xaml file and 65 windows forms.
I have don't have a problem with any of the styles in the .xaml file, but in the Form.cs file I can't add any styles.
I'd like to have the same button style in both files (.xaml & .cs).
How can I do it? Should I add some libraries? Do I have to add more lines of code to Form.cs? Or should I do everything using the .xaml files?
I've been looking for something like this but I have not found anything.
I apologies if I'm asking silly questions.
winforms doesn't support Styles, nor Theming. It's a really old technology that has not been improved since 2007. it's not recommended for any new projects, only to maintain legacy applications.
Your options are:
redo everything in pure WPF.
Change all winforms UI elements to ElementHosts containing WPF content. This is even worse than redoing everything.
Buy a third party such as DevExpress.
Contact a FreeLancer developer (such as myself) who is willing to re-do all your winforms into beautiful WPF UIs (for profit)

Is it possible to use a camera mode in Windows Forms? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Webcam usage in C#
and if it is possible to create a camera with Windows Form using C#.
It is Crucial in Forms because it is for my school project..
If there isnt something like that is it possible to create such an effect?
AForge is a very easy to use library that can easily make use of a webcam in WinForms. I designed a small app for taking pictures with medical tablets last year and the whole executable weighed less than 1Mb, with the AForge library being the bulk of that.
http://www.aforgenet.com/
Check the sample applications that it comes with, there is one premade that has all the code you'll need. It's also a cool library to play with by itself.

How can a Windows Store App close itself? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Close Button on VS11 Apps
How can a Windows Store app close itself in code (C# but JS could be helpful too)?
Comment reposted as answer:
Duplicate of this question: Close Button on VS11 Apps
The short of it: you shouldn't have a close button if you are actually making a Windows Store app (it won't be certified), but you can use Application.Current.Close() if you need a button for debug close.

Categories