In Windows Vista/7's windows explorer, the Icon Size selector has got a track bar in the DropDownMenu (see Fig. 1)
Fig. 1: DropDownMenu with TrackBar in Windows Vista
Does anyone know where I can get a similar UserControl or show me how to replicate it in .NET?
NOTE: If anyone's wondering where the image came from, I captured it from Windows Vista's Windows Explorer when I clicked on the Views Button.
Edit
I realised that Trilian 5 beta also has something similar. I'll try to get a screenshot of it soon enough.
I have found an article at CodeProject. It allows such a menu. This will be of assistance to you.
WPF Slider Menu
http://www.codeproject.com/KB/WPF/WPF_Slider_Menu.aspx
Related
Hi all,
Please help me,
i have already attached screen shot for problem
Screen 1:
on windows 7 if run cmd or Firefox or vs 2012 and on task bar on mouse hover it shows tool tip on top.
Screen 2:
but if we run any devexpress form then it is not showing tooltip for form .
please help me for the same. is their any property need to set or is their any code for that.
please help me.
Thanks in advanced.
Go to design view, select properties toolbar and look for Text and TitleText.
The same goes for WinForms with the exclusion of TitleText which is added by DevExpress.
The tooltip is automatic. It displays the window's title/caption. If your window does not have a title/caption, then nothing will be displayed.
To fix it, set a title/caption for your window. I'd tell you exactly how to do it, but the DevExpress online documentation is terrible and your question doesn't say which of their packages you're actually using.
I'm trying to make a nice looking UI with Windows Forms but the main problem I have is that the MenuStrip in Windows Forms looks flat. In WPF everything is shiny and pops out, how can I make it so that it looks like that? I tried using a gradient background image but the buttons stayed as blue rectangles. I am also willing to use an alternative control. Any ideas?
I forgot to mention, regarding alternative controls I am looking for something free and open-source.
My personal suggestion would be that you move from menustrips to "Office-like" menus / ribbons.
Please go through the following links / search through these sites
for more custom controls for winforms
Code Project
http://www.codeproject.com/Articles/12204/Flat-style-menu-bar-and-popup-menu-control-for-Win
Windows Ribbon for WinForms (Part 1-21)
http://www.codeproject.com/Articles/62412/Windows-Ribbon-for-WinForms-Part-1-Introduction
Code Plex
http://ribbon.codeplex.com
http://fluent.codeplex.com
http://windowsribbon.codeplex.com
I have a weird problem.
I am developing an application where the user can select a font from a fontdialog by clicking on a button.
The problem is when running on win XP the fontdialog doesn't show up. If I press ALT key it shows up (after I click on the font button).
I searched web for a solution and found a guy with similar problem and his quick solution was programmatically press ALT. Of course, how could I press ALT during/after fontdialog.ShowDialog()? It's not really clean, thought.
Thanks for any advice.
Petr
[resolved]
I had the buttons and stuff on a tabpage.
And in it's paint method I had something which didn't belonged there. After I commented it out, it works!
Thanks
Petr
I am not a visual studio programmer but I need to whip up a quick app to display an image and manipulate it's height and width using a slider. I've done the quick google and all of the information talks about using picturebox(picbox) as the image containing control but I don't seem to have a picbox control in my VS C# express install.
Should it be missing? How do I get it back or install it? What are my alternatives?
If you've looked carefully in the toolbox and couldn't find it, you may have accidentally deleted the icon. Right click on the "All Windows Forms" section header in the toolbox and select "Choose Items". Check the checkbox near the "PictureBox" control. It'll show up in the toolbox.
In WPF, you should be looking for the "Image" control instead.
It was that I was in a WPF project rather than a windows form project like Mehrdad pointed out
is there a way to add fade effect when changing wallpaper just like on windows 7 using c#?
Any codes or links to article will be appreciated.
This forum post covers changing the wallpaper with a fade: http://www.neowin.net/forum/topic/1035559-fade-effect-when-changing-wallpaper/
They use IActiveDesktop, includes a link to the wrapper class.
Edit
I've now taken this code, and other code, and have implemented it in an open source project: https://pulse.codeplex.com/SourceControl/changeset/view/72677#1589017
You could:
Create a window behind everything else (except the desktop).
Paint it with the current wallpaper
Change the desktop wallpaper
Fade out the window (increases it's transparency over a second or two)
You'll have to figure out how to get the window in front of the desktop, but behind the explorer icons. (I assume it's possible to do that.)