Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 22 days ago.
Improve this question
Hello i want to show options like "Add to Queue" or "Add to Playlist >" when user right clicks an .mp3 file.
Reference Image:
How can i do that with C# and winforms?
What you're describing is known as a "context menu". And you can't do it directly in C#. It's run from the Windows registry, which you can edit from C#, but you usually need to ask the user permission.
This should get you started:
C# adding context menu item to windows explorer for all file types
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
So i already made my program but my client asked for a mock login screen before the application starts, it is not a real login more like a "please input key to continue" screen. any ideas on how to make that screen launch before my main window and only after authentication deploy my app?
you need to open the App.xaml file of yout project and change the StartupURI component to the window of your choice
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
So I have Avira installed on my device. I need programmatically change 'hosts' file. And trying to do so, Avira shows that the file is blocked and I'm getting an exception that the access to the file is denied. Is there a way to overcome this antivirus restriction with C#?
I don't want to delete or disable antivirus.
Click the Avira umbrella icon on the right side of the task bar. Your Antivirus product will open.
Click the cogwheel in the bottom left corner of your Antivirus product. The configuration menu will open.
Select PC Protection > Real-Time Protection > Exceptions.
Enter the processes or files and folders you want to be ignored from the scanning process, or browse for your exceptions.
Click Add to move your selection to the exception window.
Click Apply and then OK to confirm the changes. The configuration menu will be closed.
I just copy pasted from Avira→Source
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
What can I use to view all the controls on a form if everything is overlapping each other etc. Don't want to touch it yet, just view, make sure they're there.
You could use the "Document Outline" window (view ==> other windows ==> Document Outline) to see all control inside the form and select them from there.
Try to use Document outline in visual studio.
View - Other Windows - Document outline or ctrl + alt + t. It should show you win form controls structure.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I would like to know how to create an custom user interface for a program I am making.
What I want to add besides the default buttons and text boxes is an raster image frame inside of the application and some raster image buttons that change their animation/image.
And also learn how to draw additional items on the screen (buttons, input boxes) after pressing the desired selector button (for input types).
All in all - I would appreciate it if some one pointed me to a tutorial for this or code examples I can learn from.
You have http://www.wpftutorial.net/ to learn how to create WPF interfaces (Windows Presentation Foundation) for Windows / Phone.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Is it possible to add control like check-box in system tray icon in c#?
i wants to handle check and uncheck event within that checkbox. So that i dont need to handle it on ContextMenu.
No. You can only set the icon and handle clicks, doubleclick, etc...
However, you can simulate the checkbox behaviour by changing the icon.