Title-bar's context menu [duplicate] - c#

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I customize the system menu of a Windows Form?
How could I insert new items to the title-bar's context menu as in Google's Chrome:
I would prefer a C# WPF solution, but I have no problem to do this in C++ (Interops are all set already).
Thank you.

Some other alternatives here:
http://www.codeproject.com/Articles/70568/An-MVVM-friendly-approach-to-adding-system-menu-en
http://www.codeproject.com/Tips/320885/Customize-Window-System-Menu-in-WPF
You might consider using the 2nd link where it actually creates a WPF menu instead of modifying the existing native system menu, if you wanted to skin the menu for your application.
I'd suggest you extended the code to scan the native System Menu so you could create WPF menu items that mirrored the expected System Menu items.

Related

Not sure what this tool is called [duplicate]

This question already has answers here:
How to create an Explorer-like folder browser control?
(3 answers)
Closed 5 years ago.
Not sure if this is off topic or not, if it is i will gladly delete.
I am converting one of my companies utility programs to C#.NET in winforms it is written in vb6, DEFINITELY NOT .NET as it is 15 years old. and in the UI it has a tool which looks like this
it acts like a folder browser put stays on the UI unlike a folder browser dialog which is a popup. is there a .NET tool which does the same thing or do i have to use a folder browser dialog. ideally i would like to keep it on the screen because i think it looks better to keep it on the screen rather than a separate box. if anyone knows if this is actually a tool in C#.NET winforms or not that would be great
Yes these controls are no longer avaiable in .net, you can create one yourself relatively easily, here is a MSDN link describing what you want
https://msdn.microsoft.com/en-us/library/ms171645(v=vs.110).aspx

Easy way to create MessageBox with "custom button" [duplicate]

This question already has answers here:
Custom button captions in .NET messagebox?
(8 answers)
Closed 9 years ago.
I've a winform application, and we are trying to make it ergonomic as possible, so we respect a lot microsoft guidelines.
We have some "Deletion confirmation" to implement, and according the guidelines and what I found accross the web, the more adequate buttons would be:
Delete and Cancel
But since we use the MessageBoxButtons to specify which buttons we have to display, I can't see how we can do this except implementing ourself a confirmation dialog.
I don't find very logical that microsoft encourage in one side the use of "action" text on button, and the other side doesn't give us the tools to be compliant, so I think I'm missing something?
Please note that I don't need more results possibility than currently, My Delete option would be the same as Ok for me, I just want to have differents texts.
So: Is there a way to specify easily buttons we want to show different text here?
There is no easy way other than creating your own implementation using form and show it as dialog?
We did the same some time back because of localization specialities in our project.

How do you make a program with multiple "Pages"? [duplicate]

This question already has answers here:
Creating Wizards for Windows Forms in C#
(3 answers)
Closed 9 years ago.
How do you make something like the things where you install programs by clicking the "Next" button and it will show you like a TextBox instead of a ComboBox like on a new Panel?
Sort of like changing Tabs on a TabControl but without showing the tabs.
You are probably looking for Wizard. You may see
Simple Wizard for Winforms - CodeProject
You may also take a look at WinForms Wizard from DevExpress but its not free.

How can I add an icon to a MenuItem? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to put an icon in a MenuItem
I would like to put a door-and-arrow icon next to an Exit menu item. Is this possible? I'm sure it is, because I've seen it in other places before.
Assuming you are using Visual Studio 2012, it should be really simple to add an icon to the menu using the designer.
Right-click on the menu-item you want to add the icon to and select Set Image.
I don't recall if this option is available in previous versions of Visual Studio, but would image there should be an easy way through the IDE to set it.
I've found an open source library called VistaMenu and it looks like just what I'm looking for. It is not custom drawn and it is inherited from the native menus.
http://wyday.com/vistamenu/

Make controls disappear sidely [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I add moving effects to my controls in C#?
I'm work on on a C# WinForms project, and I created a login form.
I want when I click in a link in this login form to make the controls in the login form to disappear sidely (like the effect in iPad when you move your finger on it) and other controls to be appeared .
Is there any chance to make this possible (using WinForm)?
Check DevExpress slider controls for Windows Forms.
You should find some examples here :
http://www.devexpress.com/Products/NET/Controls/WinForms/index.xml
http://www.devexpress.com/Products/NET/Controls/WinForms/Bars/toolbar_menu.xml (slide menu effecT)

Categories

Resources