C# Corner

Resources  
  • ColorDialog in C#Dec 21, 2000. A ColorDialog control is used to select a color from available colors and also define custom colors. This article demonstrates how to use a ColorDialog in Windows Forms and C#.
  • ColorDialog : How to use?Dec 21, 2000. Changing color of your Window and its controls is a piece of cake in C# using ColorDialog class.
  • Color GuideJun 11, 2001. This Program will generate all the colors that are supported in C# according to the Name.
  • Time TickerJun 26, 2001. Graphics Class encapsulates a GDI+ drawing surface. The FromHWND method is used to create a new instance of the Graphics class from a window handle. Clear method fills the entire drawing surface with the specified RGB color by using Color class. DrawString method draws a string using Font and SolidBrush classes.
  • Scaling an ImageJul 13, 2001. This code will show You on way to scale an image with .Net Beta 2.
  • Mastermind Game in C#Aug 10, 2001. This is the game of Mastermind written in C#. The game is played by clicking on a set of 4 colors and then hitting the score button. Colors can repeat themselves in this game, so be wary!
  • Scribble in C#Aug 24, 2001. Here is a simple scribble C# program you can change the color and the pen width.
  • Owner Draw Menus in C#Apr 03, 2002. This article will explain to you how we can draw our own menu items with our own fonts , pictures , background color and other graphics objects.
  • Drawing Transparent Images and Shapes using Alpha BlendingApr 22, 2002. Alpha blending is a process of mixing colors and generating a transparent affect. To test this, you draw some graphics shapes on a surface and draw image on top of those shapes and you should be able to see the shapes.
  • An Editable GridView Control in C# and .NET - Part 1May 28, 2002. I've gotten a lot of e-mail about my GridView control Article, so I've decided to write a follow up article on a more powerful control that allows you to edit the cells within the control and change the colors of the cells.
  • Hex Colors in C#Sep 05, 2002. Currently I am developing a shareware application for generating image galleries for the web. There is a template engine built in that allows the user to specify colors as hexadecimal values, plus many other features.
  • COBOL and .NET Data TypesSep 24, 2002. .NET has created a new, level playing field for a multitude of programming languages to interact on a scale never before seen.
  • OpenGL using CsGLOct 07, 2002. I m glad to be the first one writing about OpenGL at this site. What I want to show you in this article is that it is fairly easy to setup a form that is capable of showing 3D.
  • Working with Portable Network Graphics(PNG) Format : Part IDec 13, 2002. First off, why use PNG instead of GIF? Probably the most important reason is that GIF supports a maximum of 256 colors.
  • Ray Tracking in C# and .NET UpdatedDec 17, 2002. In this article, the author adds (fixes) new features to the code.
  • MS Office Style Color Picker DialogDec 18, 2002. For a project I'm working on I needed something more stylish than the standard color dialog which comes with .NET, so I decided to make a color picker dialog of my own.
  • Change Color of a Column Based on Column ValuesMay 15, 2003. In this article we'll see how to change the color of column based on the column value.
  • Formatting ASP.NET DataGrid's DataJun 17, 2003. This article shows you how to change the color of a DataGrid row and format of date.
  • Part I: Simple Color Syntax Code Editor for PHP written in C# and .NETJun 18, 2003. The Application is a simple Windows Form program that allows you to open and save the text files edited in the rich edit control, as well as print them out. The program takes advantage of a “syntax” text file for PHP which lists the functions and keywords contained in the PHP language.
  • Part I: Simple Color Syntax Code Editor for PHP written in C# and .NETJun 18, 2003. The second part of this article shows how to print out the contents of a RichTextBox control.
  • ColorFul Web DropDown List in ASP.NETJul 23, 2003. In this example we will build an ASP.NET User Control which provides a listing of colors with the list items displayed in the actual color that the list item represents.
  • Using Genetic Algorithms to Generate Evolutionary Art in C# and .NETOct 10, 2003. In this article we will experiment a bit with genetic algorithms and creating fitness functions that produce art on a Windows Form.
  • Enhanced XP Button ControlDec 12, 2003. The enhanced XP style button is very easy to use and it supports rectangle, circle or ellipse shape with image and different colors. This control also inherit most of the properties from the Forms.Button.
  • Introduction to GDI+ Transformations Apr 01, 2004. A transformation is a process that changes graphics objects from one state to another. Rotation, scaling, reflection, translation, and shearing are some examples of transformation. Transformations can be applied not only to graphics shapes, curves, and images, but even to image colors.
  • Color Transformations and the Color MatrixApr 10, 2004. This article discusses the color transformations and how to apply Color Matrix on image colors to provide various effects such as gray scale effects, reduce or increase the contrast, brightness, or redness of an image.
  • Advanced Notepad in C#Apr 13, 2004. This is an advanced version of Notepad that allows you to search, replace, change background and foreground text color. It also provides registry editing options.
  • Image Processing in C#Apr 13, 2004. This application explains basic concepts of image processing including brightening, converting to gray and adding notes to an image using C# and GDI+.
  • Image Transformation in C# with GDI+ Apr 14, 2004. Image transformation is exactly the same as any other transformation process. In this section we will see how to rotate, scale, translate, reflect, and shear images.
  • Using the Tablet PC as a Flashing Restaurant Menu in C# and .NETJun 08, 2004. This is a simple application written for a restaurant using Tablet PC that allows you to list such things as lunch specials and have the colors on the board change randomly to produce an interesting flashing sign effect.
  • Coloring the Console in C# Oct 25, 2004. When working with console applications in C#, you always see a black and white screen. What if we want to change the background color of the console? We can change the foreground and background color of our console application by using win32 API SetConsoleTextAttribute().
  • How to Write and Read a Color in C#Dec 09, 2004. This article shows how to transform a color in hexadecimal representation.
  • ClickMania GameDec 21, 2004. This is an old game, first implemented in 1996 or so... It has a great addictive power. You will quickly find out the rules. I used the winmm.dll library for playing sounds, the picturebox.Paint event to draw bitmaps in a Picturebox and a recursive function to check the balls next to each other for the colors.
  • .NET Color ListBoxApr 26, 2005. .Net ListBox control itself works fine, however as a base class for further derivation it is fundamentally flawed. The root of evil is in the Windows API ListBox. .Net ListBox is just a wrapper for this control.
  • Alternate Row Color in Crystal ReportJun 07, 2005. This article shows how to develop reports with alternating row colors.
  • Antialiased Analog ClockApr 04, 2006. This is an antialiased analog clock sample written in C# using GDI+. It has no flicker at run time because of using Double Buffering technique, and it has many properties that you can customize it such as tick and hand colors, gradient background color, custom date and hand styles.
  • Fuliggine ColorPickersMay 11, 2006. In this article the author shows to build color picker and embedded color controls using GDI+.
  • Tip: How to conditionally change the color of a Chart in Crystal Reports?Oct 18, 2006. This tip shows how to change the color of a Chart in Crystal Reports based on some conditions.
  • Tip: How to change the color of Chart Bars in Crystal Reports?Oct 20, 2006. This tip shows you how to change the color of a chart bars in Crystal Reports.
  • Simple Web and RGB Color Picker UtilityFeb 08, 2007. The article addresses the construction of a simple utility application useful for selecting an RGB or web color.
  • XAML TextBoxApr 10, 2007. XAML <TextBox /> element represents the XAML TextBox control. This article discusses how to create a TextBox and set its various properties such as background and foreground colors, setting size and positions, fonts, wrapping, scrolling, and input validations.
  • Accessing Themes/SkinId's Programmatically using ASP.Net 2.0Apr 17, 2007. This article will give you good idea, as how we can access Theme & Skins & use CSS with respect to each theme, Microsoft has provided great feature in asp.net 2.0, which will reduce developer's stress to maintain GUI and Color-combination again.
  • A Scrollable MessageBox in C#Jul 30, 2007. This article demonstrates how to create a message box that contains messages that scroll. This message box also allows you to read the message in from a file as well as change fonts and color properties.
  • Color Syntax Editor Part II - Exporting a RichTextBox to a Microsoft Word DocumentAug 14, 2007. This article is part II of a color syntax editor created back in 2003. It describes how to export the contents of the RichTextBox to Word and Open the Word Document Programmatically.
  • Web based colour tool for .NETOct 02, 2007. The .NET Framework provides us with over 100 colours to use within the System.Drawing namespace. In order that we know exactly what all these colours look like here is a simple web based tool that uses Reflection to loop through all the colours with the System.Drawing.Color struct and print them to the page.
  • Ajax AnimationExtender ControlFeb 01, 2008. In this article we are going to discuss about AJAX AnimationExtender control. It provides good animation effect such as moving an ASP Control to a new place, resizing it, modifying its color, or making it fade in or fade out. In this article I m going to use fade in or fade out animation.
  • A Scalable Ajax Wizard Sample ApplicationFeb 18, 2008. This Ajax sample application creates a wizard dynamically to avoid scaling problems which occur when there are too many controls on a web form.
  • Colorful Console Mode Applications in C#Jun 09, 2008. So, you need to a write a console mode application, no reason you can’t have a little fun with it by introducing color into the output. This article describes how to jazz up a console mode application with color (which, as you will see, is pretty darned easy to do).
  • Making Transparent Control using GDI+ and C# (Updated to NET 3.5)Jun 10, 2008. This article provides an approach to a Transparent Control that draws an ellipse with real transparent background and a brush that supports transparent colors.
  • Animated Banners in XAMLJul 02, 2008. This article shows how to use animation related controls in XAML to create an animated banner with animations such as gradient colors, text rotation, and resize the banner text.
  • Your first Animations Using XAML and Silverlight - Color Animation: Part IJul 29, 2008. In this article, I will give a trick of how to deal with ColorAnimation class within VS2008 and Silverlight context using both xaml and C# 4.0, afterward, and in the two subsequent articles, we’ll focus on the DoubleAnimation and PointAnimation.
  • Your first animations using XAML and Silverlight- Double animation: Part IIJul 30, 2008. In the previous article "Your first animations using xaml and silverlight - Color animation: Part I", we've exposed a technique of how to deal with color animation. In this article, I will do same thing but with a different animation. I mean the DoubleAnimation class this time.
  • Color Selector Control in SilverlightFeb 17, 2009. In this article you will learn how to use Silverlight Color Selector Control.
  • WPF LinearGradientBrush using XAMLFeb 25, 2009. This article and code snippet explains how to fill gradient color in the background of controls in WPF using XAML.
  • DrawingBrush in WPFFeb 26, 2009. Through this article I am going to discuss DrawingBrush in WPF, and its properies and how we can use in our application.
  • Using a Combobox to Select ColorsMar 19, 2009. This is a short article on how to use a combo box control to display and select all the named colors.
  • SolidColorBrush in SilverlightApr 16, 2009. This article demonstrates how to use a solid brush in Silverlight using XAML and C#.
  • Applying gray scale on an Image in WPFJun 22, 2009. The code snippet in this article shows how to apply gray scale affects to images using WPF and C#.
  • Color Animation In Silverlight 3Jul 16, 2009. Writing Code Behind for Animating Color In Silverlight 3
  • ViewBox in SilverlightAug 04, 2009. Silverlight ViewBox control defines a content decorator that can stretch and scale a single child to fill the available space. This article demonstrates how to use a ViewBox control.
  • Notepad in C#Aug 17, 2009. Advaance Notepad that provides searching,replace,goto and color change features
  • WPF Animations Part I- Color AnimationSep 07, 2009. WPF is a new framework that has many advanced capabilities. Animations are one of those capabilities, where an object can be animated via rotating, stretching, scaling, moving it across the screen, changing its color, etc. In this article I am going to show color anmiation on a coltrol.
  • GDI+ ApplicationNov 01, 2009. In this article we move to the more practical aspects of writing graphics applications using GDI+ in the .NET Framework.
  • Basic GDI+ ObjectsNov 09, 2009. In this article we will discuss some basic GDI+ objects, such as the color-point-, and rectangle-related structures provided by the .NET Framework library. Understanding these structures is very important because they are used throughout.
  • Alternate Row Color in ListBox in WPFDec 06, 2009. In this article we will see how we can make the Alternate Rows of the ListBox Colorful in WPF.
  • Genarate Images on fly in ASP.NetDec 13, 2009. In this article I am going to show how we can generate image of any type on fly by choosing our forecolor, background color, our text family, our font style.
  • Colors, Fonts, and Text in GDI+Dec 16, 2009. In this article I will explain about Colors, Fonts, and Text in GDI+.
  • System Colors in GDI+Dec 17, 2009. In this article I will explain about System Colors in GDI+.
  • Using Pens in GDI+Feb 04, 2010. In this article I will explain about using Pens in GDI+.
  • Drawing Other Graphics Shapes by Applying Cap and Dashed Line Styles in GDI+ Feb 08, 2010. In this article I will explain about Drawing Other Graphics Shapes by Applying Cap and Dashed Line Styles in GDI+.
  • Image Transformation in WPFFeb 10, 2010. Image transformation is a process of rotating and scaling images. This article demonstrates how to rotate and translate images in WPF and XAML.
  • Adding Colors, Pens, and Brushes to the GDI+Painter Application Feb 11, 2010. In this article I will explain about working with brushes and pens in GDI+.
  • ScaleTransform in WPFFeb 14, 2010. Scaling is a process of stretching or shrinking an element. The ScaleTransform scales an element by a given factor.
  • Working with Bitmaps in GDI+ Feb 17, 2010. In this article I will explain about working with Bitmaps in GDI+.
  • Color Mapping Using Color Objects in GDI+ Mar 03, 2010. In this article I will explain about Color Mapping Using Color Objects in GDI+.
  • Export Gridview/Listview to Excel with Color formattingApr 12, 2010. In this article, I explain how to export Gridview / Listview to excel with same color formatting using .net.
  • Alternate line Colors in Reports Using Crystal ReportsApr 15, 2010. Sometimes when we have a big reports displaying heavy textual information, one technique to visualize data in a consistent way is to shade line in alternate colors. In this article, I will show how Crystal Reports enables this technique very easily.
  • Scaling, Shearing and Rotating Colors in GDI+Apr 21, 2010. In this article I will explain about Scaling, Shearing and Rotating Colors in GDI+.
  • Color Transformation and the Color Matrix in GDI+Apr 23, 2010. In this article I will explain about Color Transformation and the Color Matrix in GDI+.
  • Creating Custom colors for PieChart in SilverlightMay 24, 2010. In this article we will see how to change the default color changing behavior of the pie chart control in Silverlight.
  • C# Image Proccessing Techniques: Part IIJun 11, 2010. In the series of article we will build together our general use image processing class in C#.
  • How you can load HLSL effects on your XNA projectJun 21, 2010. In this article I will be showing you how you can load HLSL effects on your XNA project and use it. We will be drawing a triangle cleared with different color in each vertices.
  • Custom Gridline Color of Datagrid in WPF Jun 26, 2010. In this article we will see how we can customize the Gridline color in datagrid in WPF.
  • How to use Colors in XNAAug 02, 2010. In this article I will show you how to use Colors in XNA.
  • Syntax Highlighting in RichTextBox using C#Aug 04, 2010. This article is about how to achieve Syntax Highlight feature in RichTextBox.
  • Focus Color on Textbox controlsSep 01, 2010. In this article you will learn how to use Focus Color on Textbox controls in C#.
  • How to: Change color of rows in GridView on mouseoverOct 27, 2010. In this article I will show you how to change color of row in GridView on mouseover.
  • Change Color of text, control through dropdown list in asp.netNov 12, 2010. In this article you will learn how to change through dropdown list in asp.net
  • Event Manipulation in Touch screen for Windows Phone 7 Nov 19, 2010. The high-level touch interface in Silverlight involves three events: ManipulationStarted, ManipulationDelta, and ManipulationCompleted. These events don't bother with reporting the activity of individual fingers. Instead, they consolidate the activity of multiple fingers into translation and scaling operations.
  • Scaling Up vs. Scaling Out - Database ServersNov 29, 2010. Scaling Up vs. Scaling Out – Database Servers
  • Silverlight- Scale Transform ExampleNov 30, 2010. In this article we will be seeing how to create Silverlight Scale Transform using Visual studio 2010.
  • Silverlight Accordion Binding using XML – Part 2Dec 01, 2010. This article is going to explain how to bind each Accordion items dynamically and how to put different colors and styles to every Accordion Item.
  • Silverlight- Slider Control Part 3Dec 06, 2010. In this article we will be seeing how to create Silverlight Slider control to change the color of the rectangle using SolidColorBrush.
  • Color of the Silverlight Scroll Bar - How to change it?Dec 14, 2010. This article guides you through a tutorial of how to change the default color of the Silverlight scroll bar and apply your own styling to the same.
  • RichTextbox with context menu for setting Color and Font in .Net windows applicationDec 21, 2010. In this article you will learn how ro use RichTextbox with context menu for setting Color and Font in .Net windows application
  • How to Load all Colors in a ComboBox Using C#Jan 04, 2011. This tip loads all colors an ComboBox control.
  • ColorComboBox to pick ColorsJan 12, 2011. In this short article, I am trying to create a ColorComboBox control which allows the user to select colors from System.Drawing.Color struct.
  • How to change the background color of rows in a GridView in ASP.NET 3.5Jan 20, 2011. In this article we will learn how to change the background color of the rows in a GridView control based on its row data using RowDataBound event.
  • Glass Button in Blend with MouseOver and Pressed StatesFeb 01, 2011. Glass buttons can add a lot of color to a page without carrying heavy visual weight. Creating these buttons is very quick and easy in Microsoft Expression Blend.
  • Expression Blend 4: BrushesMar 10, 2011. Brushes plays a very important role in creating an application in WPF. Use of brushes makes it more attractive application.
  • Change Rows Background color in GridView with selected Criteria Apr 07, 2011. In this article we change background color of the rows in a GridView with selected criteria on GridView1_RowDataBound event.

About Scaling-Colors

NA

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
Download Free eBooks