I'm working on a GUI built with C# in Visual Studio 2010. I want to change the color of some of my buttons, which I can do in the properties of the button, but a small border remains around the edge of the colored part of the button. When the button is clicked or focused on, this border changes to the default blue. Like this:
How can I change the highlight color of the button? Also, is there a way to change the color of the button while maintaining the default (horizontally divided two-tone) look?
Thanks for your help,
Dave
Related
I made a simple design for my WinForms app in Photoshop and I want to make some borderless buttons. In FlatAppearance properties, I changed border size to 0 and the FlatSyle is Flat but when the mouse is hovering on the button, its background color turns to grey, although I changed it to transparent. I'll attach some pics to get the problem better.
Can somebody help me, please?
How I want to look:
how it looks
In the same place that you changed the border size to zero, change the MouseOverBackColor to Transparent:
I would like to reproduce a Control in my WindowsFormsApplication that is equal to the refresh Button of the Windows Network connection form.
Does anybody know which Control it is or how to build a equal one in C#? It seems to be a PictureBox but if you hover it with the Cursor it gets a semi transparent blue colored overlay.
you can use XanderUI for this, add the button, change the button image and change both hover and click background colors to whatever color you like
I have a custom drop down menu which I have placed on a blue coloured panel. The drop down menu does not inherit the blue color of the panel, instead a white square appears around it. I have tried setting the background to transparent using SetStyle(ControlStyles.SupportsTransparentBackColor, true); but this makes the whole of the drop menu disappear. I have also tried setting the backcolor and forecolor to the systemcolor but that doesn't fix it either. Can anyone help? Thanks
I am writing a GUI form application in C# using Visual Studio 2010. The overall look and feel of my app is black.
I have added a few ComboBoxes to my form but they look terrible because the color is light grey. I want to make the combo box black. (Not the background/foreground color of the items themselves but rather the color of the combo box itself.)
How can I make a ComboBox black? An added bonus would be if I could make the corners of the combo box round instead of square so if you know how to do that it would be helpful too!
Thanks!
For my web application,
I want a 10*10 (100 cells which is created dynamically) grid to be displayed in the following manner.
Initially all the cells' color is green.
If i click on any cell its color becomes red if it is green and if i click again it becomes red.(Toggle the cell color)
I should be able to display dynamic number of link buttons in each cell.On the click of which it pop ups a window.
Are there any control available for this? Or how can I implement this functionality.
You can achieve this behavior very easily using jQuery.
You might want to look into some function like:
Click
Toggle
Live
I don't recommend you to do it with C#, you would have to place an UpdatePanel and cause a postback just to change the cell colors.